-
Notifications
You must be signed in to change notification settings - Fork 91
Monit always waits for puma to complete restart until its timeout after deployment #274
Comments
@olbrich Does the fix you created recently applies here (I mean, does it resolve the issue)? Or is it something unrelated? |
@ajgon I don't think I did anything that would explicitly fix this, but it's possible that it improved because the monit handling is a bit better now. I would recommend trying to reproduce with the latest version. Also the line
In the output makes me thing that the deploy is failing, so I'm not entirely sure what happens in that situation. I think we stop workers before a deploy and it may be that monit eventually figures out that the process should be running and tries to restart it on a failed deploy. |
I will try v1.21.1, thank!
In my case, the deploy is not failing. The deploy is success, puma and delayed_job processes are running correctly. |
I tried v1.21.1, I got fail to start puma process on create new instance 😢
|
Do the puma logs give you any indication of what the failure was? |
@olbrich
|
|
It looks like the
Puma will run successfully after the above log. puma.pid, puma.state files are created. |
This seems to be similar to the problem we addressed in #251.
The I assume this is because Another approach that worked well was to change the command set for the @ajgon @olbrich |
...Or should we move from monit to systemd for puma? 😂 |
Going from monit to systemd would probably break a lot - especially, because opsworks is not maintained very well by amazon (to say the least), and I'm not sure how old I like conditional restart/start approach better, because then we are not required to remove/detect restarts in workers. @olbrich what do you think? |
I use v1.20.3 and puma and delayed_jobs.
Expected Behavior
Wait for puma to finish starting, not until its timeout.
Actual Behavior
Monit always waits for puma to complete restart until its timeout (90 seconds).
This will cause a delay in the subsequent restarting delayed_jobs processes.
Custom JSON
Chef log including error
The text was updated successfully, but these errors were encountered: