Skip to content

Commit 5a6bbfe

Browse files
committed
chore(kontinuous): pin Valkey topology to the app autoscale floor
Dev and preprod stay on single-pod standalone (inherited from base values, now commented explicitly). Prod keeps 1 primary + 2 replicas = 3 pods, matching app.autoscale.minReplicas. valkey-helm has no HPA, so pinning to the floor rather than maxReplicas avoids 6× PVCs for cache data that client code only ever reads via the primary service.
1 parent 6520aec commit 5a6bbfe

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.kontinuous/env/prod/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ app:
2020
valkey:
2121
replica:
2222
enabled: true
23+
# One replica pod per always-on app pod (= app.autoscale.minReplicas below).
24+
# valkey-helm deploys 1 primary + N replicas, so this gives 3 total pods,
25+
# matching the app HA floor. valkey has no HPA, so we pin to minReplicas
26+
# rather than maxReplicas to avoid over-provisioning cache storage.
2327
replicas: 2
2428
persistence:
2529
size: 1Gi

.kontinuous/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ valkey:
9898
service:
9999
type: ClusterIP
100100
port: 6379
101-
# Standalone by default. Prod overrides to master/replica topology.
101+
# Dev and preprod run a single-pod standalone deployment — cache loss on
102+
# restart is acceptable, and it keeps infra cost minimal. Prod overrides
103+
# this to a master/replica topology sized against app.autoscale.
102104
replica:
103105
enabled: false
104106
dataStorage:

0 commit comments

Comments
 (0)