Answer the question
In order to leave comments, you need to log in
How to configure unicorn to handle more connections?
Hello!
Do I understand correctly that worker_processes in the unicorn setting is the same as pm.max_children for php-fpm?
Thanks in advance
Answer the question
In order to leave comments, you need to log in
And what is the number of connections you have, how much memory, the number of cores on the processor and the current workload?
And so the advice is usually the following:
1. tuning worker_process is how many copies of applications + 1 master will be kept in memory, it would be nice to have memory and a processor for them every time
2. timeout is how long the handler process lives
3. put the unicorn-worker-killer gem to limit resource consumption and "refresh" workers
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question