pgd raft
========

The ``pgd raft`` commands are used to monitor and manage the Raft
consensus state within an EDB Postgres Distributed cluster.

Subcommands
-----------

- :ref:`pgd raft disable <pgd raft disable>`  : Disables Raft consensus on the specified PGD node or
  group.

- :ref:`pgd raft enable <pgd raft enable>`  : Enables Raft consensus on the specified PGD node or
  group.

- :ref:`pgd raft restore <pgd raft restore>`  : Restores Raft consensus by removing the minimum set of
  nodes needed.

- :ref:`pgd group set-leader <pgd group set-leader>`  : Manually triggers a leadership transfer within a Raft
  group.

- :ref:`pgd cluster show <pgd cluster show>`  : Show Raft status for the cluster.

- :ref:`pgd raft sync-snapshot <pgd raft sync-snapshot>`  : Synchronize the Raft state across all nodes by
  exporting from the leader and importing on all nodes.

.. toctree::
  :maxdepth: 3

  REFERENCE--reference--cli--command_ref--raft--disable
  REFERENCE--reference--cli--command_ref--raft--enable
  REFERENCE--reference--cli--command_ref--raft--restore
  REFERENCE--reference--cli--command_ref--raft--set-leader
  REFERENCE--reference--cli--command_ref--raft--show
  REFERENCE--reference--cli--command_ref--raft--sync-snapshot
