tidb按以下配置,默认错误日志、慢日志在哪个目录下

global:
user: “tidb”
ssh_port: 22
deploy_dir: “/data/tidb5/tidb-deploy”
data_dir: “/data/tidb5/tidb-data”

monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115

server_configs:
tidb:
log.slow-threshold: 300
binlog.enable: false
binlog.ignore-error: false
new_collations_enabled_on_first_bootstrap: true
lower-case-table-names: 1
performance.txn-total-size-limit: 1073741824
tikv:
readpool.storage.use-unified-pool: true
readpool.coprocessor.use-unified-pool: true
pd:
schedule.leader-schedule-limit: 4
schedule.region-schedule-limit: 2048
schedule.replica-schedule-limit: 64
replication.enable-placement-rules: true

pd_servers:

  • host:
  • host:
  • host:

tidb_servers:

  • host:
  • host:
  • host:

tikv_servers:

  • host:
  • host:
  • host:

monitoring_servers:

  • host:

grafana_servers:

  • host:

alertmanager_servers:

  • host:

如果集群部署完成 tiup cluster display 可以看到 Deploy Dir,日志在 deploy dir 路径下的 logs 子目录

谢谢!!!