![]() |
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: |
Quote:
|
Nice idea
|
its like a small lock down, but only for members,sometimes...its a excellent idea...
|
anyone tested this hack yet? It should be a good one :)
|
Just making sure everyone understands that the file changes need to be made to global.php. (forgot that, okidoki) :)
|
[QUOTE]Originally posted by FireFly
Just making sure everyone understands that the file changes need to be made to global.php. (forgot that, okidoki) :) |
updated, proper release with instructions; read the document at the top ;)
|
Sorry but where do we set the limit value?
|
in admin options :)
|
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?
|
[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..
|
Quote:
yes definitely also the serverload option for closing the entire forum (the standard feature) does work? |
[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? |
This working on vb 2.2.0 ?
|
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. |
Any news on this??? 2.2.2 now :D
|
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
|
I would like to use this one too, but it would be for the newest vb Version :(
|
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. |
Quote:
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: Code:
#!/bin/sh I can't get out !!! :ermm: :ermm: :ermm: Please, need some performance hint ! :laugh: |
Does this hack work on 2.26?
|
All times are GMT. The time now is 02:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|