ryandotsmith / nginx-buildpack

Run NGINX in front of your app server on Heroku
457 stars 248 forks source link

Heroku premature routing #41

Closed pcasaretto closed 9 years ago

pcasaretto commented 9 years ago

I started noticing peaks in request queuing times whenever we increased the number of dynos. I believe it's due to the fact that nginx binds to the port as soon as it's up and so Heroku thinks the dyno is ready, when in fact unicorn (or whatever is behind nginx) is still booting.

pcasaretto commented 9 years ago

Actually, nevermind. https://github.com/ryandotsmith/nginx-buildpack/blob/2b5fd1f147089b47f861f6f969dcd19b7c246574/bin/start-nginx#L44