Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 请问TiDB配置中的log.slow-threshold和TiKV配置中的slow-log-threshold有何区别,是否需要同时配置?

[TiDB Usage Environment] Production Environment
[TiDB Version] 7.5.0
[Reproduction Path] Initializing the production environment cluster
[Encountered Issue:]
What is the difference between log.slow-threshold: 3000
in TiDB configuration and slow-log-threshold: 3s
in TiKV configuration? Do they need to be configured simultaneously?
Resource Configuration:
#10.28.1.150 Processor-1 Core-20 Thread-40 Memory-128G Hard Disk-2T RAID-1
#10.28.1.149 Processor-1 Core-20 Thread-40 Memory-256G Hard Disk-4T RAID-None
#10.28.1.148 Processor-1 Core-20 Thread-40 Memory-256G Hard Disk-4T RAID-None
#10.28.1.147 Processor-1 Core-20 Thread-40 Memory-256G Hard Disk-4T RAID-None
#10.28.1.146 Processor-1 Core-20 Thread-40 Memory-256G Hard Disk-4T RAID-None
Cluster Topology:
tiup 5 instances (occupying servers 149, 148, 147, 146, 150, does not store business data, can operate with 4 servers down, used for database deployment and scaling, default control server is 150)
TiDB 3 instances (occupying servers 149, 148, 150, does not store business data, can operate with 2 servers down, used as database access entry, default main server is 149)
#TiPD 3 instances (occupying servers 149, 148, 150, does not store business data, can operate with 2 servers down, used for database cluster task scheduling, default main server is 149)
ticdc 1 instance (occupying server 147, does not store business data, used for asynchronous backup to downstream MySQL database, can be rebuilt if damaged)
tikv 6 instances (occupying servers 149, 148, 147, stores business data, grouped using host tags, can operate with 1 server down, data loss if 2 servers are down)
tiflash 2 instances (occupying server 146, stores business data, can be rebuilt if 1 server is down, column storage function unavailable during rebuild, rebuild time may take several hours depending on data scale)