【 TiDB 使用环境】生产环境 or 测试环境 or POC
【 TiDB 版本】
v5.4.0
【遇到的问题】
【复现路径】
做过哪些操作出现的问题
【问题现象及影响】
display查看时有WARN告警,请问这个怎么处理啊。
【附件】
请提供各个组件的 version 信息,如 cdc/tikv,可通过执行 cdc version/tikv-server --version 获取。
【 TiDB 使用环境】生产环境 or 测试环境 or POC
【 TiDB 版本】
v5.4.0
【遇到的问题】
做过哪些操作出现的问题
请提供各个组件的 version 信息,如 cdc/tikv,可通过执行 cdc version/tikv-server --version 获取。
[tidb@tidbser1 bin]$ tiup cluster show-config test-cluster
tiup is checking updates for component cluster …
Starting component cluster
: /home/tidb/.tiup/components/cluster/v1.9.4/tiup-cluster /home/tidb/.tiup/components/cluster/v1.9.4/tiup-cluster show-config test-cluster
global:
user: tidb
ssh_port: 22
ssh_type: builtin
deploy_dir: /u01/deploy
data_dir: data
os: linux
arch: amd64
monitored:
node_exporter_port: 9100
blackbox_exporter_port: 9115
deploy_dir: /u01/deploy
data_dir: /u01/deploy/data
log_dir: /u01/deploy/log
server_configs:
tidb:
alter-primary-key: false
binlog:
enable: true
ignore-error: false
write-timeout: 15s
compatible-kill-query: false
enable-streaming: false
host: 0.0.0.0
lease: 45s
log:
disable-timestamp: false
expensive-threshold: 10000
file:
log-rotate: true
max-backups: 0
max-days: 0
max-size: 300
format: text
level: info
query-log-max-len: 2048
slow-threshold: 300
lower-case-table-names: 2
max-index-length: 3072
oom-action: log
opentracing:
enable: false
reporter:
buffer-flush-interval: 0
local-agent-host-port: “”
log-spans: false
queue-size: 0
rpc-metrics: false
sampler:
max-operations: 0
param: 1.0
sampling-refresh-interval: 0
sampling-server-url: “”
type: const
performance:
cross-join: true
feedback-probability: 0.05
force-priority: NO_PRIORITY
max-procs: 0
pseudo-estimate-ratio: 0.8
query-feedback-limit: 1024
run-auto-analyze: true
stats-lease: 3s
stmt-count-limit: 5000
tcp-keep-alive: true
prepared-plan-cache:
capacity: 100
enabled: false
memory-guard-ratio: 0.1
proxy-protocol:
header-timeout: 5
networks: “”
run-ddl: true
security:
cluster-ssl-ca: “”
cluster-ssl-cert: “”
cluster-ssl-key: “”
ssl-ca: “”
ssl-cert: “”
ssl-key: “”
server-version: “”
socket: “”
split-table: true
status:
report-status: true
store: tikv
tikv-client:
commit-timeout: 41s
grpc-connection-count: 16
grpc-keepalive-time: 10
grpc-keepalive-timeout: 3
token-limit: 1000
txn-local-latches:
capacity: 2048000
enabled: false
tikv:
raftstore:
raftdb-path: “”
sync-log: true
rocksdb:
wal-dir: “”
security:
ca-path: “”
cert-path: “”
key-path: “”
server:
labels:
host: tidbser1
pd:
enable-prevote: true
initial-cluster-state: new
lease: 3
log:
level: info
namespace-classifier: table
replication:
location-labels:
- host
max-replicas: 2
schedule:
leader-schedule-limit: 4
max-pending-peer-count: 16
max-snapshot-count: 3
max-store-down-time: 30m
merge-schedule-limit: 8
region-schedule-limit: 4
replica-schedule-limit: 8
split-merge-interval: 1h
tolerant-size-ratio: 5.0
security:
cacert-path: “”
cert-path: “”
key-path: “”
tso-save-interval: 3s
tiflash: {}
tiflash-learner: {}
pump:
gc: 2
heartbeat-interval: 2
security:
ssl-ca: “”
ssl-cert: “”
ssl-key: “”
drainer:
detect-interval: 10
syncer:
db-type: file
disable-dispatch: false
ignore-schemas: INFORMATION_SCHEMA,PERFORMANCE_SCHEMA,mysql
ignore-txn-commit-ts: []
safe-mode: false
to:
dir: /u01/deploy/drainer/binlog
txn-batch: 20
worker-count: 16
cdc: {}
grafana: {}
tidb_servers:
不要重复发帖啊,一样的问题
把集群拓扑文件上传一下,你发的那个格式看着太难受了。
根据现有信息盲猜
是你的tikv label没有在pd中声明,需要要这么一个配置项:
server_configs :
pd :
replication.location-labels:["dc", "zone"]
此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。