Skip to content

Add service autoscaling - #265

Merged
arjunkomath merged 4 commits into
mainfrom
feat/service-autoscaling
Aug 3, 2026
Merged

Add service autoscaling#265
arjunkomath merged 4 commits into
mainfrom
feat/service-autoscaling

Conversation

@techulus-agent

Copy link
Copy Markdown
Collaborator

Summary

  • add fixed-versus-autoscaled replica policy with a 1–32 range and fixed 60% CPU/memory targets
  • emit strict per-deployment CPU and memory metrics and calculate conservative service-wide recommendations
  • run a bounded one-minute autoscaling controller through existing immutable revisions and full-fleet rollouts
  • expose autoscaling in the dashboard, public API, and documentation

Basecamp: https://app.basecamp.com/5890597/buckets/47439993/todos/10100792154

Verification

  • cd web && pnpm test — 405 tests passed
  • cd web && ./node_modules/.bin/tsc --noEmit
  • cd agent && go test -race ./internal/container ./internal/metrics
  • cd agent && go build ./...
  • cd agent && gofmt -l .

cd agent && go test ./... still has the pre-existing failure in internal/registryauth.TestManagerInstallDirtyAndPermissions (cached generation unavailable after restart).

Manual verification pending

  • validate Podman .CPUNano / .SystemNano template output and recent CPU-core values on an agent host
  • exercise sustained scale-up/down, downscale stabilization, failed replacement preservation, and the 32-replica capacity case

Operational note

Apply the Drizzle schema changes before enabling the one-minute controller cron.

@mintlify

mintlify Bot commented Aug 2, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
techulus-cloud 🟢 Ready View Preview Aug 2, 2026, 11:49 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@github-actions

github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown

React Doctor found no issues. 🎉

⚠️ Warning: .github/workflows/react-doctor.yml is configured incorrectly. See below to fix.

React Doctor compares against main to report only the issues this pull request introduces. This run couldn't complete that comparison (usually a shallow CI checkout with no merge base), so it listed every issue in the changed files, including ones that already existed on main.

Add fetch-depth: 0 to the actions/checkout step in .github/workflows/react-doctor.yml so the checkout includes the history React Doctor needs:

 jobs:
   react-doctor:
     steps:
       - uses: actions/checkout@v5
+        with:
+          fetch-depth: 0

       - uses: millionco/react-doctor@v2

To silence this warning, set silence-missing-baseline-warning: true on the React Doctor action.

Reviewed by React Doctor for commit 2e19cc6.

@arjunkomath
arjunkomath added this pull request to the merge queue Aug 3, 2026
Merged via the queue into main with commit 19b96a0 Aug 3, 2026
11 checks passed
@arjunkomath
arjunkomath deleted the feat/service-autoscaling branch August 3, 2026 01:16
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