Version: 1.0.1, by Brad
Developer Last Online: Nov 2023
Version: 3.5.0 Beta 2
Rating:
Released: 06-06-2005
Last Update: 07-22-2005
Installs: 57
DB Changes Uses Plugins
Re-useable Code Translations
No support by the author.
With this plug-in installed you can disable your search engine when the server load gets to high. This plug-in add's a new vBoption in the Sever Settings page where you can define your server load.
This plug-in acts exactly like the regular server load limiter but only works on search.php.
Version History
Current Version: 1.0.1
Added installer, no other changes between this and 1.0.0. If you already have 1.0.0 installed there is no reason to upgrade!
Past Versions:
1.0.0:
Released Code to public
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Well, many people asked the question but I never saw any answer yet.
What value do you put in the server load settings? Let say I just want to test if it's working, what would be the value for that and what would be the regular value to use in overload charge?
What I did was to enter a value less than the actual server load at the time in my dev forum. My server was running about .8 so I typed in .2 Then I tried to do a search in my test forum and was given the error message. Since I had the admin screen opened in another window, I would type in a setting higher than actual load and I was able to search. Once I determined everything was working properly, I installed it in my live forums.
In my live forums I have high NIX load set at 5 and disable searches set at 2.0
Thanks for the tip. Just one more question, where can you see the actual server load? You said you saw yours at .8, how do you see that, do you mean the value in our cpanel, plesk or whatever...?
Just Telnet in and do a "top" command. If you can't do this because of being on a shared server, etc. then I suppose the only way would be to see what a snapshot of the current load is when you first load your admincp.
I made the changes Indy suggested and it did work with 3.6.4 (with some minor server tweaks).
WARNING: At first I thought this wasn't working but it turns out you need to allow access to the /proc directory with php. If you have" php open_basedir Security" enabled, you will need to disable it for your forum/domain in order to get this to work. It will probably only work if you own your own server as hosts may not allow this. Disabling this security protection for your domain is a slight security risk if your domain gets hacked or is vulnerable. There should be another way to have a mod like this that doesn't need access to /proc.