TiDB PD 组件的优先级默认值?

请问,TiDB PD 组件的优先级默认值相关。

  1. PD 组件的优先级默认值是多少?
  2. PD 组件的优先级默认值如何查看?

谢谢!

优先级指的是什么 ?可以看一下 pd-ctl 的工具的使用方法~

https://docs.pingcap.com/zh/tidb/stable/three-data-centers-in-two-cities-deployment

这里的

只是明确设置了优先级,但是不知道怎么看优先级,然后默认的优先级又是多少?

谢谢!

» member leader_priority pd-1 8
Success!

» member show
{
  "header": {
    "cluster_id": 6916780437257906028
  },
  "members": [
    {
      "name": "pd-1",
      "member_id": 17117553379696449315,
      "peer_urls": [
        "http://172.16.4.237:12385"
      ],
      "client_urls": [
        "http://172.16.4.237:12384"
      ],
      "leader_priority": 8,
      "deploy_path": "/home/tidb/gangshen/dev/deploy/pd-12384/bin",
      "binary_version": "v4.0.9",
      "git_hash": "328752221729cca17b618fca75d161865e4da736"
    }
  ],
  "leader": {
    "name": "pd-1",
    "member_id": 17117553379696449315,
    "peer_urls": [
      "http://172.16.4.237:12385"
    ],
    "client_urls": [
      "http://172.16.4.237:12384"
    ]
  },
  "etcd_leader": {
    "name": "pd-1",
    "member_id": 17117553379696449315,
    "peer_urls": [
      "http://172.16.4.237:12385"
    ],
    "client_urls": [
      "http://172.16.4.237:12384"
    ],
    "leader_priority": 8,
    "deploy_path": "/home/tidb/gangshen/dev/deploy/pd-12384/bin",
    "binary_version": "v4.0.9",
    "git_hash": "328752221729cca17b618fca75d161865e4da736"
  }
}

可以通过 member show 命令查看优先级

设置之后才能看,设置之前看不见。

谢谢!

感谢反馈

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。