Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Deny Unregistered Users When Load Is High - Load Deny (*Nix) Details »
Deny Unregistered Users When Load Is High - Load Deny (*Nix)
Mod Version: 1.1, by Jafo232 (Coder) Jafo232 is offline
Developer Last Online: Nov 2018 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.8 Rating: (10 votes - 4.80 average) Installs: 106
Released: 14 Nov 2007 Last Update: 20 Nov 2007 Downloads: 367
Not Supported Uses Plugins  

Remember, if you use this hack:


This hack works very similar to the "*NIX Server Load Limit" setting in your Vbulletin options except it only applies to unregistered/not logged in users.

You set the load, and if the server is over that load, all guests will be prompted to log in or register.

I did use an extra attempt that the "*NIX Server Load Limit" option does not use (exec('uptime')) for those with basedir issues. However, just like with the built in option in VB, if your not running a Unix/Linux variant, or cannot get the server load due to safe mode or other restrictions, then this may not work for you.

Not mandatory, but you should edit your phrase "toobusy" when using this. See Readme for more details.

Changelog:

Version 1.1 - 11.20.07 - Changed hook location from global_start to global_setup_complete so styling still displays when user is denied.

If you use this, please:


Nominate for Mod Of The Month!

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[Release v2.0.3] High Server Load: Deny Guests, Allow Members rylin vBulletin 2.x Full Releases 24 06 Nov 2002 17:00

Comments
  #2  
Old 14 Nov 2007, 11:11
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Hi first of thanks for sharing this!
My question: I have a microstat that shows server load etc... is that the same as *nix value?
__________________
Reply With Quote
  #3  
Old 14 Nov 2007, 16:18
Weapon-x's Avatar
Weapon-x Weapon-x is offline
 
Join Date: Jan 2005
Real name: Derek
Hmmmm interesting mod. Going to try it now.
Reply With Quote
  #4  
Old 14 Nov 2007, 16:41
msu2k msu2k is offline
 
Join Date: Jan 2003
I've been waiting for this mod for a LONG TIME! Thanks!

I installed this and tried it out. I logged out of my board in a different browser, and briefly changed the Load Deny settings to 1 so that it would trip it. It did, but for some reason it looks like my board styles are broken on the "too busy" page it loaded. Is that intentional with this mod? The "too busy" page looks fine using VB's built in "*NIX Server Load Limit" option.
Reply With Quote
  #5  
Old 14 Nov 2007, 16:44
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Originally Posted by tanyeri24 View Post
Hi first of thanks for sharing this!
My question: I have a microstat that shows server load etc... is that the same as *nix value?
Yes, exactly the same as the first load report in the microstats plugin.
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #6  
Old 14 Nov 2007, 17:01
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Originally Posted by msu2k View Post
It did, but for some reason it looks like my board styles are broken on the "too busy" page it loaded. Is that intentional with this mod? The "too busy" page looks fine using VB's built in "*NIX Server Load Limit" option.
Yeah, I am not exactly sure why it is doing this here. I may need to adjust the hook location to one further down in global.php. I did this plugin originally for a project where I am pruning out plugins because the board load is crazy and I could not get anything done. The goal was to stop people as soon as possible if they were not registered.

You could test it yourself by going to the plugins page and finding the only plugin for the load deny product, click edit, and change the hook location in the drop down to: global_setup_complete.
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #7  
Old 16 Nov 2007, 21:32
Seiyaboy Seiyaboy is offline
 
Join Date: May 2006
I don't quite understand what this does. Does it generate a vbulletin error message saying that the server load is currently too high and stop registration that way? Or does it also prevent all forum images from loading to guests as well? A couple of screenshots would always be a nice addition.
Reply With Quote
  #8  
Old 16 Nov 2007, 22:11
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Houston I have the same styles problem but the addon technique is functionation, good job! maybe you can fix the styles problem?
__________________
Reply With Quote
  #9  
Old 17 Nov 2007, 01:50
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Originally Posted by Seiyaboy View Post
I don't quite understand what this does. Does it generate a vbulletin error message saying that the server load is currently too high and stop registration that way? Or does it also prevent all forum images from loading to guests as well? A couple of screenshots would always be a nice addition.
Generates error message saying server load is too high, basically, come back later, or register/login to view the content.

It is basically the same as the "NIX Server Load Limit" option in VB, except ONLY applies to guests.
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #10  
Old 17 Nov 2007, 05:07
Seiyaboy Seiyaboy is offline
 
Join Date: May 2006
Originally Posted by Jafo232 View Post
Generates error message saying server load is too high, basically, come back later, or register/login to view the content.

It is basically the same as the "NIX Server Load Limit" option in VB, except ONLY applies to guests.
Thanks for answering so quickly. I'll be sure to try this out. Thanks a bunch.
Reply With Quote
  #11  
Old 20 Nov 2007, 05:53
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Updated so styling will now show. You can either install as before (select overwrite), or just edit the plugin via the admincp and change the Hook Location to global_setup_complete.
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #12  
Old 20 Nov 2007, 07:40
WeArab WeArab is offline
 
Join Date: Nov 2005
Location: State of Qatar Arab world
Great addon, thank you for making it, Installed!

So I have this question for you, MySQL wont be called when the load reaches a certain limit, I set like 1.0, right?
Reply With Quote
  #13  
Old 20 Nov 2007, 07:54
Jafo232 Jafo232 is offline
 
Join Date: May 2004
There will be some basic low level calls, just like the "*NIX Server Load Limit" does, but it is minimal. There will always be some level of SQL calls because the script needs to determine several things:
  • Is this a logged in user?
  • What is the setting for the unregistered users threshold?
  • What phrase is needed to relay to the user that they are denied?
  • Load the hooks so this plugin will work.
  • etc..
There really is no way around that..
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #14  
Old 20 Nov 2007, 13:15
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
after update: clicks MOTM
__________________
Reply With Quote
  #15  
Old 21 Nov 2007, 16:09
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Originally Posted by tanyeri24 View Post
after update: clicks MOTM
Thanks!
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 07:10.

Layout Options | Width: Wide Color: