Skip to content

Commit aa0d31d

Browse files
fix(provisioner): raise hot-pool POOL_*_SIZE 2/3/2 -> 10, add POOL_QUEUE_SIZE
Companion to provisioner master 4799395 (concurrent hot-pool refill — the F1 provisioning latency-cliff fix from LOAD-CHAOS-REPORT-2026-05-19). The deployment pinned POOL_POSTGRES_SIZE/REDIS/MONGO to 2/3/2, which overrode the provisioner code defaults. A concurrency-8 burst drained the pool in the first few requests and every caller after fell through to slow (15-25s) live provisioning. With the refill now concurrent (bounded), a 10-deep warm buffer absorbs the burst on the fast pool-claim path. POOL_QUEUE_SIZE was absent entirely — added at 10 to match. Env values must stay >= the code default in provisioner internal/config/config.go. NOTE FOR OPERATOR: infra has no auto-apply. Apply manually: kubectl apply -f k8s/provisioner/deployment.yaml kubectl rollout status -n instant-infra deploy/instant-provisioner Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5e9cc7e commit aa0d31d

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

k8s/provisioner/deployment.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,22 @@ spec:
122122
secretKeyRef:
123123
name: instant-infra-secrets
124124
key: AES_KEY
125+
# Hot-pool targets. Raised 2/3/2 -> 10 (and POOL_QUEUE_SIZE added)
126+
# to fix load-test finding F1 — the provisioning latency cliff.
127+
# A drained pool now refills CONCURRENTLY (bounded) instead of one
128+
# item at a time, so a deeper warm buffer no longer costs a
129+
# proportionally longer serial refill, and 10 ready items absorbs a
130+
# concurrency-8 burst entirely on the fast pool-claim path instead
131+
# of falling through to slow live provisioning. Must stay >= the
132+
# provisioner code default in internal/config/config.go.
125133
- name: POOL_POSTGRES_SIZE
126-
value: "2"
134+
value: "10"
127135
- name: POOL_REDIS_SIZE
128-
value: "3"
136+
value: "10"
129137
- name: POOL_MONGO_SIZE
130-
value: "2"
138+
value: "10"
139+
- name: POOL_QUEUE_SIZE
140+
value: "10"
131141
# ── Kubernetes dedicated backend (Team tier) ──────────────────────
132142
# See docs/ops-k8s-dedicated.md for the full EKS deployment guide.
133143
- name: K8S_DEDICATED_BACKEND

0 commit comments

Comments
 (0)