Check the release fits the workers before deploying; Ollama on by default #28

Merged
Patrick merged 1 commit from patrick/capacity-check into main 2026-11-19 22:26:27 -05:00 AGit
Owner

Why: Dallas's v0.3.30 upgrade timed out after 10 minutes. Ollama asked for 4 GiB and no single worker had it free, though the cluster had about 9 GiB free in total. Nothing warned before Helm gave up.

Capacity check (scripts/lib/capacity.sh), run just before helm upgrade with exactly the chart and values Helm gets:

  • Renders the workloads, takes each worker's allocatable minus what other namespaces reserve (system, ingress, monitoring), and places every pod biggest-first, plus one rolling-update copy of the biggest pod. Totals alone would have said tonight's install fit.
  • Monitoring that's enabled but not running yet is counted from monitoring.sh's own requests.
  • Short on managed VKE: says what's short and offers to add N workers on the current plan (resize-vke-workers.sh, in place, running pods don't move). --yes adds them without asking. Elsewhere: suggests features to switch off.
  • If it can't render the chart or read the cluster, it warns and steps aside; it never blocks an install by itself failing. ORBITAL_SKIP_CAPACITY_CHECK=1 turns it off.

Self-hosted AI (Ollama) on by default in the Features step, matching the chart change in orbital #87: knowledge stores embed locally unless a site opts out. Wording updated to the new embeddings sizing.

Tested read-only against Dallas (feeding "no" to every prompt):

  • v0.3.30 chart + Dallas's features: won't fit, short on CPU and memory (8.5 cores needed vs 8.5 free at 90%), recommends 3 → 4 workers. Matches what actually happened.
  • orbital #87 chart (Ollama 250m / 1.5 GiB): fits on the current 3 workers (7.0 cores / 14.4 GiB of 8.5 / 18.5).
  • The step-aside path triggered correctly while I fixed jq bugs during development.

Merge before tagging orbital (release CI tags this repo's main HEAD).

🤖 Generated with Claude Code

**Why:** Dallas's v0.3.30 upgrade timed out after 10 minutes. Ollama asked for 4 GiB and no single worker had it free, though the cluster had about 9 GiB free in total. Nothing warned before Helm gave up. **Capacity check** (`scripts/lib/capacity.sh`), run just before `helm upgrade` with exactly the chart and values Helm gets: - Renders the workloads, takes each worker's allocatable minus what other namespaces reserve (system, ingress, monitoring), and **places every pod biggest-first**, plus one rolling-update copy of the biggest pod. Totals alone would have said tonight's install fit. - Monitoring that's enabled but not running yet is counted from monitoring.sh's own requests. - **Short on managed VKE:** says what's short and offers to add N workers on the current plan (`resize-vke-workers.sh`, in place, running pods don't move). `--yes` adds them without asking. **Elsewhere:** suggests features to switch off. - If it can't render the chart or read the cluster, it warns and steps aside; it never blocks an install by itself failing. `ORBITAL_SKIP_CAPACITY_CHECK=1` turns it off. **Self-hosted AI (Ollama) on by default** in the Features step, matching the chart change in orbital #87: knowledge stores embed locally unless a site opts out. Wording updated to the new embeddings sizing. **Tested read-only against Dallas** (feeding "no" to every prompt): - v0.3.30 chart + Dallas's features: **won't fit**, short on CPU and memory (8.5 cores needed vs 8.5 free at 90%), recommends **3 → 4 workers**. Matches what actually happened. - orbital #87 chart (Ollama 250m / 1.5 GiB): **fits on the current 3 workers** (7.0 cores / 14.4 GiB of 8.5 / 18.5). - The step-aside path triggered correctly while I fixed jq bugs during development. **Merge before tagging orbital** (release CI tags this repo's main HEAD). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Check the release fits the workers before deploying; Ollama on by default
All checks were successful
lint / terraform (fmt + validate + tflint) (pull_request) Successful in 53s
lint / ansible (yamllint + ansible-lint + syntax-check) (pull_request) Successful in 1m37s
security / checkov (terraform misconfig + secrets) (pull_request) Successful in 1m36s
312d04a238
Dallas's v0.3.30 upgrade timed out after ten minutes because Ollama asked
for 4 GiB and no worker had it free, though the cluster had 9 GiB free
in total. Nothing warned before Helm gave up.

- capacity_check (scripts/lib/capacity.sh) runs just before helm upgrade
  with the same chart and values: renders the workloads, takes each
  worker's allocatable minus what other namespaces reserve, and places
  every pod biggest-first plus a rolling-update copy of the biggest.
  Monitoring enabled but not yet running is counted from monitoring.sh's
  requests. On managed VKE a shortfall offers to add workers on the
  current plan (resize-vke-workers.sh, in place); elsewhere it suggests
  features to switch off. It steps aside if it can't render or read the
  cluster; ORBITAL_SKIP_CAPACITY_CHECK=1 turns it off.
- Self-hosted AI (Ollama) defaults to on in the Features step, matching
  the chart (orbital PR #87): knowledge stores embed locally unless a
  site opts out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
calltheory/orbital-setup!28
No description provided.