1PG_AUTOCTL SET NODE REPLICATION-pQgU_OaRuUtMoP(_G1f_)aAiUlToOvCeTrL SET NODE REPLICATION-QUORUM(1)
2
3
4

NAME

6       pg_autoctl  set  node replication-quorum - pg_autoctl set node replica‐
7       tion-quorum
8
9       pg_autoctl set replication-quorum  -  set  replication-quorum  property
10       from the monitor
11

SYNOPSIS

13       This command sets pg_autoctl replication quorum for a given node:
14
15          usage: pg_autoctl set node replication-quorum  [ --pgdata ] [ --json ] [ --formation ] [ --name ] <true|false>
16
17          --pgdata      path to data directory
18          --formation   pg_auto_failover formation
19          --name        pg_auto_failover node name
20          --json        output data in the JSON format
21

DESCRIPTION

23       See also pg_autoctl_show_settings for the full list of replication set‐
24       tings.
25

OPTIONS

27       --pgdata
28              Location of the Postgres node being managed locally. Defaults to
29              the  environment  variable PGDATA. Use --monitor to connect to a
30              monitor from anywhere, rather than the monitor URI used by a lo‐
31              cal Postgres node managed with pg_autoctl.
32
33       --json Output JSON formated data.
34
35       --formation
36              Show  replication  settings for given formation. Defaults to de‐
37              fault.
38
39       --name Show replication settings for given node, selected by name.
40

EXAMPLES

42          $ pg_autoctl set node replication-quorum --name node1 false
43          12:49:37 94092 INFO  Waiting for the settings to have been applied to the monitor and primary node
44          12:49:37 94092 INFO  New state is reported by node 1 "node1" (localhost:5501): "apply_settings"
45          12:49:37 94092 INFO  Setting goal state of node 1 "node1" (localhost:5501) to primary after it applied replication properties change.
46          12:49:37 94092 INFO  New state is reported by node 1 "node1" (localhost:5501): "primary"
47          false
48
49          $ pg_autoctl set node replication-quorum --name node1 true --json
50          12:49:42 94199 INFO  Waiting for the settings to have been applied to the monitor and primary node
51          12:49:42 94199 INFO  New state is reported by node 1 "node1" (localhost:5501): "apply_settings"
52          12:49:42 94199 INFO  Setting goal state of node 1 "node1" (localhost:5501) to primary after it applied replication properties change.
53          12:49:43 94199 INFO  New state is reported by node 1 "node1" (localhost:5501): "primary"
54          {
55              "replication-quorum": true
56          }
57

AUTHOR

59       Microsoft
60
62       Copyright (c) Microsoft Corporation. All rights reserved.
63
64
65
66
671.6                              Nov 2P4G,_A2U0T2O1CTL SET NODE REPLICATION-QUORUM(1)
Impressum