forked from pingcap/tidb-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separation startup scripts and application config from yaml files (pi…
…ngcap#149) * separation startup scripts and application config from yaml files
- Loading branch information
Showing
27 changed files
with
2,528 additions
and
2,516 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
602 changes: 602 additions & 0 deletions
602
charts/tidb-cluster/templates/config/_alert-rules-config.tpl
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# drainer Configuration. | ||
|
||
# addr (i.e. 'host:port') to listen on for drainer connections | ||
# will register this addr into etcd | ||
# addr = "127.0.0.1:8249" | ||
|
||
# the interval time (in seconds) of detect pumps' status | ||
detect-interval = {{ .Values.binlog.drainer.detectInterval | default 10 }} | ||
|
||
# drainer meta data directory path | ||
data-dir = "/data" | ||
|
||
# a comma separated list of PD endpoints | ||
pd-urls = "http://{{ .Values.clusterName }}-pd:2379" | ||
|
||
#[security] | ||
# Path of file that contains list of trusted SSL CAs for connection with cluster components. | ||
# ssl-ca = "/path/to/ca.pem" | ||
# Path of file that contains X509 certificate in PEM format for connection with cluster components. | ||
# ssl-cert = "/path/to/pump.pem" | ||
# Path of file that contains X509 key in PEM format for connection with cluster components. | ||
# ssl-key = "/path/to/pump-key.pem" | ||
|
||
# syncer Configuration. | ||
[syncer] | ||
|
||
# disable sync these schema | ||
ignore-schemas = "{{ .Values.binlog.drainer.ignoreSchemas | default "INFORMATION_SCHEMA,PERFORMANCE_SCHEMA,mysql,test" }}" | ||
|
||
# number of binlog events in a transaction batch | ||
txn-batch = {{ .Values.binlog.drainer.txnBatch | default 1 }} | ||
|
||
# work count to execute binlogs | ||
worker-count = {{ .Values.binlog.drainer.workerCount | default 1 }} | ||
|
||
disable-dispatch = {{ .Values.binlog.drainer.disableDispatch | default false }} | ||
|
||
# safe mode will split update to delete and insert | ||
safe-mode = {{ .Values.binlog.drainer.safeMode | default false }} | ||
|
||
# downstream storage, equal to --dest-db-type | ||
# valid values are "mysql", "pb", "tidb", "flash", "kafka" | ||
db-type = "{{ .Values.binlog.drainer.destDBType }}" | ||
|
||
##replicate-do-db priority over replicate-do-table if have same db name | ||
##and we support regex expression , start with '~' declare use regex expression. | ||
# | ||
#replicate-do-db = ["~^b.*","s1"] | ||
#[[syncer.replicate-do-table]] | ||
#db-name ="test" | ||
#tbl-name = "log" | ||
|
||
#[[syncer.replicate-do-table]] | ||
#db-name ="test" | ||
#tbl-name = "~^a.*" | ||
|
||
{{- if eq .Values.binlog.drainer.destDBType "pb" }} | ||
# Uncomment this if you want to use pb or sql as db-type. | ||
# Compress compresses output file, like pb and sql file. Now it supports "gzip" algorithm only. | ||
# Values can be "gzip". Leave it empty to disable compression. | ||
[syncer.to] | ||
dir = "/data/pb" | ||
compression = "gzip" | ||
{{- end }} | ||
|
||
|
||
{{- if eq .Values.binlog.drainer.destDBType "kafka" }} | ||
# when db-type is kafka, you can uncomment this to config the down stream kafka, it will be the globle config kafka default | ||
[syncer.to] | ||
# only need config one of zookeeper-addrs and kafka-addrs, will get kafka address if zookeeper-addrs is configed. | ||
{{- if .Values.binlog.drainer.kafka.zookeeperAddrs }} | ||
zookeeper-addrs = {{ .Values.binlog.drainer.kafka.zookeeperAddrs }} | ||
{{- end }} | ||
{{- if .Values.binlog.drainer.kafka.kafkaAddrs }} | ||
kafka-addrs = {{ .Values.binlog.drainer.kafka.kafkaAddrs }} | ||
{{- end }} | ||
kafka-version = {{ .Values.binlog.drainer.kafka.kafkaVersion | default "0.8.2.0" }} | ||
{{- end }} |
Oops, something went wrong.