View Full Version : [Release v2.0.3] High Server Load: Deny Guests, Allow Members
rylin
10-17-2001, 10:00 PM
oi.. basically, if the load is higher than xx, we only want regged users to browse the forums (and be able to let users log in & register)..
http://www.b0fh.cx/vb.html
hmmm
isnt this a vBULL standard feature?
preventing guests from browsing the board?:confused:
almighty one
10-19-2001, 12:23 AM
Originally posted by nuno
hmmm
isnt this a vBULL standard feature?
preventing guests from browsing the board?:confused:
this hack seems to allow guests to view the board but only when there is high traffic it will not allow guests which in return allows only members to view on high traffic times standaards feature is on or off for guests not at certain times
VirtueTech
10-19-2001, 01:09 AM
Nice idea
TheComputerGuy
10-19-2001, 01:34 AM
its like a small lock down, but only for members,sometimes...its a excellent idea...
BluSmurf
10-19-2001, 07:13 AM
anyone tested this hack yet? It should be a good one :)
Admin
10-19-2001, 07:18 AM
Just making sure everyone understands that the file changes need to be made to global.php. (forgot that, okidoki) :)
rylin
10-19-2001, 08:22 AM
[QUOTE]Originally posted by FireFly
Just making sure everyone understands that the file changes need to be made to global.php. (forgot that, okidoki) :)
rylin
10-19-2001, 10:19 AM
updated, proper release with instructions; read the document at the top ;)
BluSmurf
10-22-2001, 02:03 AM
Sorry but where do we set the limit value?
rylin
10-22-2001, 07:02 AM
in admin options :)
shadowbreed
10-24-2001, 02:45 PM
i tried setting it to a load of 0.1 and made sure my server had a load of 1.17 didn't get any warning when going to the forums as a guest and could still browse the forums?
rylin
10-24-2001, 02:56 PM
[QUOTE]Originally posted by shadowbreed
i tried setting it to a load of 0.1 and made sure my server had a load of 1.17 didn't get any warning when going to the forums as a guest and could still browse the forums?
nice hack, but would you be able to create it when it goes over the set server load that it also closes surton forums? i would like to use this since i have one that can get upto 60 to 70 new threads an hour..
shadowbreed
10-24-2001, 03:51 PM
Originally posted by okidoki
what vb version? and is your web-user able to read /proc/loadavg ?
vb 2.0.3
yes definitely
also the serverload option for closing the entire forum (the standard feature) does work?
rylin
10-25-2001, 03:30 PM
[QUOTE]Originally posted by shadowbreed
vb 2.0.3
yes definitely
also the serverload option for closing the entire forum (the standard feature) does work?
SirSteve
11-08-2001, 04:00 AM
This working on vb 2.2.0 ?
rylin
11-20-2001, 09:36 PM
re-releasing it when 2.2.1 final is up..
Can't wait for the 2.2.1 :) I need this badlly, traffic has been very high lately on my forum and I am constantly hitting 5.0 limit :(
Running on a dedicated, dual 866mhz, 768mb of ram.
Tim Wheatley
02-16-2002, 09:32 PM
Any news on this??? 2.2.2 now :D
rylin
02-16-2002, 09:35 PM
don't have too much time right now, sadly.. we'll see if i get around to it eventually.. instructions should be possible to follow now as well, as long as you take them with a grain of salt
sTive
03-10-2002, 02:45 PM
I would like to use this one too, but it would be for the newest vb Version :(
Jawelin
04-04-2002, 01:11 PM
I would create something similar for 'not-active' (0 posts) users.
What's up about the global.php messing as Firefly told about ?
Could I simply check for $bbuserid[posts] instead of $bbuserid[usergroupid] ??
And, which source is better to recover load levels ?
reading /proc/loadavg or executing and parsing uptime
Thank you very much.
Jawelin
04-10-2002, 03:00 PM
Originally posted by FireFly
Just making sure everyone understands that the file changes need to be made to global.php. (forgot that, okidoki) :)
Chen, what do you mean, exactly ?
Well. I tried to modify global.php myself in a different way, to check, if instant loadavg goes above a warning level (new setting var like $loadlimit) and the logged user has 0-posts, he gets an error_toobusyguest template.
This way I noticed an increased load values, most probably due to a frequent read of /proc/loadavg file I hadn't before, as my $loadlimit was set to 0.
Is it true ? How could I measure the trend ?
Besides, I created a croned (each minute ... '* * * * *') script on the server to get this behavior well written down:
#!/bin/sh
echo `date +%Y-%m-%d%t%T ` - `cat /proc/loadavg` >> ./load.dat
exit
but it seems having added again more load to the server.
I can't get out !!! :ermm: :ermm: :ermm:
Please, need some performance hint !
:laugh:
HappyPike
11-06-2002, 03:00 PM
Does this hack work on 2.26?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.