pgd events show v5.7

Synopsis

The pgd events show command is used to display the events in the EDB Postgres Distributed cluster. With no additional flags, the command displays the 20 most recent events for all nodes and groups.

Syntax

pgd events show [OPTIONS]

Options

The following table lists the options available for the pgd events show command:

ShortLongDescription
--node <NODE_NAME>Only show events for the node with the specified name.
--group <GROUP_NAME>Only show events for the group with the specified name.
-n--limit <LIMIT>Limit the number of events to show. Defaults to 20.

See also Global Options.

Node States

StateDescription
NONENode state is unset when the worker starts, expected to be set quickly to the current known state.
CREATEDbdr.create_node() has been executed, but the node isn't a member of any EDB Postgres Distributed cluster yet.
JOIN_STARTbdr.join_node_group() begins to join the local node to an existing EDB Postgres Distributed cluster.
JOININGThe node join has started and is currently at the initial sync phase, creating the schema and data on the node.
CATCHUPInitial sync phase is complete; now the join is at the last step of retrieving and applying transactions that were performed on the upstream peer node since the join started.
STANDBYNode join has finished, but not yet started to broadcast changes. All joins spend some time in this state, but if defined as a Logical Standby, the node will continue in this state.
PROMOTENode was a logical standby and we just called bdr.promote_node to move the node state to ACTIVE. These two PROMOTE states have to be coherent to the fact, that only one node can be with a state higher than STANDBY but lower than ACTIVE.
PROMOTINGPromotion from logical standby to full BDR node is in progress.
ACTIVEThe node is a full BDR node and is currently ACTIVE. This is the most common node status.
PART_STARTNode was ACTIVE or STANDBY and we just called bdr.part_node to remove the node from the EDB Postgres Distributed cluster.
PARTINGNode disconnects from other nodes and plays no further part in consensus or replication.
PART_CATCHUPNon-parting nodes synchronize any missing data from the recently parted node.
PARTEDNode parting operation is now complete on all nodes.

Only one node at a time can be in either of the states PROMOTE or PROMOTING. STANDBY indicates that the node is in a read-only state.

Examples

Display the last 5 events

$ pgd events show -n 5
Output
Event Time                     Event Observer Event Subject Event Source Event Type Event Subtype Event Text    Event Detail                                                                                            
------------------------------ -------------- ------------- ------------ ---------- ------------- ------------- --------------------------------------------------------------------------------------------------------
2025-02-21 17:44:00.444902 UTC kaolin         kaftan        consensus    ROUTING    STATE_CHANGE  WRITE_LEADER  dc1_subgroup                                                                                            
2025-02-21 17:44:00.445080 UTC kaolin         kaolin        consensus    ROUTING    STATE_CHANGE  RAFT_LEADER   {"raft_leader":"kaolin","group_name":"dc1_subgroup","read_nodes_version":1,"read_nodes":"kaboom,kaolin"}
2025-02-21 17:44:00.452029 UTC kaftan         kaftan        consensus    ROUTING    STATE_CHANGE  LEADER_UPDATE                                                                                                         
2025-02-21 17:44:00.456483 UTC kaboom         kaboom        consensus    ROUTING    STATE_CHANGE  LEADER_UPDATE                                                                                                         
2025-02-21 17:44:00.456667 UTC kaolin         kaolin        consensus    ROUTING    STATE_CHANGE  LEADER_UPDATE