FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > FutureQuest Site Owners (All may read - Only Site Owners May Respond) > Questions & Suggestions
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 01-05-2002, 11:02 PM   Postid: 59650
Jeff
Site Owner
 
Jeff's Avatar

Forum Notability:
872 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jun 2000
Location: Great Lakes
Posts: 4,221
mysql error number: 1040

Started getting mySQL errors at 10:58 PM and am unable to access my forums right now:

Database error in vBulletin :

Link-ID == false, connect failed
mysql error: Too many connections

mysql error number: 1040

Date: Saturday 05th of January 2002 10:58:21 PM
Script: /forums/forumdisplay.php?forumid=12
Referer:

Edit: Sorry - Back online at 11:04.
Jeff is offline   Reply With Quote
Old 01-05-2002, 11:07 PM   Postid: 59651
Jeff
Site Owner
 
Jeff's Avatar

Forum Notability:
872 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jun 2000
Location: Great Lakes
Posts: 4,221
P.S. In the future I will try to not post a problem report for 15 minutes, but I'm just so used to everything but the mySQL servers having absolute 100% uptime at FutureQuest that it throws me when the SQL server has a problem. In fact I think that these mySQL errors are my only problem with anything on the FutureQuest servers in the last 12 months!
Jeff is offline   Reply With Quote
Old 01-05-2002, 11:22 PM   Postid: 59652
 Terra
CTO FutureQuest, Inc.
 
Terra's Avatar
 
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 7,673
It is simply the nature of the beast with the MySQL servers as there are a pool of 255 connection slots available per server...

Occasionally, a doman's query can backlog the engine causing connections to stack up - or a spider can hit a vBulletin (or similar PHP/MySQL program) site so fast that it can temporarily overwhelm the server...

This is even true for a domain that is using a sole dedicated MySQL engine exclusively for their own use... The solution is within program rate limiting controls designed specifically to prevent this, as MySQL's primary purpose is low overhead - low latency SQL query processing... To add anything more to the MySQL engine is self defeating in that goal and destroys the freedom of exception handling that many programmers would rather control within their software... (Think failover and clusters with a common distributed data set)

Due to the design of MySQL, there is no easy way to prevent this or I would have done it long time ago... The only way to prevent it is to design and wedge in a frontside MySQL proxy - however this scenario has performance issues for which the cure is worse than the disease...

So, if you are using the MySQL server resources, you must come to the realization this condition _will_ happen and your code must properly handle the error... 9 out of 10 times, it will clear itself out in 5 minutes or less...

--
Terra
--just passing along the reality of things--
FutureQuest

<TAG [FAQ]: MySQL Connection Exhaustion>
Terra is offline   Reply With Quote
Old 01-05-2002, 11:33 PM   Postid: 59653
 Terra
CTO FutureQuest, Inc.
 
Terra's Avatar
 
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 7,673
To show you visually the MYSQL04 server operations efficiency for the last 26 hours:




These are internal graphs that I do make public from time to time as sometimes a picture is worth a thousand words...

That spike you see is what caused the connection problem... However, it is plain to see that our MYSQL04 engine is well within boundries and running a smooth as silk...

The rest I explained in my prior post...

--
Terra
--I promise that I read the articles as well--
FutureQuest
Terra is offline   Reply With Quote
Old 01-05-2002, 11:44 PM   Postid: 59655
Jeff
Site Owner
 
Jeff's Avatar

Forum Notability:
872 pts: Dignified Competence!
[Post Feedback]
 
Join Date: Jun 2000
Location: Great Lakes
Posts: 4,221
Thanks as usual Terra,

That helps explain why MySQL is somewhat costly as well (compared to hosting a static site).

I always appreciate learning something
Jeff is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 05:07 AM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.