Expand description
Clusters apply command - converge live cluster state to match definitions.
Structsยง
- Canonical
Intervals ๐ - Rewrites every interval-valued literal in an option to its canonical form,
reaching nested values such as
LINGER DURATIONinsideAUTO SCALING STRATEGY.
Functionsยง
- comparable ๐
- An optionโs value reduced to a form the two sides of the diff can be compared by.
- default_
options ๐ - The options
SHOW CREATE CLUSTERrenders for every managed cluster, paired with the value the server assigns when the definition omits them. - diff_
cluster_ ๐options - Compare a cluster definition against the live cluster and return the options
to
SETand the option names toRESETso the caller can converge live state onto the definition. - index_
options ๐ - Index a statementโs options by name, dropping the ones the server discards.
- is_
discarded ๐ - Whether the server discards an option rather than recording it, leaving it
out of
SHOW CREATE CLUSTER. - is_
zero_ ๐interval - Whether a value is a zero-length interval, as
CanonicalIntervalsrenders one. - live_
cluster ๐ - The live clusterโs configuration, as the canonical
CREATE CLUSTERstatement the server renders from the catalog.Nonewhen the cluster does not exist. - plan
- Plan cluster changes without executing or printing.
- plan_
cluster ๐ - Plan a single cluster definition: create if missing, alter if drifted, then plan grants, revocations, and comments.
- render_
option_ ๐list - Render cluster options (or option names) as a comma-separated
ALTER CLUSTERargument list. - run
- Run the
clusters applycommand: plan, render, optionally execute.