show-events v5

Shows events such as background worker errors and node membership changes.

Synopsis

Shows events such as background worker errors and node membership changes. Output is sorted by Time column in descending order. Message column is truncated after a few lines. To view complete message use json output format ('-o json').

For more details on each node state, see show-nodes command help ('pgd show-nodes -h').

pgd show-events [flags]

Examples

  Example 1 (3 node cluster)

  $ pgd show-events --lines 10

  Time                          Observer Node Subject Node Type                  Message
  ----                          ------------- ------------ ----                  -------
  2022-04-19 19:45:43.077712+00 bdr-b1        bdr-c1       receiver worker error pglogical worker received fast finish request, exiting
  2022-04-19 19:45:43.066804+00 bdr-c1        bdr-a1       receiver worker error pglogical worker received fast finish request, exiting
  2022-04-19 19:45:43.057598+00 bdr-b1        bdr-a1       receiver worker error pglogical worker received fast finish request, exiting
  2022-04-19 19:45:43.046515+00 bdr-c1        bdr-b1       receiver worker error pglogical worker received fast finish request, exiting
  2022-04-19 19:45:43.033369+00 bdr-a1        bdr-c1       receiver worker error pglogical worker received fast finish request, exiting
  2022-04-19 19:45:43.013203+00 bdr-a1        bdr-b1       receiver worker error pglogical worker received fast finish request, exiting
  2022-04-19 19:45:40.024662+00 bdr-c1        bdr-c1       node state change     ACTIVE
  2022-04-19 19:45:40.024575+00 bdr-b1        bdr-c1       node state change     ACTIVE
  2022-04-19 19:45:40.022788+00 bdr-a1        bdr-c1       node state change     ACTIVE
  2022-04-19 19:45:38.961424+00 bdr-c1        bdr-c1       node state change     PROMOTING

Options

  -h, --help        help for show-events
  -n, --lines int   show top n lines

Options inherited from parent commands

  -f, --config-file string   config file; ignored if 
                             --dsn flag is present (default "/etc/edb/pgd-cli/pgd-cli-config.yml")
      --dsn string           database connection string
                             e.g."host=bdr-a1 port=5432 dbname=bdrdb user=postgres "
  -L, --log-level string     logging level: debug, info, warn, error (default "error")
  -o, --output string        output format: json, yaml