long view renders.

14 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

Brenda Wallace

unread,
Oct 22, 2025, 6:31:22 PM (5 days ago) Oct 22
to Alaveteli Dev
Reporting back. In August, I found the parts of the views that were taking a very long time, and commented them out.  you can see what we had to do here:

We were still on Alaveteli 0.38 back then, and we've upgraded Australia to 0.40 in early September, and are hoping to leapfrog to 0.43 soon. (We have had to find ways to deploy the 0.41 and 0.42 temp rake tasks to do this)
Reply all
Reply to author
Forward
0 new messages