Rails and fastcgi problem
Posted by Y Ddraig Wen Thu, 10 Jan 2008 22:29:00 GMT
Ever since I've moved my work Rails site into production I've had fastcgi problems. Yes, I'm using a shared host. Yes, I know this is always going to be a problem. And yes, I've hopefully found a solution. One solution was given by Chris Gaskett and solved problems where errors caused fastcgi to stop running but didn't restart a problem. This is fine for already running fastcgi threads, but not so much when there aren't any running. If there are no fastcgi threads running the host starts up ten, reaching the max number, and causes a 500 error. So the key was to create a cron job that would regularly start up the server so that it isn't (or is rarely) at zero processes. And thanks to A Single Programmer's Blog I think I have the answer. Let's just hope it works.Tags: rails, fastcgi, sharedhosting
