I just setup a server (Apache 2.2, mod_proxy_balancer, mongrel_cluster)
2 Rails applications according to this excellent Post:
Everythings works great, but after a long inactive period (say one
the first 3 connections allways get an Error 500
Excerpt from production.log:
Completed in 0.00301 (332 reqs/sec) | Rendering: 0.00279 (92%) | DB:
0.00000(0%) | 200 OK
[ http://myapp/authentication/login ]
Mysql::Error: MySQL server has gone away: SELECT * FROM sessions WHERE
(session_id = ‘875b6a6dff4de7e8bb2f7709cf9c31db’) LIMIT 1
Note: the mongrel cluster is configured to have 3 mongrel processes. Is
this a clue why only the first 3 connections allways get the error ?
Thanks for your input.