How to configure the advertise-address for TiKV in a TiDB cluster

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

Original topic: tidb集群配置,tikv的advertise-address应该怎么配

| username: TiDBer_mEYNZXIU

[TiDB Usage Environment] Production Environment
[TiDB Version] 4.0.8
Currently setting up the cluster, there is an advertise-addr configuration on the tikv-server side.

  1. Do different tikv nodes need to be configured with the same address?

  2. Does this address need to be the same as the pd node?

  3. If not configured, testing can still read and write normally. Is it necessary?

| username: Miracle | Original post link

If it’s not a Docker or NAT environment, you can skip the configuration.
By default, it will read the value of the --addr parameter.

| username: tidb菜鸟一只 | Original post link

You don’t need to configure this address; by default, it is the IP address and port you specified.

| username: TiDBer_小阿飞 | Original post link

No configuration is needed. If it is the same IP, just write the port number in the configuration file to distinguish different TiKV nodes.

| username: Fly-bird | Original post link

KV on different machines will have defaults; on the same machine, you only need to modify the port of each node.

| username: system | Original post link

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