Spawning Numerous Unicorn Workers

I am trying to create 7 workflows using a unicorn and my settings are as follows

worker_processes 7
timeout 30     
preload_app true

But in the magazines I see only one spawning worker. Is there something I'm missing?

I, [2014-04-27T01:59:02.190520 #47057]  INFO -- : listening on addr=0.0.0.0:9393 fd=7
I, [2014-04-27T01:59:02.190743 #47057]  INFO -- : worker=0 spawning...
I, [2014-04-27T01:59:02.191937 #47057]  INFO -- : master process ready
I, [2014-04-27T01:59:02.192275 #47059]  INFO -- : worker=0 spawned pid=47059
I, [2014-04-27T01:59:02.192493 #47059]  INFO -- : Refreshing Gem list
I, [2014-04-27T01:59:02.292342 #47628]  INFO -- : worker=0 ready

Is there something I am missing?

+4
source share
1 answer

I was on the assumption that the unicorn automatically collects the configuration file from the configuration folder. But I had to transfer the configuration file manually using the -c option. As soon as I went to the configuration file, I saw that 7 workers were created.

+3
source

Source: https://habr.com/ru/post/1538248/


All Articles