Scale a Cluster
On this page
A cluster can be scaled up or down horizontally and vertically.
Horizontal Scaling
Scaling a cluster up or down horizontally means increasing or decreasing the number of nodes available.
To adjust the number (count) of aggregators, edit the spec. field in the sdb-cluster. file.
The value of this field is the sum of the number of Master Aggregators and child aggregators.spec..1.
To adjust the number of leaf nodes, edit the spec. field in the sdb-cluster. file.
Vertical Scaling
Scaling a cluster up or down vertically means increasing or decreasing the resource capacity in each node.
CPU
The CPU can be scaled up or scaled down.
-
cpu_limit = spec. [aggregatorSpec/leafSpec]. height * 8 -
Where
spec.is a float that can be specified in the[aggregatorSpec/leafSpec]. height sdb-cluster.file.yaml Refer to the sdb-cluster. yaml file for an explanation of height.
-
-
cpu_request = cpu_ limit
Both the cpu_ and cpu_ will be passed into the node pod’s spec.
-
spec.containers[“node”]. resources. limits. cpu -
spec.containers[“node”]. resources. requests. cpu
Memory
Memory can be scaled up or scaled down.
-
memory_limit = spec. [aggregatorSpec/leafSpec]. height * 32 -
Where
spec.is the same height as for CPU.[aggregatorSpec/leafSpec]. height
-
-
memory_request = memory_ limit
Both memory_ and memory_ will be passed into the node pod’s spec.
-
spec.containers[“node”]. resources. limits. memory -
spec.containers[“node”]. resources. requests. memory
Storage
Storage can only be scaled up, and scaling up is only possible if the defined StorageClass has allowVolumeExpansion set to true.
The following fields in sdb-cluster. control the persisted volume size for each pod, which must be expressed as integer values:
-
spec.aggregatorSpec. storageGB -
spec.leafSpec. storageGB
-
To scale up storage, ensure that there is available storage space and increase these values to the desired amount.
-
Apply the new values.
kubectl apply -f sdb-cluster.yaml
Last modified: November 21, 2022