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.sdb-cluster. file:
-
cores: The number of vCPUs requested for each pod. -
coresLimit: The maximum number of vCPUs each pod can use.
For example, to allocate 8 vCPUs to each aggregator, add the following in the sdb-cluster. file:
aggregatorSpec:cores: 8coresLimit: 8
The cores and coresLimit values are passed to the pod template as the CPU resource request and CPU resource limit, respectively.
Memory
Memory can be scaled up or down.sdb-cluster. file:
-
memoryMB: Specifies the amount of memory requested for each pod, in megabytes. -
memoryLimitMB: Specifies the maximum amount of memory each pod can use, in megabytes.
For example, to allocate 64GB of memory to each aggregator:
aggregatorSpec:memoryMB: 65536memoryLimitMB: 65536
The memoryMB and memoryLimitMB values are passed to the pod template as the memory resource request and memory resource limit, respectively.
Note
The height parameter is deprecated.cores, coresLimit, memoryMB, and memoryLimitMB for explicit control over resource allocation.
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: