Conversation
--cordon-control-plane pinned every control plane pod to a node of its own with a required hostname anti-affinity, so the pool needed one node per pod (7 at the shipped replica counts) plus a spare for rollout surges. That mixed two kinds of isolation. Keeping the control plane off the worker nodes, so worker or actor load cannot starve it, benefits every component, and a shared pool is enough for it. A node to itself only matters for postgres. The control plane workloads other than postgres now select and tolerate a small shared pool, ate.dev/workloadType=ate-control-plane, and spread each workload's replicas across its nodes with a best-effort topology spread keyed on the app label. Postgres selects and tolerates a one-node pool of its own, ate.dev/workloadType=ate-postgres. The anti-affinity is gone, so the shared pool can be smaller than the pod count and rollouts no longer wait on a free node. The render test now checks which pool each workload lands in, that it tolerates that pool's taint, that only the shared pool spreads, and that no workload keeps a pod anti-affinity.
haiyanmeng
requested review from
Aditya Shantanu (aditya-shantanu) and
Max Smythe (maxsmythe)
October 1, 2026 16:15
haiyanmeng
marked this pull request as draft
October 1, 2026 18:40
Under --cordon-control-plane the bundled PostgreSQL now selects a pool of its own, ate.dev/workloadType=ate-postgres. A cluster installed before that split has no such pool, and re-running the installer would take postgres down: the StatefulSet deletes its running pod before creating the replacement, which then stays Pending with nowhere to schedule. applyPostgres, the path both deploy ate-system and deploy postgres take, now checks for a node carrying the label first and fails with a pointer to the upgrade runbook, leaving the running postgres untouched. docs/upgrade.md gains a checklist item and a section on creating the pool in the zone of the postgres volume, what the migration does to the control plane pods, and how to rebalance them and shrink the shared pool afterwards.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--cordon-control-planepinned every control plane pod to a node of its own with a required hostname anti-affinity, so the pool needed one node per pod (7 at the shipped replica counts) plus a spare for rollout surges. That mixed two kinds of isolation. Keeping the control plane off the worker nodes, so worker or actor load cannot starve it, benefits every component, and a shared pool is enough for it. A node to itself only matters for postgres.The control plane workloads other than postgres now select and tolerate a small shared pool,
ate.dev/workloadType=ate-control-plane, and spread each workload's replicas across its nodes with a best-effort topology spread keyed on the app label. Postgres selects and tolerates a one-node pool of its own,ate.dev/workloadType=ate-postgres. The anti-affinity is gone, so the shared pool can be smaller than the pod count and rollouts no longer wait on a free node.The render test now checks which pool each workload lands in, that it tolerates that pool's taint, that only the shared pool spreads, and that no workload keeps a pod anti-affinity.