LWH stats: sizing and performance optimization
Size and tune LWH stats components for high throughput by configuring resource allocations based on stats. This prevents stats stream saturation, processing delays, and NATS backpressure.
Last updated
api:
stats:
replicas: 1
resources:
requests:
memory: 200Mi
cpu: 200m
limits:
memory: 1000Mi
cpu: 1000m
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 10
workers:
stats:
enabled: true
replicas: 1
resources:
requests:
memory: 200Mi
cpu: 1000m
limits:
memory: 1000Mi
cpu: 2000m
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 300
forwarding:
replicas: 1
resources:
requests:
memory: "200Mi"
cpu: 100m
limits:
memory: "400Mi"
cpu: 500m
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 10{
"helmOverrides": {
"api": {
"stats": {
"replicas": 1,
"resources": {
"requests": {
"memory": "200Mi",
"cpu": "200m"
},
"limits": {
"memory": "400Mi",
"cpu": "400m"
}
},
"autoscaling": {
"enabled": true,
"minReplicas": 1,
"maxReplicas": 10
}
}
},
"workers": {
"stats": {
"replicas": 1,
"resources": {
"requests": {
"memory": "200Mi",
"cpu": "1000m"
},
"limits": {
"memory": "1000Mi",
"cpu": "2000m"
}
},
"autoscaling": {
"enabled": true,
"minReplicas": 2,
"maxReplicas": 30
}
},
"forwarding": {
"replicas": 1,
"resources": {
"requests": {
"memory": "200Mi",
"cpu": "100m"
},
"limits": {
"memory": "400Mi",
"cpu": "500m"
}
},
"autoscaling": {
"enabled": true,
"minReplicas": 1,
"maxReplicas": 10
}
}
}
}
}