Fabric cluster is deployed in Kubernetes where each pod represents a Fabric node.
Kubernetes is designed to automatically scale the number of pods in either a deployment or a ReplicaSet, based on observed metrics like CPU utilization, by using its Horizontal Pod Autoscaling (HPA) mechanism.
The HorizontalPodAutoscaler (HPA) controller calculates desired replicas based on the ratio of the current metric value to the desired value: desiredReplicas = [currentReplicas * ( currentMetricValue / desiredMetricValue )].
This article deals with K8S auto-scaling concepts with regards to Fabric aspects and does not refer to a specific or custom K8S autoscaler.
To effectively harness the scalability of Fabric pods, the approach varies based on each use case, for example:
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
labels:
tenant: tenant
space: space
app: fabric
name: fabric-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: StatefulSet
name: fabric-stateful-sets
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
For more information about an advanced setup, read below:
Read here about scaling Fabric on-prem, within bare-metal or virtual machine environments.
Fabric cluster is deployed in Kubernetes where each pod represents a Fabric node.
Kubernetes is designed to automatically scale the number of pods in either a deployment or a ReplicaSet, based on observed metrics like CPU utilization, by using its Horizontal Pod Autoscaling (HPA) mechanism.
The HorizontalPodAutoscaler (HPA) controller calculates desired replicas based on the ratio of the current metric value to the desired value: desiredReplicas = [currentReplicas * ( currentMetricValue / desiredMetricValue )].
This article deals with K8S auto-scaling concepts with regards to Fabric aspects and does not refer to a specific or custom K8S autoscaler.
To effectively harness the scalability of Fabric pods, the approach varies based on each use case, for example:
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
labels:
tenant: tenant
space: space
app: fabric
name: fabric-hpa
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: StatefulSet
name: fabric-stateful-sets
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
For more information about an advanced setup, read below:
Read here about scaling Fabric on-prem, within bare-metal or virtual machine environments.