Ask A Question

Notifications

You’re not receiving notifications from this thread.

unicorn takes a long time to start up with capistrano

Dmitry Kosikov asked in Rails

After ruby update from 2.7.5 to 3.1.2
I've run command cap production unicorn:stop then cap production unicorn:start
it's takes about 9 minutes to start
gem 'capistrano3-unicorn', '~> 0.2.1'

I, [2022-06-08T12:00:56.547276 #115933]  INFO -- : Refreshing Gem list
I, [2022-06-08T12:01:36.617885 #115933]  INFO -- : unlinking existing socket=/tmp/unicorn_clickcast.sock
I, [2022-06-08T12:01:36.618026 #115933]  INFO -- : listening on addr=/tmp/unicorn_clickcast.sock fd=13
I, [2022-06-08T12:01:36.618147 #115933]  INFO -- : listening on addr=0.0.0.0:5050 fd=14
I, [2022-06-08T12:01:36.632497 #115960]  INFO -- : worker=0 ready
I, [2022-06-08T12:01:36.639922 #115961]  INFO -- : worker=1 ready
I, [2022-06-08T12:01:36.647434 #115962]  INFO -- : worker=2 ready
I, [2022-06-08T12:01:36.654806 #115963]  INFO -- : worker=3 ready
I, [2022-06-08T12:01:36.662064 #115964]  INFO -- : worker=4 ready
I, [2022-06-08T12:01:36.669362 #115965]  INFO -- : worker=5 ready
I, [2022-06-08T12:01:36.676358 #115966]  INFO -- : worker=6 ready
I, [2022-06-08T12:01:36.683338 #115967]  INFO -- : worker=7 ready
I, [2022-06-08T12:01:36.690578 #115968]  INFO -- : worker=8 ready
I, [2022-06-08T12:01:36.697739 #115969]  INFO -- : worker=9 ready
I, [2022-06-08T12:01:36.704880 #115970]  INFO -- : worker=10 ready
I, [2022-06-08T12:01:36.706232 #115933]  INFO -- : master process ready
I, [2022-06-08T12:01:36.712175 #115971]  INFO -- : worker=11 ready
I, [2022-06-08T12:08:35.128676 #164749]  INFO -- : executing ["/var/data/www/apps/my_app/shared/bundle/ruby/3.1.0/bin/unicorn", "-c", "/var/data/www/apps/my_app/current/config/unicorn.rb", "-E", "deployment", "-D", {13=>#<Kgio::UNIXServer:/tmp/unicorn_clickcast.sock>, 14=>#<Kgio::TCPServer:fd 14, AF_INET, 0.0.0.0, 5050>}] (in /var/data/www/apps/my_app/releases/20220608120452)
I, [2022-06-08T12:09:16.760052 #115933]  INFO -- : reaped #<Process::Status: pid 115960 exit 0> worker=0
I, [2022-06-08T12:09:16.760171 #115933]  INFO -- : reaped #<Process::Status: pid 115963 exit 0> worker=3
I, [2022-06-08T12:09:16.760234 #115933]  INFO -- : reaped #<Process::Status: pid 115964 exit 0> worker=4
I, [2022-06-08T12:09:16.760309 #115933]  INFO -- : reaped #<Process::Status: pid 115965 exit 0> worker=5
I, [2022-06-08T12:09:16.760374 #115933]  INFO -- : reaped #<Process::Status: pid 115966 exit 0> worker=6
I, [2022-06-08T12:09:16.860849 #115933]  INFO -- : reaped #<Process::Status: pid 115961 exit 0> worker=1
I, [2022-06-08T12:09:16.860950 #115933]  INFO -- : reaped #<Process::Status: pid 115962 exit 0> worker=2
I, [2022-06-08T12:09:16.861002 #115933]  INFO -- : reaped #<Process::Status: pid 115967 exit 0> worker=7
I, [2022-06-08T12:09:16.861049 #115933]  INFO -- : reaped #<Process::Status: pid 115968 exit 0> worker=8
I, [2022-06-08T12:09:16.861094 #115933]  INFO -- : reaped #<Process::Status: pid 115969 exit 0> worker=9
I, [2022-06-08T12:09:16.861151 #115933]  INFO -- : reaped #<Process::Status: pid 115970 exit 0> worker=10
I, [2022-06-08T12:09:16.861201 #115933]  INFO -- : reaped #<Process::Status: pid 115971 exit 0> worker=11

i'm use preload_app true in unicorn config but it's not help

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 82,329+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.