Suggestion:
* PHP queries the database
* PHP gets an error because of max_connections
* PHP waits a random number of milliseconds, tries again
* If there's no connection after 5 (?) tries, *then* the error can show
That should reduce the occurrences of the error to a minimum.
Magnus
Constans, Camille (C.C.) wrote:
I keep getting
Sorry! The wiki is experiencing some technical difficulties, and
cannot contact the database server.
intermixed with normal function. Maybe one of the apaches
really doesn't
find the database?
They find the database, but the max_connections on mysql is hit (300 actually). If we
increase this number, the requests could become very very slow.
Shaihulud
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)Wikipedia.org
http://mail.wikipedia.org/mailman/listinfo/wikitech-l