PG_AUTOCTL_ACTIVATE(1)
π NAME π
pg_autoctl activate β bestie, this is literally just pg_autoctl activate
pg_autoctl activate β wakes up a Citus worker from the Citus coordinator side of things π
This one lives in the pg_auto_failover family, and you're reading the PG_AUTOCTL ACTIVATE(1) page. Hiiii, welcome, let's get you activated β¨
πΈ SYNOPSIS πΈ
So basically this command hits the Citus "activation" API so that a node is allowed to host shards for your reference tables and your distributed tables. That's the whole vibe. π¦
usage: pg_autoctl activate [ --pgdata ]
--pgdata path to data directory
β¨ DESCRIPTION β¨
Okay so real talk: when you're creating a Citus worker, pg_autoctl create worker already activates that worker node with the coordinator for you. Automatic. No effort. Iconic behaviour fr fr. π
You only need to run this command when something unexpected has happened π and you want to manually make sure the worker node has been activated at the Citus coordinator level. Like a little "hey bestie, are you sure?" check-in.
Starting with Citus 10 it's also possible to activate the coordinator itself as a node with shard placement. Wild, I know. To use that feature you just run pg_autoctl activate on your Citus coordinator node manually. Main character energy from the coordinator, honestly. π
Heads up though: when the Citus coordinator is activated, there's an extra step needed before it can actually host shards of distributed tables. If you want your coordinator to have shards, go peek at the Citus API βcitus_set_node_propertyand set theshouldhaveshardsproperty totrue. Don't skip this one, bestie, or you'll be sitting there like π§ββοΈ wondering why nothing's landing.
π OPTIONS π
--pgdataβ Location of the Postgres node being managed locally. Defaults to the environment variablePGDATA. Use--monitorto connect to a monitor from anywhere, rather than the monitor URI used by a local Postgres node managed withpg_autoctl.
That's it, that's the list. Short and slay. π«Ά
π AUTHOR π
Microsoft
π COPYRIGHT π
Copyright (c) Microsoft Corporation. All rights reserved.
and that's the whole page, babe! This was pg_auto_failover version 2.1, dated Jan 18, 2025 β go forth and activate, you've got this πβ¨π¦πΈπ
π¦ 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