Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,37 @@ global:
extraArgs:
- "-log.level=debug"

autoscale: &autoscale
autoscaling:
enabled: true
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 75
targetMemoryUtilizationPercentage: 85
podDisruptionBudget:
enabled: true
minAvailable: 1
behavior:
enabled: true
scaleDown:
stabilizationWindowSeconds: 300
policies:
- type: Percent
value: 10
periodSeconds: 60
selectPolicy: Min
scaleUp:
stabilizationWindowSeconds: 60
policies:
- type: Percent
value: 50
periodSeconds: 60
- type: Pods
value: 1
periodSeconds: 60
selectPolicy: Min


gateway:
resources:
requests:
Expand All @@ -15,8 +46,8 @@ gateway:
port: 80
# Add startup probe for faster readiness
readinessProbe:
initialDelaySeconds: 5 # Reduce from default 15
periodSeconds: 5 # Check more frequently
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 3
failureThreshold: 3
successThreshold: 1
Expand Down Expand Up @@ -105,9 +136,9 @@ loki:

# Distributed components configuration
ingester:
replicas: 1 # Reduce from 3 to 1 for development
autoscaling:
enabled: false # Disable autoscaling for dev
replicas: 3
maxUnavailable: 1
<<: *autoscale
zoneAwareReplication:
enabled: false
resources:
Expand All @@ -125,9 +156,9 @@ ingester:
hard: {}

querier:
replicas: 1
autoscaling:
enabled: false
replicas: 3
maxUnavailable: 1
<<: *autoscale
resources:
requests:
cpu: 50m # Keep at 50m
Expand Down Expand Up @@ -155,10 +186,9 @@ queryScheduler:
memory: 64Mi # Reduce from 128Mi

distributor:
replicas: 1 # Reduce from 3 to 1 for development
autoscaling:
enabled: false # Disable autoscaling for dev
replicas: 3
maxUnavailable: 1
<<: *autoscale
resources:
requests:
cpu: 50m # Reduce from 100m
Expand Down Expand Up @@ -228,6 +258,3 @@ memcachedIndexWrites:
enabled: true
replicas: 1
maxItemMemory: 10



Loading