PDA

View Full Version : [Release v2.0.3] High Server Load: Deny Guests, Allow Members


rylin
18 Oct 2001, 22:35
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

nuno
18 Oct 2001, 23:26
hmmm
isnt this a vBULL standard feature?
preventing guests from browsing the board?:confused:

almighty one
19 Oct 2001, 01:23
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
19 Oct 2001, 02:09
Nice idea

TheComputerGuy
19 Oct 2001, 02:34
its like a small lock down, but only for members,sometimes...its a excellent idea...

BluSmurf
19 Oct 2001, 08:13
anyone tested this hack yet? It should be a good one :)

Chen
19 Oct 2001, 08:18
Just making sure everyone understands that the file changes need to be made to global.php. (forgot that, okidoki) :)

rylin
19 Oct 2001, 09:22
Originally posted by FireFly
Just making sure everyone understands that the file changes need to be made to global.php. (forgot that, okidoki) :)

uh-huh :P
i really needed that sleep ;)
i'll put up a proper release after lunch

rylin
19 Oct 2001, 11:19
updated, proper release with instructions; read the document at the top ;)

BluSmurf
22 Oct 2001, 03:03
Sorry but where do we set the limit value?

rylin
22 Oct 2001, 08:02
in admin options :)

shadowbreed
24 Oct 2001, 15:45
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
24 Oct 2001, 15:56
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?

what vb version? and is your web-user able to read /proc/loadavg ?

Neo
24 Oct 2001, 16:25
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
24 Oct 2001, 16:51
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
25 Oct 2001, 16:30
Originally posted by shadowbreed


vb 2.0.3

yes definitely

also the serverload option for closing the entire forum (the standard feature) does work?

i'll install it on our public forums to night and see if i get the problem.. is anyone else having problems with this?

SirSteve
08 Nov 2001, 05:00
This working on vb 2.2.0 ?

rylin
20 Nov 2001, 22:36
re-releasing it when 2.2.1 final is up..

Dado
21 Nov 2001, 01:30
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
16 Feb 2002, 22:32
Any news on this??? 2.2.2 now :D

rylin
16 Feb 2002, 22:35
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
10 Mar 2002, 15:45
I would like to use this one too, but it would be for the newest vb Version :(

Jawelin
04 Apr 2002, 14:11
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
10 Apr 2002, 16:00
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
06 Nov 2002, 16:00
Does this hack work on 2.26?