Is it possible to obtain TiDB and TiKV addresses through the PD address? Or obtain PD and TiKV addresses through the TiDB address?

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

Original topic: 可以通过pd地址获取 tidb、tikv 地址吗?或者通过 tidb 地址获取 pd、tikv地址

| username: mxd-321

Is it possible to obtain TiDB and TiKV addresses through the PD address? Or obtain PD and TiKV addresses through the TiDB address?

| username: h5n1 | Original post link

information_schema.cluster_info

| username: mxd-321 | Original post link

Okay, thank you very much. So, we need to connect to the TiDB client first in order to obtain a series of hosts.

| username: h5n1 | Original post link

pd-ctl store to get TiKV/TiFlash information
curl http://{TiDBIP}:10080/info/all to get all TiDB
tiup cluster display to get the entire cluster

| username: alfred | Original post link

Quite comprehensive :+1:

| username: mxd-321 | Original post link

Thank you for the explanation!

| username: system | Original post link

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