pgd group set-leader v5
Synopsis
The pgd group set-leader
command is used to set the write leader of a group in the EDB Postgres Distributed cluster.
This command performs a switchover operation.
Syntax
pgd group <GROUPNAME> set-leader [OPTIONS] <LEADER>
Where <GROUPNAME>
is the name of the group for which you want to set the leader and <LEADER>
is the name of the node that you want to set as the leader.
Options
The following table lists the options available for the pgd group set-leader
command:
Short | Long | Description |
---|---|---|
--strict | Strict method (default). | |
--timeout | Timeout period when method is strict. (Defaults to 30s (30 seconds)) | |
--fast | Fast method. |
Strict method is the default method. The strict method waits for the new leader to be in sync with the old leader before switching the leader. The fast method is immediate as it does not wait for the new leader to be in sync with the old leader before switching the leader, ignoring route_write_max_lag
.
See also Global Options.