Working with Raft subgroups and PGD CLI v5
You can view the status of your nodes and subgroups with the pgd CLI command. The examples here assume a cluster as configured in Creating Raft subgroups with TPA.
Viewing nodes with pgd
The pgd command is show-nodes
.
$pgd show-nodes
Output
Node Node ID Node Group Type Current State Target State Status Seq ID ---- ------- ---------- ---- ------------- ------------ ------ ------ east1 916860695 us_east data ACTIVE ACTIVE Up 1 east2 2241077170 us_east data ACTIVE ACTIVE Up 2 east3 1093023575 us_east data ACTIVE ACTIVE Up 3 west1 1668243030 us_west data ACTIVE ACTIVE Up 4 west2 2311995928 us_west data ACTIVE ACTIVE Up 5 west3 4162758468 us_west data ACTIVE ACTIVE Up 6
Viewing groups (and subgroups) with pgd
To show the groups in a PGD deployment, along with their names and attributes, use the PGD CLI command show-groups.
$pgd show-groups Group Group ID Type Parent Group Location Raft Routing Write Leader ----- -------- ---- ------------ -------- ---- ------- ------------ pgdgroup 1360502012 global true false us_east 1806884964 data pgdgroup us_east true true east2 us_west 3098768667 data pgdgroup us_west true true west1