Skip to content

Limit app to a single CPU and Solid Queue to 1 thread/1 process - #101

Merged
kcdragon merged 1 commit into
mainfrom
limit-kamal-single-cpu
Jul 29, 2026
Merged

Limit app to a single CPU and Solid Queue to 1 thread/1 process#101
kcdragon merged 1 commit into
mainfrom
limit-kamal-single-cpu

Conversation

@kcdragon

Copy link
Copy Markdown
Collaborator

Caps the Kamal web container at one CPU core via options: { cpus: 1 } (renders to docker run --cpus 1) and pins Puma to a single worker with WEB_CONCURRENCY=1. Pins the in-Puma Solid Queue worker to 1 thread and 1 process in config/queue.yml (hardcoded so it can't be bumped via JOB_CONCURRENCY). These are deploy-time config changes that take effect on the next bin/kamal deploy.

🤖 Generated with Claude Code

Cap the Kamal web container at one CPU core via `options: { cpus: 1 }`
(renders to `docker run --cpus 1`) and pin Puma to a single worker with
WEB_CONCURRENCY=1. Pin the in-Puma Solid Queue worker to 1 thread and 1
process in config/queue.yml.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@kcdragon
kcdragon merged commit 8c7b46c into main Jul 29, 2026
4 of 5 checks passed
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.

1 participant