Skip to content

Optimize production memory allocation - #352

Merged
ewlarson merged 1 commit into
developfrom
feature/optimize-production-memory
Aug 21, 2026
Merged

Optimize production memory allocation#352
ewlarson merged 1 commit into
developfrom
feature/optimize-production-memory

Conversation

@ewlarson

Copy link
Copy Markdown
Contributor

Summary

  • double the production Celery worker memory ceiling from 2 GiB to 4 GiB
  • raise the production Redis data ceiling from 12 GB to 16 GB and bound the container at 18 GiB
  • bound Elasticsearch at 8 GiB while retaining its configured 4 GiB JVM heap
  • add a regression test for the production memory profile

Rationale

This aligns the production service ceilings with the expanded host capacity while retaining headroom for PostgreSQL, filesystem cache, the proxy, and host monitoring services. Web and cron allocations remain unchanged.

Deployment note

The worker ceiling takes effect when the application role is redeployed. Redis and Elasticsearch settings take effect when those accessory containers are upgraded or recreated; merging this PR alone does not change running production services.

Testing

  • pytest backend/tests/test_kamal_deploy_config.py -q (14 passed)
  • make lint-check
  • merged Kamal production configuration renders successfully with the intended memory settings

@ewlarson
ewlarson marked this pull request as ready for review August 21, 2026 20:33
@ewlarson
ewlarson merged commit 5a09ab2 into develop Aug 21, 2026
12 checks passed
@ewlarson
ewlarson deleted the feature/optimize-production-memory branch August 21, 2026 20:33
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