Skip to content

Server pools and health ​

Symptoms of server pools, server health checks and the configuration format that describes them.

Health stays unchecked after removing the last HTTPS listener ​

  • Symptom: after removing every TLS certificate (for example by importing an HTTP-only configuration over a TLS one), /v1/pools/health keeps reporting envoy has not accepted the active configuration, waap_xds_in_sync stays 0, and the HA election reports the Envoy check as failed, although Envoy serves the new version. This was fixed in a later build.
  • Cause: the acceptance check compared every resource type Envoy had ever acknowledged with the latest version. Envoy stops requesting certificates once no listener uses them, so their last acknowledgement stayed at the old version. The check now covers only the resource types the latest version contains.
  • Check: if the message persists on a current build, compare waap config show (active version), the control log (envoy rejected configuration lines) and waap_xds_in_sync. A real rejection leaves the message in place by design.
  • Fix: upgrade to a build with the fix. On an older build, a configuration that still holds at least one certificate, or a restart of the node, clears it.

Cluster names changed, or pool health is unknown after a format 1 upgrade ​

  • Symptom: Envoy reports pool/shop where it previously reported app/shop; a pool with a health check initially shows unknown health.
  • Cause: format 1 is read as format 2 in memory. Each application gets its own named pool, and Envoy creates a new cluster. Health checks start again; in-flight requests on the old cluster finish.
  • Check: waap validate -config FILE prints format 1 upgraded: N pools created for an old file. Update monitoring queries that select app/NAME to use pool/NAME.
  • Fix: allow the initial checks to complete (interval times healthy_after), then check the pool's health_check.path and each server directly if it stays unhealthy. Shared pools have one cluster and one set of checks. The active node creates one audited system migration version; later restarts create none.

Reading a pool named health returns runtime observations ​

  • Symptom: GET /v1/pools/health returns nodes and observations rather than settings.
  • Cause: that literal path serves runtime health; health remains a valid pool name.
  • Check: waap pools get -pool health or GET /v1/pools/health/settings.
  • Fix: use the settings-read alias for this name; the CLI uses the alias for all pools. Other pool settings remain readable at both /v1/pools/NAME and /v1/pools/NAME/settings.

Server is unchecked rather than healthy ​

  • Symptom: waap pools health reports unchecked, including while traffic succeeds.
  • Cause: no active check is configured, its first result is pending, or Envoy has not reported the host. Successful routing alone does not measure health.
  • Check: read the reason and observation time in waap pools health -json; inspect health_check.path with waap pools get -pool NAME.
  • Fix: configure the intended path, Host and thresholds with waap pools set; allow the initial check and up to 5 seconds for the cached reader. A DNS server remains unreported if resolution has not produced an endpoint; fix DNS rather than trusting a missing observation. A failed check reports unhealthy and its reason.

Health is stale, unavailable, or the response exceeds 1 MiB ​

  • Symptom: the node reports stale: true, with Envoy health has not been read, envoy health unavailable, envoy health response exceeds 1 MiB, invalid Envoy health JSON, envoy health JSON has no cluster_statuses, envoy health returned HTTP ..., reading Envoy health: ..., Envoy health observation expired, configuration awaiting health observation, or envoy has not accepted the active configuration.
  • Cause: the reader has not polled yet, Envoy or its socket is unavailable, the admin request failed or exceeded its 1-second timeout, the response was invalid or over the 1 MiB limit, or polling stopped. A failed read removes healthy claims.
  • Check: waap pools health -json, the control process log, the Envoy process and envoy-admin.sock in the configured runtime directory. Compare both HA nodes.
  • Fix: restore Envoy and socket access, then allow the next 5-second poll. For an oversized response, reduce the configured host count or DNS fan-out; the reader refuses partial JSON and does not raise the limit. Keep the admin socket private. Draining and disabled states still come from configuration, even with no current measurement.

HA nodes disagree on health, or peer health is missing or truncated ​

  • Symptom: a server is healthy on one node and unhealthy on the other; a pool summary follows the worse state. Or peer data reports stale, error or truncated.
  • Cause: the nodes have different network paths, or the authenticated peer report is unavailable, expired, from older software, or contains more than 4,096 entries.
  • Check: waap pools health -json for per-node reasons, timestamps and flags; waap ha status for link state. Errors identify peer is unavailable, peer health observation expired, or peer has not reported server health.
  • Fix: probe the check path and Host from each node and restore that node's backend path. Restore the peer link, or upgrade both nodes to software that supports health summaries. Truncation is explicit: only the first 4,096 configured server entries reach the peer, so query the other node locally for the full view. Never treat missing entries as healthy.

Requests still try unhealthy servers when most of a pool is down ​

  • Symptom: health correctly reports failed servers, but some requests still return 503 or reach a server with a failing check.
  • Cause: Envoy's panic routing can try all hosts when fewer than half are healthy. Health reporting does not change that data-plane behavior.
  • Check: compare each server in waap pools health and probe the backends directly.
  • Fix: restore enough healthy servers, or disable or remove servers known to be unavailable while keeping a usable active server. Do not read a failed request as a stale health report without checking its observation time.

ha.format_behind: format 2 writes refused or migration stays on format 1 ​

  • Symptom: configuration writes return ha.format_behind: upgrade the standby's software before writing configuration format 2, or startup serves old history without creating its migration version. High availability and waap ha status show the warning.
  • Cause: the peer's heartbeat omits config_format, reports less than 2, or has not arrived since startup, so the peer cannot yet be trusted to read format 2. Traffic still uses the upgraded form in memory. Every configuration writer checks this, including YAML apply, application and system settings, and selected-application copy.
  • Check: waap ha status -json: inspect format_behind, the peer links and peer.beat.config_format (the highest readable format, separate from config_version). A standby never writes a migration version itself. Check waap config versions for actor system, source migration, and waap audit list for config.migrate.
  • Fix: upgrade the standby first, switch over, then upgrade the other node. Restore peer connectivity if no capability is known. The active node retries migration automatically within a second of learning that both readers support format 2. During the upgrade, format 1 edits remain supported and replicate as format 1. A format 2 document cannot be saved until the peer is ready. A temporarily lost peer keeps its last capability; after a restart the capability must be learned again.

Health checks fail after sharing a pool between applications with different virtual hosts ​

  • Symptom: servers become unhealthy after applications share a pool; direct requests using one application's Host succeed, while health checks receive 404 or 421.
  • Cause: a pool has one set of checks and one Host. The Host is the explicit health_check.host when set, else the pool's TLS server name, else the first non-wildcard hostname of the first application using the pool in configuration order (or that application's first wildcard with *. removed). Other virtual hosts may not serve the same health-check path.
  • Check: inspect the pool's health_check.host, tls.server_name, health_check.path and the application order in waap config show. Probe every server with that Host, for example curl -H 'Host: shop.example.com' http://10.0.1.10:9000/healthz. For TLS, use curl --resolve shop.example.com:9443:10.0.1.10 -H 'Host: shop.example.com' --cacert ca.pem https://shop.example.com:9443/healthz, so the probe also sends the correct TLS server name.
  • Fix: make that path return success for the pool's Host on every server, or keep separate pools for applications whose virtual hosts need different checks. Set an explicit Host with waap pools set -pool NAME health_check.host=checks.example.com. This changes only the HTTP Host header; TLS SNI and certificate verification still use tls.server_name.

Application settings refuse an upstream change: "pool ... is shared by applications ..." ​

  • Symptom: application Settings, waap apps set upstream.*=... or waap apps ca refuses a change.
  • Cause: more than one application references the pool. The transitional application settings must not change servers for another application.
  • Check: find the applications[].server_pool references in the YAML editor or waap config show. The error names the pool and its applications.
  • Fix: use waap pools set -pool NAME or waap pools ca set -pool NAME -f ca.pem. The application commands are deprecated for one release. To change only one application, create a separate pool and run waap apps set -app APP server_pool=NEW, or use the inline creator on the application's Server pool page. The Server pools page has the full forms for shared pools.

Pool removal returns 409: "server pool is referenced" ​

  • Symptom: Remove server pool, Preview changes, waap pools remove, or DELETE /v1/pools/NAME fails with server pool is referenced and names applications.
  • Cause: at least one application still uses that pool.
  • Check: waap pools get -pool NAME; inspect applications in the JSON result.
  • Fix: choose another pool for every listed application on the application's Server pool page, preview and apply, then retry the removal. CLI: waap apps set -app APP server_pool=OTHER. If the 409 instead says the version changed, reread the settings and preview again before retrying.

Pool preview is disabled, disappears, or the new inline pool is unused ​

  • Symptom: Preview changes is disabled, Apply disappears after an edit, or an inline pool was created but the application still uses its old pool.
  • Cause: the draft is unchanged or invalid; any edit or refreshed base version needs a new preview. Inline pool creation and application attachment are separate versions.
  • Check: read the "Fix these first" list, then check addresses (host:port), weights (1 to 100), states and the pool name. At least one server must not be disabled. Check the application's current pool below the picker and the configuration versions for the pool creation.
  • Fix: correct the draft and preview again. After inline creation, preview and apply the application to attach the pool. If another operator changed the version, reload and review a fresh diff. A failed activation is reported; it does not select an unactivated pool.

Apply stays disabled after changing an application's pool a second time ​

  • Symptom: the second pool selection has a valid diff, but Apply stays disabled.
  • Cause: a reused preview panel kept the previous change's success state. Starting a fresh preview now clears that state.
  • Check: confirm the active version and selected pool; inspect the diff before another write. A completed apply stays disabled until a new preview is requested.
  • Fix: use a current console build and preview the changes again. Consecutive attachments each produce their own version and a matching stored diff.

Browser pool tests cannot find a dropdown shown on the screen ​

  • Symptom: Playwright times out on getByLabel("Server state 2", {exact: true}), or matches the Server pool navigation link instead of the disabled select.
  • Cause: a wrapped select's label text includes option text, and the navigation has the same accessible label. The pool forms and the API may already have saved correctly.
  • Check: inspect the saved browser snapshot: the native select has role combobox and the expected accessible name. Compare the active version before retrying a mutation.
  • Fix: select the combobox by role and exact accessible name, scoped to the form. Keep the version and diff assertions and the timeouts.

Pool edit fails, or a scoped reader cannot find a pool ​

  • Symptom: 422 reports no settings or servers to change, servers must be a JSON array, an unknown setting, an invalid name, weight, state or Host, or pool ... already exists; a read returns 404, or a write returns 403.
  • Cause: invalid or empty input, a duplicate name, or insufficient application or global scope. Setting both server_pool and the deprecated upstream.* in one edit is refused.
  • Check: waap pools fields, waap pools get -pool NAME, the caller's role and scope, and the server file (an array of records with address, optional weight and state).
  • Fix: use valid fields and records, and a unique name. Submit pool selection separately from legacy upstream edits. A scoped reader sees only the pools used by their applications; pool writes require a global operator or administrator. An application's new legacy target pool must not collide with an existing name; use server_pool=NAME to attach that pool instead.

Pool CA upload fails: "the CA bundle contains no PEM certificates" ​

  • Symptom: Server CA, Preview changes, the CA endpoint or waap pools ca set returns 422. An oversized request may return 400 with http: request body too large.
  • Cause: the file is not a valid PEM certificate bundle, or it exceeds the upload bound.
  • Check: inspect the bundle locally with openssl x509 -in ca.pem -noout -subject, and check its size. Private keys do not belong in a CA upload.
  • Fix: upload the correct CA certificates. The CLI limits the file to 8 MiB. With IP server addresses and verification enabled, set tls.server_name to the certificate's DNS name first; otherwise validation reports that a server name is required.

Format 2 validation refuses a pool or application reference ​

  • Symptom: validation names server_pools[].servers[].weight, .state, .address, server_pools[].connect_timeout, a duplicate pool, or applications[].server_pool: unknown server pool.
  • Cause: a server has an invalid address, a weight outside 1 to 100, or a state other than active, draining or disabled; or the pool or reference is missing or duplicated. Limits are 256 servers per pool and 1,024 pools. A pool needs one server that is not disabled. connect_timeout must be between 1 ms and 60 s; a positive value below 1 ms is refused.
  • Check: waap validate -config FILE. It lists all structural problems. A format 2 application uses server_pool and has no upstream block; a format 1 document has no pools.
  • Fix: correct the indicated path. When removing or renaming a pool, update every application reference in the same document. All-draining pools are valid but receive no new requests; return a healthy server to active to restore traffic.