Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
docs(chart): apply one probe-budget formula to both figures
Yudhi Armyndharis636b4627d903
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex a6d2dc873..64744da81 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -29,7 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Fixed- The chart's optional ServiceMonitor now selects on a new `openwa.io/scrape-target` label, so it scrapes one target per pod instead of two; series previously collected through the headless target stop appearing, so check anything keyed on the `service` label.-- The Helm chart's new startup probe stops the kubelet killing a pod that is still booting, allowing 300s (`periodSeconds: 5`, `failureThreshold: 60`) where the liveness settings allowed 50. It fires immediately, so a fast boot goes live sooner than before, not later — and it is not limited to auto-start, since the database connect retry alone can consume 30 of the old 50 seconds.+- The Helm chart's new startup probe stops the kubelet killing a pod that is still booting, allowing 295s (`periodSeconds: 5`, `failureThreshold: 60`) where the liveness settings allowed 50. It fires immediately, so a fast boot goes live sooner than before, not later — and it is not limited to auto-start, since the database connect retry alone can consume 30 of the old 50 seconds.- A Helm upgrade that changes only `env` or `secretEnv` now restarts the pod through ConfigMap and Secret checksums, so the new configuration reaches the running container. With `existingSecret` set the chart renders no Secret, so that path still needs `kubectl rollout restart`; `values.yaml` notes what publishing the Secret checksum as a pod annotation means.- A participant id with a recognised domain but a nonsense user-part — `NOT A [email protected]`, `@c.us` — is now rejected with `400` instead of reaching WhatsApp Web as an undiagnosable `500`; the same rule backs the `mentions` validator and the membership-request routes, and a bare phone number is qualified before reaching the Baileys socket. Fixes #1220.- Messages that predate the full-text index are indexed on the next boot instead of staying permanently unsearchable, and edits and deletes on them work again; the `messages_fts` emptiness guard is now a rowid-level completeness check.diff --git a/charts/openwa/templates/statefulset.yaml b/charts/openwa/templates/statefulset.yamlindex c7525f4a2..5e349466c 100644--- a/charts/openwa/templates/statefulset.yaml+++ b/charts/openwa/templates/statefulset.yaml@@ -51,9 +51,14 @@ spec:# 30s + 10s x (3-1) = 50s before the kubelet restarts the container, which the connect# retry alone can consume.#- # Budget here is periodSeconds x failureThreshold = 5 x 60 = 300s. That converts "killed- # at 50s by default" into "killed at a budget we chose" — a large improvement, and not a- # guarantee for a boot that is genuinely unbounded.+ # Budget here is periodSeconds x (failureThreshold - 1) = 5s x (60-1) = 295s — the same+ # arithmetic as the 50s above, because the first probe fires at initialDelaySeconds and the+ # verdict lands on the Nth consecutive failure, not one period after it. The Kubernetes+ # docs' shorthand (period x threshold) would say 300s; it is one period long, and applying+ # it to the liveness probe above would give 60s rather than the 50s stated there. Do not+ # "correct" this back without changing that one too. The point of either figure is that it+ # converts "killed at 50s by default" into "killed at a budget we chose" — a large+ # improvement, and not a guarantee for a boot that is genuinely unbounded.## initialDelaySeconds is deliberately left at its default of 0: the first probe fires# immediately, so a fast boot is recognised in ~5s instead of waiting out a fixed delay.