News for hackers. Stuff that matters.
Re:PHP 6: Pissing in the Wind by mokash on Saturday January 26, 2013 @04:41PM (#5121871)
Website is down but I really like the error page.

http://i.imgur.com/f20igSW.png

Re:PHP 6: Pissing in the Wind by Adirael on Saturday January 26, 2013 @04:57PM (#5121939)
Heh, that's what you get for not serving cached content.
Re:PHP 6: Pissing in the Wind by philstu on Sunday January 27, 2013 @02:22PM (#5125250)
I think this was initially caused by RDS playing up, but varnish is in place now.
Re:PHP 6: Pissing in the Wind by grakic on Saturday January 26, 2013 @04:47PM (#5121900)
Persistent connection pools are not popular in the PHP world :)
Re:PHP 6: Pissing in the Wind by toast0 on Saturday January 26, 2013 @05:16PM (#5122012)
The error is that there are too many connections, not that it took too long to establish them. MySQL is generally pretty quick about establishing connections (although you can have issues w/ reverse DNS taking forever; it's best to turn that off and do access control by ips).

Ideally, a blog can be cached to static html (regen pages when owner adds an entry and if comments are self hosted, regen when a comment is added/approved). Even so, it looks like there are too many php processes running compared to mysql connections allowed; lowering the php processes will probably lead to better throughput than ramping up mysql connections.

Re:PHP 6: Pissing in the Wind by 0x0 on Saturday January 26, 2013 @05:39PM (#5122097)
Also, last I checked, at least Debian ships with an Apache max-workers setting greater than the MySQL max-connections setting out of the box, pretty much guaranteeing errors like these even on a single virtualhost under load.
Re:PHP 6: Pissing in the Wind by sandfox on Saturday January 26, 2013 @04:56PM (#5121935)
Or generally possible directly with web requests. Pretty much everything is torn down at the end of each request. (Yeah PHP-FPM slightly muddies the waters)
Re:PHP 6: Pissing in the Wind by eksith on Saturday January 26, 2013 @05:03PM (#5121965)
With MySQL it's not necessarily always a good thing to persist connections. If your script dies, you lost that connection as a resource until it's killed for being idle.

Most DBs all have their own connection pooling mechanisms that don't work the same way, so we need to look into each to see if it's worth it. Caching though (query as well as HTML), is usually always a good idea.

Re:PHP 6: Pissing in the Wind by timothya on Saturday January 26, 2013 @04:43PM (#5121879)
This is a standard CodeIgniter error message.
Re:PHP 6: Pissing in the Wind by WA on Saturday January 26, 2013 @05:48PM (#5122125)
This is a poorly configured webserver/CodeIgniter framework. It's an info leak that should be avoided.