Skip to main content

Module clusters

Module clusters 

Source
Expand description

Clusters apply command - converge live cluster state to match definitions.

Structsยง

CanonicalIntervals ๐Ÿ”’
Rewrites every interval-valued literal in an option to its canonical form, reaching nested values such as LINGER DURATION inside AUTO 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 CLUSTER renders 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 SET and the option names to RESET so 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 CanonicalIntervals renders one.
live_cluster ๐Ÿ”’
The live clusterโ€™s configuration, as the canonical CREATE CLUSTER statement the server renders from the catalog. None when 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 CLUSTER argument list.
run
Run the clusters apply command: plan, render, optionally execute.