Modification of advertise-client-urls Parameter

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

Original topic: advertise-client-urls参数修改

| username: Collen

How to modify the parameter “advertise-client-urls” of the PD component?

| username: 江湖故人 | Original post link

tiup cluster edit-config ${cluster-name}
tiup cluster reload ${cluster-name}

Refer here:
TiUP Common Maintenance Operations | PingCAP Documentation Center

| username: 小龙虾爱大龙虾 | Original post link

This is automatically set up using tiup. What’s the purpose of setting this?

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

For what reason do you want to change this? To change this, you need to use edit-config and then reload PD.

| username: Collen | Original post link

Lightning imports into the TiDB cluster on the client machine, but they are not on the same subnet, so configuration is needed.

| username: Collen | Original post link

Could you please provide the specific content of the edit-config file?

| username: Soysauce520 | Original post link

To modify using pd-ctl, edit-config is ineffective, PD Control 使用说明 | PingCAP 文档中心

| username: 江湖故人 | Original post link

Under edit-config, you should be able to find something like this [1]

server_configs:
  tidb: {}
  tikv: {}
  pd: {...}
| username: 江湖故人 | Original post link

This should be something that the network engineer can temporarily enable.

| username: Collen | Original post link

This is not feasible.

| username: Collen | Original post link

I want to solve this problem from the perspective of TiDB.

| username: 江湖故人 | Original post link

Is it feasible to add 2 new nodes for expansion?

| username: 小龙虾爱大龙虾 | Original post link

Use TiDB mode :joy_cat:

| username: Collen | Original post link

A bit slow.