Registry Mirror
Skip to content

Conversation

@haiyanmeng

@haiyanmeng haiyanmeng commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

--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.

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

--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.
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.
@haiyanmeng haiyanmeng added the DO NOT MERGE This PR must not be merged yet. label Oct 1, 2026
@haiyanmeng
haiyanmeng marked this pull request as ready for review October 1, 2026 18:52
@haiyanmeng haiyanmeng removed the DO NOT MERGE This PR must not be merged yet. label Oct 1, 2026

@maxsmythe Max Smythe (maxsmythe) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@maxsmythe
Max Smythe (maxsmythe) added this pull request to the merge queue Oct 1, 2026
Merged via the queue into agent-substrate:main with commit b31da0f Oct 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants