TiDB集群部署报错(invalid auto generated configuration)

Error: init config failed: 10.20.28.242:20160: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.20.28.242:22’ {ssh_stderr: thread ‘main’ panicked at ‘invalid auto generated configuration file /tidb/tidb-deploy/tikv-20160/conf/tikv.toml, err only B, KB, KiB, MB, MiB, GB, GiB, TB, TiB, PB, and PiB are supported: “” for key raftstore.capacity at line 9 column 12’, cmd/tikv-server/src/main.rs:181:17
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
, ssh_stdout: , ssh_command: export LANG=C; PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin /tidb/tidb-deploy/tikv-20160/bin/tikv-server --config-check --config=/tidb/tidb-deploy/tikv-20160/conf/tikv.toml --pd “” --data-dir “/tidb/tidb-data/tikv-20160”}, cause: Process exited with status 101: check config failed

配置有问题。看日志说的是 raftstore.capacity 有问题

配置内容如下
[raftstore]
capacity = “The value refers to the calculation formula result of the multi-instance topology document.”

建议把拓扑文件的server configs部分发出来看看

拓扑部署如下:

# Global variables are applied to all deployments and used as the default value of

# the deployments if a specific deployment value is missing.

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

server_configs:
tikv:
readpool.unified.max-thread-count:
readpool.storage.use-unified-pool: false
readpool.coprocessor.use-unified-pool: true
storage.block-cache.capacity: “”
raftstore.capacity: “”
pd:
replication.location-labels: [“host”]

pd_servers:

  • host: 10.20.149.59
  • host: 10.20.28.242
  • host: 10.20.23.228

tidb_servers:

  • host: 10.20.149.59
    port: 4000
    status_port: 10080
    numa_node: “0”
  • host: 10.20.28.242
    port: 4000
    status_port: 10080
    numa_node: “0”
  • host: 10.20.23.228
    port: 4000
    status_port: 10080
    numa_node: “0”

tikv_servers:

  • host: 10.20.149.59
    port: 20160
    status_port: 20180
    numa_node: “0”
    config:
    server.labels: { host: “tikv1” }
  • host: 10.20.28.242
    port: 20160
    status_port: 20180
    numa_node: “0”
    config:
    server.labels: { host: “tikv2” }
  • host: 10.20.23.228
    port: 20160
    status_port: 20180
    numa_node: “0”
    config:
    server.labels: { host: “tikv3” }

用的yaml没编辑storage.block-cache.capacity,raftstore.capacity:注释掉即可

正确的写法是这样的,不要带双引号:
image

不清楚配置多大合适,干脆注释了。

此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。