# Default values for drainer.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

name: tidb-drainer
# drainer pods count, default: 1
replicas: 1

# the k8s node name of the drainer pod
nodeName: kube-node-1
image: localhost:5000/pingcap/tidb-binlog:latest

# drainer pod's resources
resources:
  limits:
    cpu: 1000m
    memory: 1Gi
  requests:
    cpu: 10m
    memory: 100Mi

# the ZooKeeper address
zkAddrs: zk-0.zk-svc.e2e-ns.svc.cluster.local:2181
# the PD urls
pdUrls: http://e2e-binlog-pd.e2e-ns.svc.cluster.local:2379

# the number of SQL statements in a single transaction that is output to the downstream database (default 1)
txnBatch: 1

# to synchronize the downstream concurrency number, and a bigger value means better throughput performance (default 1)
workerCount: 1

# please see here to get the commitTS:
# https://github.com/pingcap/tidb-tools/blob/master/generate_binlog_position/README.md
# https://download.pingcap.org/generate_binlog_position-latest-linux-amd64.tar.gz
commitTS: 0

# downstream mysql config
mysql:
  host: standalone-tidb.e2e-ns.svc.cluster.local
  port: 4000
  user: root
  password:

# the directory of the binlog file on the host when the db-type is set to "pb"
pb: {}
  # hostPath: /mnt/drainer
