The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
50,000 Questions workaround project
If you have a shared host for your website you may know what I mean. MySQL users get 50,000 Questions per hour. The account is banned then after the hour you get access again.
The hosts will allow you to create unlimited users per DB. If I reindex the search index of my forums. "" "" any part of my site that has a lot of data. - 50,000 limit smashed and no access / DB errors PLAN: "mySQL user load balance" - This works for the most part untill error ER_USER_LIMIT_REACHED then the script failes to work. I think this could use some sort of: - counter in session memory per user and stop using account when close to 50k. - IF mysql connect gives error ER_USER_LIMIT_REACHED (Error Number : 1226) THEN skip that user and use the next one. includes/config.php Quote:
Data used and results: $dblogins['1']['user'] = 'root2'; $dblogins['2']['user'] = 'root3'; $dblogins['3']['user'] = 'root4'; I have tested Code posted. Reindex of forums search. Quote:
|
#2
|
|||
|
|||
This is an old solution. You will find similar posted at vb.com.
|
#3
|
||||
|
||||
Yep, reason I am here.
REFF - http://www.vbulletin.com/forum/showthread.php?t=160852 |
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
Quote:
|
#6
|
|||
|
|||
You could use a seperate user for long running queries, based on the value of THIS_SCRIPT.
If 1 single transaction uses more then the maximum, then there is not much you can do (you can't make things switch half way in teh execution of a single statement). |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|