The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Would it be possible to implement a feature, where the search is automatically shut off if the server load reaches a preset number? This would be a great "buffer", so that maybe the "Server load too high" messages would be less frequent.
I've got a bit of a load problem, and if a lot of people search when the server load is already high, it skyrockets and then users get the "server too busy" error (I set the load at 6 in my CP). Thanks! Paul |
#2
|
||||
|
||||
Try this. In global.php, find this:
Code:
if (trim($loadavg[0])>$loadlimit) { $servertoobusy=1; } Code:
if (trim($loadavg[0])>XXXXX) { $enablesearches=0; } |
#3
|
|||
|
|||
FireFly:
Thank you! It works great. This will really help to eliminate load spikes. A great and simple hack. |
#4
|
||||
|
||||
See this discussion here to make this useful to sites that have two servers, one for web and one for database:
http://www.vbulletin.com/forum/showt...threadid=41401 |
#5
|
||||
|
||||
I just put in this hack. It works like a charm.
Thanks FireFly. |
#6
|
|||
|
|||
I cant find this under admin/global.php
|
#7
|
|||
|
|||
I'm running 2.2.4 btw!
Cheers |
#8
|
||||
|
||||
Since I am reinstalling my portable right now, and I don't have an ssh-client available at this comp, I can't check this, but I would think you should look in the global.php in your forum root.
|
#9
|
||||
|
||||
Hi I have tried this on Version 2.6.6 and it doesnt work at all
Can you please advise thanks |
#10
|
||||
|
||||
This works fine, it's global.php NOT admin/global.php, as it says in FF's post.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|