1PG_AUTOCTL SET NODE CANDIDATE-PRpIgO_RaIuTtYoP(_G1f_)aAiUlToOvCeTrL SET NODE CANDIDATE-PRIORITY(1)
2
3
4

NAME

6       pg_autoctl set node candidate-priority - pg_autoctl set node candidate-
7       priority
8
9       pg_autoctl set candidate-priority  -  set  candidate-priority  property
10       from the monitor
11

SYNOPSIS

13       This command sets the pg_autoctl candidate priority for a given node:
14
15          usage: pg_autoctl set node candidate-priority  [ --pgdata ] [ --json ] [ --formation ] [ --name ] <priority: 0..100>
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 candidate-priority --name node1 65
43          12:47:59 92326 INFO  Waiting for the settings to have been applied to the monitor and primary node
44          12:47:59 92326 INFO  New state is reported by node 1 "node1" (localhost:5501): "apply_settings"
45          12:47:59 92326 INFO  Setting goal state of node 1 "node1" (localhost:5501) to primary after it applied replication properties change.
46          12:47:59 92326 INFO  New state is reported by node 1 "node1" (localhost:5501): "primary"
47          65
48
49          $ pg_autoctl set node candidate-priority --name node1 50 --json
50          12:48:05 92450 INFO  Waiting for the settings to have been applied to the monitor and primary node
51          12:48:05 92450 INFO  New state is reported by node 1 "node1" (localhost:5501): "apply_settings"
52          12:48:05 92450 INFO  Setting goal state of node 1 "node1" (localhost:5501) to primary after it applied replication properties change.
53          12:48:05 92450 INFO  New state is reported by node 1 "node1" (localhost:5501): "primary"
54          {
55              "candidate-priority": 50
56          }
57

AUTHOR

59       Microsoft
60
62       Copyright (c) Microsoft Corporation. All rights reserved.
63
64
65
66
671.6                              Jan 2P1G,_A2U0T2O2CTL SET NODE CANDIDATE-PRIORITY(1)
Impressum