Querying system tables for cluster topology information
Query system tables to get cluster topology information. Display the IP address of peer nodes, datacenter and rack names, ports, token values, versions, and other information.
-
After setting up a cluster, query the peers table.
SELECT peer, data_center, release_version, graph FROM system.peers;
The following output will vary depending on the version used.
peer | data_center | release_version | graph
------+-------------+-----------------+-------
(0 rows)