TiDB Cluster Deployment Error (invalid auto generated configuration)

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

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

| username: mar_xxy

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

| username: WalterWj | Original post link

There is an issue with the configuration. The logs indicate that there is a problem with raftstore.capacity.

| username: mar_xxy | Original post link

The configuration content is as follows:
[raftstore]
capacity = “The value refers to the calculation formula result of the multi-instance topology document.”

| username: caiyfc | Original post link

It is recommended to post the server configs part of the topology file for review.

| username: mar_xxy | Original post link

The topology deployment is as follows:

# 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” }
| username: mar_xxy | Original post link

The yaml used did not edit storage.block-cache.capacity and raftstore.capacity: just comment them out.

| username: caiyfc | Original post link

The correct way to write it is like this, without double quotes:
image

| username: mar_xxy | Original post link

Not sure what size is appropriate, so I just commented it out.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.