PG_AUTOCTL_DISABLE_SECONDARY(1)
β¨ pg_autoctl disable secondary β¨
okay bestie, welcome to the manual page for pg_autoctl disable secondary π this is part of the pg_auto_failover family (man page name pg_autoctl disable secondary, if you're keeping receipts), and yes, it does exactly what it says on the tin: it turns the secondary feature OFF for a formation. π
πΈ NAME πΈ
pg_autoctl disable secondary β literally just pg_autoctl disable secondary, and also: Disable secondary nodes on a formation. That's the whole vibe. π¦
β¨ SYNOPSIS β¨
so here's the tea, bestie: this feature makes the MOST sense when you're running the Enterprise Edition of pg_auto_failover, because that edition is fully compatible with Citus formations. π
- When secondaries are disabled, the Citus workers creation policy is to assign a primary node and then a standby node for each group.
- When secondary is disabled, the Citus workers creation policy is to assign only the primary nodes.
no cap, that's the whole difference. periodt. π
usage: pg_autoctl disable secondary [ --pgdata --formation ]
--pgdata path to data directory
--formation Formation to disable secondary on
π OPTIONS π
--pgdataβ where the Postgres node you're managing locally actually lives. It defaults to the environment variablePGDATA. And psst, if you wanna reach a monitor from anywhere instead of using the monitor URI that a local Postgres node managed withpg_autoctlwould use, go use--monitor. π«Ά--formationβ the target formation where you're turning the secondary feature off. that's it, that's the option. β¨
π ENVIRONMENT π
PGDATAβ the Postgres directory location. You can use this instead of the--pgdataoption. πPG_AUTOCTL_MONITORβ a Postgres URI to connect to the monitor node. You can use this instead of the--monitoroption. π§XDG_CONFIG_HOMEβ thepg_autoctlcommand stores its configuration files in the standard placeXDG_CONFIG_HOME. See the XDG Base Directory Specification. πXDG_DATA_HOMEβ thepg_autoctlcommand stores its internal states files in the standard placeXDG_DATA_HOME, which defaults to~/.local/share. See the XDG Base Directory Specification. β
π AUTHOR π
Microsoft
π COPYRIGHT π
Copyright (c) Microsoft Corporation. All rights reserved.
ok that's the whole page bestie, no notes, you ate π
and a lil sign-off from me to you: this is pg_auto_failover version 2.1, dated Jan 18, 2025. go disable some secondaries, main character. ππ¦πΈ
π¦ where this page comes from
- fedora 43: pg_auto_failover 2.1-6.fc42 Β· Apache-1.0
- fedora 44: pg_auto_failover 2.1-6.fc42 Β· Apache-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms