Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Puma server dies with no reason

Tags:

ruby

puma

I'm running Puma 2.8.2 server for stubbing some of my back end services. Occasionally Puma server just dies without any reason.

There is no errors in error.log And here is excerpt from access.log:

10.210.140.21 - - [15/Oct/2014 09:28:22] "GET /status HTTP/1.1" 200 - 0.0030
- Gracefully stopping, waiting for requests to finish
- Goodbye!
=== puma startup: 2014-10-15 09:28:24 +0100 ===
10.210.140.21 - - [15/Oct/2014 09:28:24] "GET /status HTTP/1.1" 200 - 0.0254

Any thoughts what could cause this?

like image 310
LukasMac Avatar asked Oct 27 '14 16:10

LukasMac


1 Answers

If this problem is becoming in Heroku and you are using Heroku free dyno, the problem is that you use the free dyno. Because your app goes to sleep after 30 minutes of inactivity.

You can find more info at the following link:

https://devcenter.heroku.com/articles/free-dyno-hours

like image 82
Hamdi Bayhan Avatar answered Nov 16 '22 13:11

Hamdi Bayhan