From 6b2e0d3d906d12d366fa45c62e8ec20c3dd8f8fc Mon Sep 17 00:00:00 2001 From: Luis Ibarra Date: Mon, 16 Nov 2026 19:02:33 -0300 Subject: [PATCH 1/3] docs: document Helm chart health probe defaults and restart troubleshooting Add a Health probes section to the Helm chart page with the chart 3.9.2 probe defaults, override keys, upgrade notes and the HTTPContainerPort caveat. Link it from the troubleshooting page and add an entry for pods that restart after saving admin settings. Source: appsmithorg/appsmith#42571 Co-Authored-By: Claude Opus 5.5 Co-authored-by: multica-agent --- .../instance-configuration/helm-chart.md | 51 +++++++++++++++++++ .../performance-resource-errors.md | 15 +++++- 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/website/docs/getting-started/setup/instance-configuration/helm-chart.md b/website/docs/getting-started/setup/instance-configuration/helm-chart.md index f7f85c23f0..301bfdb3c0 100644 --- a/website/docs/getting-started/setup/instance-configuration/helm-chart.md +++ b/website/docs/getting-started/setup/instance-configuration/helm-chart.md @@ -66,6 +66,57 @@ PostgreSQL is used by Keycloak for identity management. The chart bundles Postgr Switching to an external PostgreSQL on an existing install requires migrating Keycloak's data. See [External PostgreSQL](/getting-started/setup/instance-configuration/external-postgresql-rds) for configuration details. +## Health probes + +The chart configures a startup, liveness, and readiness probe on the Appsmith container. All three send an HTTP request to the health endpoint, `/api/v1/health`. The liveness and readiness probes start only after the startup probe succeeds. + +Saving some admin settings restarts the Appsmith server inside the container, and the restart takes about 45 seconds. The probe defaults in chart 3.9.2 and later are sized so that Kubernetes doesn't kill the container during these restarts. + +| Probe | `periodSeconds` | `timeoutSeconds` | `failureThreshold` | Effect | +|---|---|---|---|---| +| `startupProbe` | 10 | 5 | 60 | Allows 600 seconds for the server to boot. | +| `livenessProbe` | 10 | 5 | 18 | Restarts the container after 180 seconds of continuous failure. | +| `readinessProbe` | 10 | 5 | 3 | Stops sending traffic to the pod after 30 seconds of failure. | + +Each probe accepts the following keys under `probes.startupProbe`, `probes.livenessProbe`, and `probes.readinessProbe`: + +- `port`: the container port to probe. Defaults to `80`. +- `api`: the HTTP path to request. Defaults to `/api/v1/health`. +- `periodSeconds`: how often to run the probe. +- `timeoutSeconds`: how long to wait for a response before the attempt counts as a failure. +- `failureThreshold`: how many failures in a row trigger the probe's effect. + +To change a probe, set only the keys you need in your `values.yaml`. Keys you don't set keep their defaults. For example, to give the liveness probe a longer timeout: + +```yaml +probes: + livenessProbe: + timeoutSeconds: 15 +``` + +### Upgrading from an older chart + +Charts before 3.9.2 ran each probe every 60 seconds with a 1-second timeout and a `failureThreshold` of 3. When you upgrade: + +- Keys you set under `probes` still take effect, and keys you didn't set take the new defaults. +- If you set `failureThreshold` with a 60-second interval in mind, also set `periodSeconds: 60` for that probe. Otherwise the probe now runs every 10 seconds, and your threshold is reached six times faster. +- `periodSeconds`, `timeoutSeconds`, and `failureThreshold` must be positive integers. Other values, such as `0`, make `helm install` and `helm upgrade` fail with a schema validation error. Quoted numbers such as `"60"` are accepted. + +### Custom HTTP port + +The probe `port` defaults to `80` and doesn't follow `HTTPContainerPort`. If you set `HTTPContainerPort`, also set `port` for every probe to the same value. Otherwise the probes call a port the server doesn't listen on, the startup probe never succeeds, and Kubernetes keeps restarting the container: + +```yaml +HTTPContainerPort: 8080 +probes: + startupProbe: + port: 8080 + livenessProbe: + port: 8080 + readinessProbe: + port: 8080 +``` + ## Community edition The community and enterprise editions use the same Helm chart. To install the community edition, set the image repository in your `values.yaml`: diff --git a/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md b/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md index 1bec423186..b83531d311 100644 --- a/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md +++ b/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md @@ -15,9 +15,22 @@ The Appsmith server is unreachable or crashing. A common root cause on self-mana #### Solution - Mount a persistent volume to the Appsmith pod so configuration and data survive restarts. See [Self-hosting Best Practices](/getting-started/setup/best-practices) and [High Availability Setup on Kubernetes](/getting-started/setup/installation-guides/kubernetes/configure-high-availability). -- Configure `readinessProbe` and `livenessProbe` so unhealthy pods are restarted and removed from rotation. If you deployed with your own manifests rather than the Appsmith Helm chart, add these probes to your deployment. +- Configure `readinessProbe` and `livenessProbe` so unhealthy pods are restarted and removed from rotation. The Appsmith Helm chart configures these probes for you. See [Health probes](/getting-started/setup/instance-configuration/helm-chart#health-probes) for the defaults and how to override them. If you deployed with your own manifests rather than the Appsmith Helm chart, add these probes to your deployment. - Collect the server logs covering the time of the crash (not just after the restart) and share them with support. See [How to Get Container Logs](/getting-started/setup/instance-management/how-to-get-container-logs). +### Pod restarts after saving admin settings + +#### Cause + +Saving some admin settings restarts the Appsmith server inside the container. The restart takes about 45 seconds, and the health check fails while it runs. Helm charts older than 3.9.2 ran the liveness probe every 60 seconds with a 1-second timeout and restarted the container after three failures in a row. When you save settings several times in a row, each server restart can land on a liveness check, and Kubernetes kills the container in the middle of a restart. The 1-second timeout also lets a slow but working server fail a check. + +The same thing can happen on a newer chart if a `probes` override in your `values.yaml` sets a short `timeoutSeconds`, a low `failureThreshold`, or a long `periodSeconds`. + +#### Solution + +- Upgrade to Helm chart 3.9.2 or later. Its liveness probe runs every 10 seconds with a 5-second timeout and restarts the container only after 180 seconds of continuous failure. A single successful check resets the count, so a series of restarts doesn't add up to a container restart. +- If you override `probes`, remove the liveness overrides or raise `timeoutSeconds` and `failureThreshold`. See [Health probes](/getting-started/setup/instance-configuration/helm-chart#health-probes). + ### Instance runs out of memory (OOM) or fails health checks #### Cause From d8c219ec297c219e7566c5c97f7029128ee0945f Mon Sep 17 00:00:00 2001 From: Luis Ibarra Date: Mon, 16 Nov 2026 19:06:40 -0300 Subject: [PATCH 2/3] docs: troubleshoot pod restarts during first startup on Kubernetes Adds a troubleshooting entry for a Helm install whose pod is restarted by the startup probe while first-boot migrations run against a remote MongoDB. Documents the 600 s startup window in chart 3.9.2 and how to extend it under probes.startupProbe. Source: appsmithorg/appsmith#42574 (merged into #42571, shipped as chart 3.9.2). Co-Authored-By: Claude Opus 5.5 Co-authored-by: multica-agent --- .../performance-resource-errors.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md b/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md index b83531d311..016c4f5af5 100644 --- a/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md +++ b/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md @@ -43,6 +43,37 @@ When the Appsmith instance is undersized, the backend can start and then be term - Ensure the instance meets the minimum size: `t3.large` or equivalent (2 vCPU, 8 GB of memory). See [Self-hosting Best Practices](/getting-started/setup/best-practices). - On platforms with health checks, increase the failed-health-check threshold or extend the health-check timeout so the service has time to stabilize before being marked unhealthy. +### Pod restarts during first startup on Kubernetes + +#### Cause + +On first start, the Appsmith server runs every database migration before it starts to accept requests. Against a remote MongoDB, such as MongoDB Atlas, this can take several minutes. While the migrations run, the Helm chart's `startupProbe` fails. When the startup probe reaches its `failureThreshold`, Kubernetes restarts the container before the server finishes starting. + +Helm charts older than 3.9.2 ran the startup probe every 60 seconds and restarted the container after three failures, which allows about 180 seconds to boot. Chart 3.9.2 and later run it every 10 seconds with a 5-second timeout and a `failureThreshold` of 60, which allows 600 seconds. The liveness and readiness probes start only after the startup probe succeeds. + +#### Solution + +- Upgrade to Helm chart 3.9.2 or later. +- If the first boot still takes longer than 600 seconds, raise `failureThreshold` under `probes.startupProbe` in your `values.yaml`. The startup window is `periodSeconds` multiplied by `failureThreshold`. For example, this allows 900 seconds: + + ```yaml + probes: + startupProbe: + periodSeconds: 10 + failureThreshold: 90 + ``` + + Then apply the change: + + ```bash + helm upgrade -i appsmith-ee appsmith-ee/appsmith -n appsmith-ee -f values.yaml + ``` + + `periodSeconds` and `failureThreshold` must be positive integers. Other values, such as `0`, make `helm install` and `helm upgrade` fail with a schema validation error. +- If you stay on a chart older than 3.9.2, set both `periodSeconds` and `failureThreshold` under `probes.startupProbe` so their product covers your boot time, for example `periodSeconds: 10` and `failureThreshold: 60` for 600 seconds. + +The startup probe stops after its first success, so a longer startup window doesn't change how quickly Kubernetes detects a failure on a running server. For all probe defaults and override keys, see [Health probes](/getting-started/setup/instance-configuration/helm-chart#health-probes). + ### High CPU and memory usage with few users #### Cause From 5f99009ef3effa10c441b792e9f475c251b8d2c2 Mon Sep 17 00:00:00 2001 From: Luis Ibarra Date: Mon, 16 Nov 2026 19:08:09 -0300 Subject: [PATCH 3/3] docs: resolve probe period guidance contradiction between pages Lead the upgrade note with scaling failureThreshold by 6, keep periodSeconds: 60 as the alternative with a link to the restart troubleshooting entry, and add lowering periodSeconds to that entry's fix. Co-Authored-By: Claude Opus 5.5 Co-authored-by: multica-agent --- .../getting-started/setup/instance-configuration/helm-chart.md | 2 +- .../troubleshooting-guide/performance-resource-errors.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/getting-started/setup/instance-configuration/helm-chart.md b/website/docs/getting-started/setup/instance-configuration/helm-chart.md index 301bfdb3c0..38eb7201a7 100644 --- a/website/docs/getting-started/setup/instance-configuration/helm-chart.md +++ b/website/docs/getting-started/setup/instance-configuration/helm-chart.md @@ -99,7 +99,7 @@ probes: Charts before 3.9.2 ran each probe every 60 seconds with a 1-second timeout and a `failureThreshold` of 3. When you upgrade: - Keys you set under `probes` still take effect, and keys you didn't set take the new defaults. -- If you set `failureThreshold` with a 60-second interval in mind, also set `periodSeconds: 60` for that probe. Otherwise the probe now runs every 10 seconds, and your threshold is reached six times faster. +- If you set `failureThreshold` with a 60-second interval in mind, the probe now runs every 10 seconds and reaches your threshold six times faster. Multiply `failureThreshold` by 6 to keep the same window, for example `3` becomes `18`. You can also set `periodSeconds: 60` for that probe to keep the old timing, but a 60-second period makes [pod restarts after saving admin settings](/help-and-support/troubleshooting-guide/performance-resource-errors#pod-restarts-after-saving-admin-settings) more likely. - `periodSeconds`, `timeoutSeconds`, and `failureThreshold` must be positive integers. Other values, such as `0`, make `helm install` and `helm upgrade` fail with a schema validation error. Quoted numbers such as `"60"` are accepted. ### Custom HTTP port diff --git a/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md b/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md index b83531d311..4b61ea48c8 100644 --- a/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md +++ b/website/docs/help-and-support/troubleshooting-guide/performance-resource-errors.md @@ -29,7 +29,7 @@ The same thing can happen on a newer chart if a `probes` override in your `value #### Solution - Upgrade to Helm chart 3.9.2 or later. Its liveness probe runs every 10 seconds with a 5-second timeout and restarts the container only after 180 seconds of continuous failure. A single successful check resets the count, so a series of restarts doesn't add up to a container restart. -- If you override `probes`, remove the liveness overrides or raise `timeoutSeconds` and `failureThreshold`. See [Health probes](/getting-started/setup/instance-configuration/helm-chart#health-probes). +- If you override `probes`, remove the liveness overrides, or raise `timeoutSeconds` and `failureThreshold`, or lower `periodSeconds`. See [Health probes](/getting-started/setup/instance-configuration/helm-chart#health-probes). ### Instance runs out of memory (OOM) or fails health checks