News for hackers. Stuff that matters.
Re:If Gmail were built with Drupal by babysteps on Tuesday November 12, 2013 @09:04AM (#6717851)
It's more than likely Drupal related! Front end cache would have helped there.
Re:If Gmail were built with Drupal by kitsune_ on Tuesday November 12, 2013 @09:12AM (#6717901)
Are you insinuating that Drupal lacks page caching? Because that would be a patently false statement.
Re:If Gmail were built with Drupal by rjknight on Tuesday November 12, 2013 @09:24AM (#6717940)
No, but Drupal's out-of-the-box page cache caches pages in... the database.

Even with pages cached in Memcache, Drupal would open a DB connection by default (it's possible to override this using page_cache_without_database, but not everyone is going to do that).

Using something like Varnish as the primary page caching mechanism would work around this, albeit with some trade-offs.

Generally though, the fault with issues like this is often that the MySQL connection limit is set lower than it needs to be. Often, this is set at a level far below that which would actually cause the DB server to become overloaded, and it just starts rejecting further connections even if capacity exists to handle more.

EDIT: typos

Re:If Gmail were built with Drupal by drawkbox on Tuesday November 12, 2013 @09:22AM (#6717930)
Without cache, Drupal would never run as it drinks database connections in the hundreds per user request.
Re:If Gmail were built with Drupal by rjknight on Tuesday November 12, 2013 @09:52AM (#6718123)
"Hundreds per user request" is just wrong. Generally, Drupal opens a single connection per request (and does not use any kind of connection pooling). Perhaps you mean that Drupal issues hundreds of queries per connection? (Which is definitely much closer to the truth).
Re:If Gmail were built with Drupal by drawkbox on Tuesday November 12, 2013 @11:54AM (#6718900)
Yes I was going overboard but indeed it is truly hundreds of queries and sometimes numerous connections per user.

Some sites I have had to deal with on initial inspection have 250+ queries per user (sometimes the same ones over and over due to plugins/modules) and people wonder why after 10 users it breaks the database/site.

Without cache on wordpress you might be in trouble, without cache on Drupal you don't run.

Still, Drupal is orders of magnitude more useable than other PHP frameworks like Joomla. The PHP that is fun is using microframeworks like limonade, flight etc if PHP is used.

Re:If Gmail were built with Drupal by babysteps on Wednesday November 13, 2013 @07:11AM (#6724667)
I chose my words carefully. Not wanting to get too technical. I was not insinuating that Drupal hadn't it's own caching.

Page runs on Drupal > Drupal uses database > Database connections were exhausted. I was suggesting caching up front to bypass calls to the database (not specifying a particular piece of caching software).

At the time I was looking at the page through a 3rd party cache. I didn't realise the page had inline comments, those would of course complicate the problem.