集群enable_tls后lightning如何配置?

谢谢各位老师,正确配置如下:

[lightning]

level = "info"

file = "tidb-lightning.log"

[tikv-importer]

backend = "local"

sorted-kv-dir = "/data/lightning_data/"

[mydumper]

data-source-dir = "/tmp/test/"

filter = ['*.*', '!mysql.*', '!sys.*', '!INFORMATION_SCHEMA.*', '!PERFORMANCE_SCHEMA.*', '!METRICS_SCHEMA.*', '!INSPECTION_SCHEMA.*']

[tidb]

host = "192.168.237.141"

port = 4000

user = "root"

password = ""

status-port = 10080

pd-addr = "192.168.237.141:2379"

tls = "preferred"

[security]

ca-path = "/data/tidb-deploy/pd-2379/tls/ca.crt"

cert-path = "/data/tidb-deploy/pd-2379/tls/pd.crt"

key-path = "/data/tidb-deploy/pd-2379/tls/pd.pem"

[tidb.security]

cert-path = "/data/certs/server-cert.pem"

key-path = "/data/certs/server-key.pem"

1 个赞