#805: Return 503 (Service Unavailable) for OperationalError
-------------------------+-------------------------------------------------
Reporter: fjorba | Owner:
Type: | Status: new
enhancement | Milestone:
Priority: minor | Version:
Component: *general* | Keywords: web handler mod_wsgi mod_python
Resolution: | wsgi
-------------------------+-------------------------------------------------
Changes (by skaplun):
* keywords: => web handler mod_wsgi mod_python wsgi
Comment:
Hi Ferran!
This is a nice tip, indeed. We could extend this to always serve a 503 to
crawlers when the site is in declared maintenance mode (i.e. when
''CFG_ACCESS_CONTROL_LEVEL_SITE'' > 1).
On the other hand, the exception you are seeing should not happen. Have
you configured your MySQL server to allow for enough connections? e.g. do
you have a ''max_connection'' setting in your ''my.cnf'' with a value
lower than the number of your allowed Apache processes/connections?
See also:
<http://dev.mysql.com/doc/refman/5.5/en/too-many-connections.html>
Cheers!
Sam
--
Ticket URL: <http://invenio-software.org/ticket/805#comment:1>
Invenio <http://invenio-software.org>