pingcap / pingcap/tiup

pd-server config not work

Open
#435 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/question
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!

  1. 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

  1. 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

  2. What did you see instead?

  3. What version of TiUP are you using (tiup --version)?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.