Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: sql路由节点查询
 |
    username: HoniiTro19
 |
    username: HoniiTro19
【TiDB Usage Environment】Test environment
【TiDB Version】v6.0.0
【Encountered Problem】We have deployed 9 TiDB instances and 1 Haproxy for load balancing. I want to know to which TiDB instance the database connection is forwarded by Haproxy. Does TiDB internally store this metadata? Can it be queried directly through SQL?
【Reproduction Path】
【Problem Phenomenon and Impact】
【Attachments】
Please provide the version information of each component, such as cdc/tikv, which can be obtained by executing cdc version/tikv-server --version.
 |
    username:
 |
    username:  |
    username:
 |
    username:  |
    username:
 |
    username:  |
    username:
 |
    username: