[lightning]
# workaround https://github.com/pingcap/tidb/issues/30018
# skip precheck to avoid check failure caused by empty regions
check-requirements = false

index-concurrency = 4
level = "info"
file=""
pprof-port = 8289
table-concurrency = 6
[checkpoint]
enable = true
driver = "file"
dsn = "/etc/endpoint/cp.pb"
[security]
ca-path = "/var/lib/lightning-tls/ca.crt"
cert-path = "/var/lib/lightning-tls/tls.crt"
key-path = "/var/lib/lightning-tls/tls.key"
[tikv-importer]
backend = "local"
sorted-kv-dir = "/etc/endpoint"
[mydumper]
strict-format = false
[mydumper.csv]
backslash-escape = true
delimiter = '"'
header = true
not-null = false
null = "\\N"
separator = ","
[tidb]
host = "db-tidb"
log-level = "error"
port = 4000
status-port = 10080
pd-addr = "db-pd:2379"
tls = "false"

# workaround https://github.com/tikv/tikv/issues/10924
# lower analyze concurrency to avoid anazlye failure
build-stats-concurrency = 4
index-serial-scan-concurrency = 2
distsql-scan-concurrency = 15

[post-restore]
analyze = "optional"
checksum = true
[cron]
log-progress = "5m"
switch-mode = "5m"
