Global Variables
Caution
You can set a sync variable on the Master Aggregator only.
You should not set a sync variable by editing the memsql.
file.
For advanced users, a globalVariables
section can also be declared.
...globalVariables:snapshots_to_keep: "6"transaction_buffer: "8m"default_partitions_per_leaf: "4"
Refer to Engine Variables and List of Engine Variables documentation for more information about engine variables, global variables, and when to use them.
As of Operator 1.
-
bottomless_
storage_ location -
cloud_
permissions -
cluster_
name -
enable_
bottomless -
enable_
sites -
expected_
leaf_ core_ count -
redundancy_
level -
sync_
permissions
Note that some engine variables can be set prior to deploying a new cluster, but cannot be set once the cluster is running.
-
SYNC
variables may be set at launch of a new cluster.Once the cluster is online and running, these variables must then be set through a database connection. -
NON-SYNC
variables may be set in theglobalVariables
section of theMemsqlCluster
spec.
Refer to the List of Engine Variables for more information.
Note
If it is not overridden in the globalVariables
section, the Operator will set default_
to a value equal to the height
multiplied by the vCPU cores per unit.
Both aggregatorSpec
and leafSpec
-specific globalVariables
sections may be declared.spec.
and spec.
sections in the sdb-cluster.
file allow non-sync variables for aggregators and leaf nodes to be specified separately.
aggregatorSpec:...globalVariables:snapshots_to_keep: "4"...leafSpec:...globalVariables:snapshots_to_keep: "5"
Once the sync and non-sync variables are set via spec.
, they are applied across the entire cluster.
-
All variables set via
spec.
are applied to all pods in Master Aggregator and child aggregators.aggregatorSpec. globalVariables -
All variables set via
spec.
are applied to all pods in leaf nodes.leafSpec. globalVariables
Include only non-sync variables in spec.
and spec.
.
Non-sync variables defined in spec.
and spec.
override the same variables defined in spec.
.
Last modified: August 17, 2023