vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Major Additions - VSa - Server Overload Permissions (https://vborg.vbsupport.ru/showthread.php?t=239945)

Valter 04-05-2010 10:00 PM

VSa - Server Overload Permissions
 
1 Attachment(s)
Info:
-This will automatically close your forums when server load is higher than X.
-Forums are opened automatically when it goes to lower value.
-Admins are able to access forums and view current load in forum header.
-You can exclude usergroups from restrictions.

Installation:
-Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import

Product]

To set options:
- Go to: AdminCP > vBulletin Options > VSa - Server Overload Permissions

Versions:
v1.0 - Feb 21. 2010.
-Initial version, never released
v1.1 - Apr 06. 2010.
-First public release

tafreeh 04-06-2010 09:32 PM

WOW man ... something new from you after a long time :)
Definitely gonna use it.

AURFSCAN 04-06-2010 09:57 PM

nice :) you could put members you dont like in a usergroup and set it at .1



thx

firefoxextreme 04-06-2010 10:27 PM

Quote:

Originally Posted by AURFSCAN (Post 2017091)
nice :) you could put members you dont like in a usergroup and set it at .1

thx

Great idea heehee

Bouncer222 04-06-2010 10:53 PM

so wouldnt it automatically re-open forums since the server load will immediately go down after it closes?

tafreeh 04-06-2010 11:19 PM

@ Bouncer222

Valter said: -Forums are opened automatically when it goes to lower value.

Bouncer222 04-07-2010 01:06 AM

Yeah but wouldn't it drop immediately because all traffic stopped?
I'm just wondering.

haXan 04-07-2010 06:06 AM

Wow that's amazing. Thanks for this Plug-In...

pete_brady 04-07-2010 06:48 AM

Would it be possible to have a lower trigger level that temporarily disabled search options?

Cybertims 04-07-2010 07:47 AM

Is this only for Unix servers?

maybe an idea would be to have it close after it hits so many members logged in...that way it would work for windows servers too as it seems to do nothing for me and I'm on a windows server.

Cheers

computer22 04-07-2010 08:33 AM

Doesn't work with IIS and Windows Server!
Now I am mad!

Dr.osamA 04-07-2010 12:14 PM

1 Attachment(s)
My Members well be very happy looool

thnxxx Valter

installed + 5 stars + nominated

if i can i add it here in Arabic

literatestylish 04-09-2010 07:30 PM

How high should we set it?

Manoel J?nior 04-09-2010 10:31 PM

Great man...

Functionally in the vBulletin 3.8.5?

Valter 04-10-2010 10:34 AM

Quote:

Originally Posted by literatestylish (Post 2018516)
How high should we set it?

You can ask your server admin for maximum server load allowed.

I have 3.x version but it was never released. I'll post it later in 3.x category.

Edit: 3.x version released here:
https://vborg.vbsupport.ru/showthread.php?t=240158





.

TCB 04-11-2010 01:47 PM

Sounds great, thanks :D

Would it be possible that it logs the times when the forum is closed by this script? Would be nice to see when this happens. My webhosts' logfiles are unreadakble

AliMadkour 04-21-2010 12:48 PM

thanks for excellent mod
btw, there 's an option @ vbulletin options - > Server Settings and Optimization Options - > *NIX Server Load Limit

thanks again !

Firestorm17 06-22-2010 12:19 AM

Excellent mod already using it!

Excuse me the dumb question but ,the server load is the percent of the use ? i put 10 and the forum use 14, so i put 15 and i dont know if that too high or what...i dont wanna the forum keep been unable for too little ,i would like this too happen just when is like 80% use or something like that.

Thank's in advanced!

For the comment of AliMadkour , i didnt have seen that options , but that one keep checking the forum for a period of time , that could charge the server more , in change this just tell you that is too high.

Sunray 08-24-2010 05:28 PM

Hi,

Thanks Valter ! This mod woriks well with vB 4.0.5 ! Great mod !

schlottkej 12-11-2010 03:27 AM

does this allow for various levels of load? i.e.... guests (5) registered users (10) vips (40) admin (0)

?

onehost 12-11-2010 03:49 AM

I am still at a loss why anyone would need this? If you have an overload of traffic, or some other unknown problems, then this does not give you a solution and fix your unlying problems...if you have that much traffic that you have to close your forum, and boot everyone off, then why have a forum? it is obvious you need to upgrade your server, if your forum has to shut down due to a resource issue, then get it fixed...this mod that shuts off your forum does not fix any issues at all...why would I want my forum to shut down
even for a second? get your problems fix, rather then looking for an excuse just to shut your forum off....fixes nothing...
It really looks bad to your members if they try to reach your forum to get a noice..."We are offline..." they are probably
thinking you are pretty cheap, or you are just another unreliable forum because you cannot keep your forum online....

sgbmad 02-07-2011 10:59 AM

I get this error:

Code:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/home/xxxx:/usr/lib/php:/usr/local/lib/php:/tmp) in [path]/includes/class_bootstrap.php(122) : eval()'d code on line 9
Any help?
Regards.

DNN 04-06-2011 04:00 AM

I have a feeling this might happen to me, so let me go ahead and download this now!

coolankur49 05-05-2011 06:51 AM

Thanks for this mod.

Gero50 07-02-2011 11:25 PM

Installed, and working perfectly.

gnrx 07-17-2011 11:43 PM

Hi!
Its possible configure this mod for when forum is closed for server overload (configured for closed to unregistred visitants) appears a link for register?

Thanks and regards!

scruff2 03-16-2012 01:46 AM

First, thanks for any many great mods Valter.

Quote:

Originally Posted by onehost (Post 2132254)
I am still at a loss why anyone would need this? If you have an overload of traffic, or some other unknown problems, then this does not give you a solution and fix your unlying problems...if you have that much traffic that you have to close your forum, and boot everyone off, then why have a forum? it is obvious you need to upgrade your server,...

Not so. I set it to 2 and if we become busier, VIP members and above can come in while the freeloaders and guests wait until resources go down to respectable levels.

It's an encouragement for people to subscribe to some premium membership.

Now, Valter, in 4.1.11 this seems to not work. I assign my MODs (usergroup 5,7,plus many other VIP forums) and they get the busy message when the server is over the set load.

Does it not work in 4.1.11?

kingMOB 03-20-2012 12:15 PM

An option to just turn off search when load is too high would be nice =)

cric2k 03-20-2012 09:51 PM

I would like to turn this off for registration pages (so encouraging people to sign up during high server load to avoid getting blocked) - anyone got any ideas?

laebshade 03-21-2012 03:00 PM

Every addon I see from you (you guys?) is pure gold. Thanks for releasing another great addon!

autoescala 06-14-2012 01:04 PM

very nice mod, works on 4.2

cric2k 08-31-2012 01:15 PM

Quote:

Originally Posted by gnrx (Post 2221687)
Hi!
Its possible configure this mod for when forum is closed for server overload (configured for closed to unregistred visitants) appears a link for register?

Thanks and regards!

If you go into 'VSa - Server Overload Permissions' plugin and surround the PHP code with this if statement.

PHP Code:

if($_SERVER["SCRIPT_NAME"] != '/register.php')
{
//rest of the plug in code goes in here


Users will still be able to register while the forum is closed for guests :up:

ikorolis 09-02-2012 09:58 AM

i have VB 4.2.0 PL2 installed and give me error

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/home/xxxx:/usr/lib/php:/usr/local/lib/php:/tmp) in [path]/includes/class_bootstrap.php(xxx) : eval()'d code on line 13

force to edit config.php disable hooks and uninstalled product

now all fine.

Mark_Zuckerberg 09-29-2012 08:52 PM

Valter mate what does this means
Close forums and display alert when server load is higher than = 10

Can you explain

Pure Dope 12-10-2012 09:28 AM

why doesnt this close the forums for everybody?

why close the forums? just redirect them to a page that refreshes ever 3 minutes and xfers them when the load is down...IF they are a guest.

Rodrigo. 02-07-2013 04:22 AM

great work for me in vb 4.2.0

thang28101993 04-03-2013 12:41 PM

Quote:

Originally Posted by Mark_Zuckerberg (Post 2369617)
Valter mate what does this means
Close forums and display alert when server load is higher than = 10

Can you explain

I have the same question?
Please!

iraqiboy90 09-18-2014 01:40 AM

Does this require "exec"?

Bulent Tekcan 09-19-2014 05:25 AM

Same problem here...


Quote:

Originally Posted by sgbmad (Post 2159727)
I get this error:

Code:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/home/xxxx:/usr/lib/php:/usr/local/lib/php:/tmp) in [path]/includes/class_bootstrap.php(122) : eval()'d code on line 9
Any help?
Regards.



All times are GMT. The time now is 05:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01172 seconds
  • Memory Usage 1,808KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (39)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete