[Heroku] This website is under heavy load

295 views
Skip to first unread message

Marcelo Cajueiro

unread,
Apr 22, 2015, 2:27:14 PM4/22/15
to phusion-...@googlegroups.com
Hey guys,

I have a rails application in heroku and I am getting a lot of "This website is under heavy load".
I want to render a different page instead of the default error.


I tried to add a "public/error503.html" but the error still the same.

Do you know what I can do?


Thanks!

Hongli Lai

unread,
Apr 23, 2015, 6:15:35 AM4/23/15
to phusion-passenger
Are you sure you posted the right link? I get the feeling that you
wanted to link to 'passenger_intercept_errors' but you linked to
'passenger_max_request_time' instead.

How does your config file look like?

Also, which Passenger version are you using?
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/phusion-passenger.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phusion-passenger/7c2bd380-a5d2-4fcd-b415-d9987b2446c0%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Phusion | Web Application deployment, scaling, and monitoring solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Marcelo Cajueiro

unread,
Apr 23, 2015, 8:07:25 AM4/23/15
to phusion-...@googlegroups.com, hon...@phusion.nl
I think that the error that I quoted is 'passenger_max_request_time'. Am I wrong?

I'm using passenger 5.0.4 and the config is only:

passenger start -p $PORT --max-pool-size $WEB_CONCURRENCY --min-instances $WEB_CONCURRENCY --no-friendly-error-pages

Those configurations are kind of obscure to heroku.

Hongli Lai

unread,
Apr 23, 2015, 5:25:42 PM4/23/15
to Marcelo Cajueiro, phusion-passenger
You should be looking at 'passenger_max_request_queue_size'. There is
even a configuration example there that tells you how to configure an
error page. 'passenger_max_request_time' is totally unrelated.

You should use the advanced configuration mechanism to set these
configurations:
https://www.phusionpassenger.com/documentation/Users%20guide%20Standalone.html#advanced_configuration

On Thu, Apr 23, 2015 at 2:07 PM, Marcelo Cajueiro

Daniel Knoppel

unread,
Apr 23, 2015, 5:52:09 PM4/23/15
to phusion-...@googlegroups.com
By the way, you should consider upgrading to passenger 5.0.6, as it has some important fixes (at least one could trigger a "heavy load" problem).

You can also hold on for 5.0.7, we expect it to be out soon.

- Daniel
Reply all
Reply to author
Forward
0 new messages