Skip to content

Fit the Render demo into the free plan's memory - #51

Merged
royalpriest merged 1 commit into
mainfrom
claude/render-memory
Nov 18, 2026
Merged

royalpriest merged 1 commit into
mainfrom
claude/render-memory

Conversation

@royalpriest

@royalpriest royalpriest commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

The first Render deploy built fine but timed out on startup with no app output.

Reproducing Render's settings locally showed the cause. Render sets WEB_CONCURRENCY=1, which puts Puma in cluster mode, and Solid Queue forks a supervisor, dispatcher, worker and scheduler. That's six Ruby processes using about 650 MB, but the free plan has 512 MB.

Fix

  • config/puma.rb: new SOLID_QUEUE_MODE=async option that runs Solid Queue as threads inside Puma, using Solid Queue's built-in async mode.
  • render.yaml: sets WEB_CONCURRENCY=0 (Puma single mode) and SOLID_QUEUE_MODE=async.

Nothing changes for the Docker image or other deploys unless they set these variables.

Checks

  • Booted locally with Render's settings on a fresh database: one process using about 120 MB. /up returned 200 within a few seconds, and the dispatcher, worker and scheduler (including reset_demo) all started.
  • bin/rails test: 136 runs, 0 failures. Rubocop is clean.

Render sets WEB_CONCURRENCY=1, which put Puma in cluster mode, and Solid Queue forked four more processes. Together they used about 650 MB, over the free plan's 512 MB, and the deploy timed out. The demo now runs Puma in single mode with Solid Queue as threads (new SOLID_QUEUE_MODE=async), about 120 MB in one process.
@royalpriest
royalpriest merged commit 4a4201c into main Nov 18, 2026
5 checks passed
@royalpriest
royalpriest deleted the claude/render-memory branch November 19, 2026 01:48
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