A
A
Anton Ivanov2015-05-07 03:10:42
Ruby on Rails
Anton Ivanov, 2015-05-07 03:10:42

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

1 answer(s)
R
Renat Ibragimov, 2015-05-07
@MpaK999

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 question

Ask a Question

731 491 924 answers to any question