是否可以使用yb-admin工具查看YugabyteDB中的tserver黑名单?

Is it possible to view the tserver black list in YugabyteDB using the yb-admin tool?

[用户在 YugabyteDB Community Slack 上发布的问题]

正在尝试找到一种方法来获取列入黑名单的 yb-tservers 列表。是否有命令或 API returns this ?

假设您已使用 change_blacklist 命令将服务器添加到黑名单:

./bin/yb-admin --init_master_addrs localhost change_blacklist ADD 10.99.99.99:7100

您可以在 yb-admin cli 中使用 get_universe_config:

./bin/yb-admin --init_master_addrs localhost get_universe_config
{"version":1,"serverBlacklist":{"hosts":[{"host":"10.99.99.99","port":7100}],"initialReplicaLoad":0},"clusterUuid":"01f3ec0d-feef-4b39-8aeb-2c7229eba63e"}