pd-server config not work
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 466
- Forks
- 338
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 8
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
- What did you do?
i want to config pd-server to accsess from public ip.
topo.yml
pd_servers:
- host: 10.0.1.110
config:
client-urls: "http://0.0.0.0:2379"
peer-urls: "http://0.0.0.0:2380"
advertise-client-urls: "http://114.67.122.185:2379"
advertise-peer-urls: "http://114.67.122.185:2380"
but ps -ef|grep pd-server the result is
idb 6425 1 2 16:49 ? 00:00:14 bin/pd-server --name=pd-10.0.1.110-2379 --client-urls=http://10.0.1.110:2379 --advertise-client-urls=http://10.0.1.110:2379 --peer-urls=http://10.0.1.110:2380 --advertise-peer-urls=http://10.0.1.110:2380 --data-dir=/tidb-data/pd-2379 --initial-cluster=pd-10.0.1.110-2379=http://10.0.1.110:2380 --config=conf/pd.toml --log-file=/tidb-deploy/pd-2379/log/pd.log
the config not in operation
-
What did you expect to see?
--advertise-peer-urls=http://10.0.1.110:2380
--advertise-client-urls=http://10.0.1.110:2379
shoud be
--advertise-peer-urls=http://114.67.122.185:2380
--advertise-client-urls=http://114.67.122.185:2379 -
What did you see instead?
-
What version of TiUP are you using (
tiup --version)?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the topo.yml configuration and the generated pd-server command shown in the report; trace how advertise-client-urls and advertise-peer-urls are handled. Reproduce the setup and verify that the launched command uses the public IP values, with the expected flags shown in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100