vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [Release v2.0.3] High Server Load: Deny Guests, Allow Members (https://vborg.vbsupport.ru/showthread.php?t=30710)

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

nuno 10-18-2001 10:26 PM

hmmm
isnt this a vBULL standard feature?
preventing guests from browsing the board?:confused:

almighty one 10-19-2001 12:23 AM

Quote:

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?

Neo 10-24-2001 03:25 PM

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

Quote:

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..

Dado 11-21-2001 12:30 AM

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

Quote:

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:
Code:

#!/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?


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
  • Page Generation 0.01022 seconds
  • Memory Usage 1,754KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)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