Skip to content

Stabilize sandbox Elasticsearch StatefulSet#1013

Open
arielr-lt wants to merge 3 commits intomasterfrom
fix/sandbox-elasticsearch-stability
Open

Stabilize sandbox Elasticsearch StatefulSet#1013
arielr-lt wants to merge 3 commits intomasterfrom
fix/sandbox-elasticsearch-stability

Conversation

@arielr-lt
Copy link
Collaborator

Summary

  • Set podManagementPolicy: Parallel — nodes start simultaneously and can discover each other during cluster formation. OrderedReady (the default) caused a deadlock where neither node could become ready without the other already being up.
  • Set timeoutSeconds: 10 on readiness and liveness probes — the default 1s was too short for the wait_for_status=yellow health endpoint, causing nodes to be killed before they could join the cluster.

The elasticsearch-discovery service already had publishNotReadyAddresses: true in the manifest but had drifted from the live cluster. This has been applied directly.

These fixes were identified during an incident where a dead EC2 node (kubelet stopped posting status) caused the cluster to lose quorum and enter a CrashLoopBackOff cycle that could not self-recover.

Ariel Rolfo added 3 commits March 19, 2026 18:02
- Remove opensearch-deployment.yaml and opensearch-pvc.yaml (unused, no app references)
- Set elasticsearch replicas to 1 and configure discovery.type=single-node
Missing proxy-body-size annotation caused nginx to use its default 1m
limit, rejecting large publish payloads (~3.4MB) with 413 errors.
Matches the limit already set in sandbox and staging.
- Set podManagementPolicy to Parallel so nodes can start simultaneously
  and discover each other during cluster formation. OrderedReady caused
  a deadlock where neither node could become ready without the other.
- Set timeoutSeconds: 10 on readiness and liveness probes. The default
  of 1s was too short for the wait_for_status=yellow health endpoint,
  causing nodes to be killed before they could join the cluster.

The elasticsearch-discovery service already had publishNotReadyAddresses:
true in the manifest but was not applied to the live cluster (drift).
This has been applied directly.
@edgarf edgarf self-requested a review March 26, 2026 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants