Skip to content

Container Role Configuration to Optimize Resource Utilization and Reduce Memory Usage #215

Answered by jaydrogers
okaufmann asked this question in Q&A
Discussion options

You must be logged in to vote

In our use case, we do the same thing. We use fpm-nginx multiple times (even for things like Queue and Scheduler). In our case this works fine. An app with a similar structure runs on a server running 2GB of RAM and 1 CPU.

Optimizing servers is very unique to every application. In the case if you do not want to use the method above, you will need to use an FPM image only and ensure that your server is only processing PHP requests.

This will require extra work where you'll need to ensure you have a load balancer and/or HTTP server outside of your PHP Containers and you'll need to make sure the static assets are stored in an accessible location for all containers.

Hope this helps!

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@okaufmann
Comment options

@jaydrogers
Comment options

@okaufmann
Comment options

@jaydrogers
Comment options

@okaufmann
Comment options

Answer selected by jaydrogers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants