long view renders.

9 views
Skip to first unread message

Brenda Wallace

unread,
Jul 30, 2025, 12:56:03 AMJul 30
to Alaveteli Dev
I'm seeing some views on an Alaveteli taking a really long time to render. Result is some requests that take 40 or 60 or more seconds to complete through rails. These clog up all the passenger processes and everything else queues up behind them.

Is there a way to tell rails/alaveteli middleware (is it rack?) to give up if it's taking longer than X? I'd rather fail those few requests (and then diagnose them) than our current situation where all passenger processes are busy and everything queued

Gareth Rees

unread,
Jul 31, 2025, 10:46:43 AMJul 31
to Alaveteli Dev

You could look at whether there's something to do at the web server level (e.g. https://httpd.apache.org/docs/2.4/mod/mod_reqtimeout.html) but that might not actually kill the rails process as you suggest.

There might well be something on the rails/rack side that could do this, but nothing immediately comes to mind so would need a bit of research. Do let us know if anything useful arises, and if you make any performance improvements to views that we can pull back in to Alaveteli core.

Best,

Gareth

Reply all
Reply to author
Forward
0 new messages