Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2003, 08:42 PM
Snapperhaed Snapperhaed is offline
 
Join Date: Mar 2003
Location: Argentina
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Close Forums during peak times to members and or during high server loads.

This may have been requested before, and their may even be a hack thats already been made for this ... I tried searching high and low, and either I cant read, cant see, or its not around. :nervous:

Problem:

I run a high traffic forum. Once I get around 850 simul. users online, the load goes thru the roof, and the server crashes. Just cant handle the load.

Solution: (In my feable mind):

Have the forums detect the high server load, and automatically shut down, and be restricted to members only use. Either this, or shut them down by hand ... However its done, they need to be closed briefly to eliminate all that mass traffic. I think that by restricting the forums for members only use during those times, I will reduce my traffic by 2/3 and eliminate the unsightly crash.

What im running:

I am currently running Apache ... On a dual processor P3 with 2 gigs of ram, on a single machine. I guess I may have to upgrade to a dual P4, which will help, and maybe offload the DB only, over to its own machine.

I dont wish to restrict to members only, but looks like that may be the route to go for a short term solution. Im open for anything.

Any help/comments/critics/directions are appreciated! Thanks!
Reply With Quote
  #2  
Old 05-06-2003, 08:47 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's already been done in the sense that the whole board will shut down at a certain load level. Built-in.
Reply With Quote
  #3  
Old 05-06-2003, 09:09 PM
Snapperhaed Snapperhaed is offline
 
Join Date: Mar 2003
Location: Argentina
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeap. HeH. But, it shuts down everyone.
Reply With Quote
  #4  
Old 05-06-2003, 09:41 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well that's the idea. Once everybody's out the load will naturally go down to a reasonable level.
Reply With Quote
  #5  
Old 05-07-2003, 12:42 AM
Snapperhaed Snapperhaed is offline
 
Join Date: Mar 2003
Location: Argentina
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

While digging around in 2.3.0 I did come across the load limiting options, the nix and the simul were both set to 0. <smack> - I set the Nix to 20 which seems to be doing fine.

Problem now, is that the "Server too Busy" message comes up, even for Admin (6).... It wont let an admin in. Anyway to override that???
Reply With Quote
  #6  
Old 05-07-2003, 12:47 AM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hunt around near the beginning of global.php which is where the load limiting code should be. However at that point $bbuserinfo might not have been created so it could be tricky.
Reply With Quote
  #7  
Old 05-07-2003, 01:31 AM
Snapperhaed Snapperhaed is offline
 
Join Date: Mar 2003
Location: Argentina
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your right. It hasnt. And I havent a clue where to begin. (Actually I do, you told me where to look, but my ineptness prohibits me from accomplishing the feat). I did see one hack, by Pezman here for it, but it doesnt work for the exact same reason. (or so it would appear).

I checked over at the .com and lots of people with the same prob and no solution. Maybe I can issue my plea for help for some kind soul here to help us out?!

Any kind takers willing to help a soul out?
Reply With Quote
  #8  
Old 05-07-2003, 01:47 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack has been done. Look for it - there is a hack that will limit the load when it gets too high, but allow members in.
Reply With Quote
  #9  
Old 05-07-2003, 02:24 AM
Snapperhaed Snapperhaed is offline
 
Join Date: Mar 2003
Location: Argentina
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ive been looking and looking, and cant come up with it.

Are you talking about this one?

https://vborg.vbsupport.ru/showthrea...threadid=30710

or are you talking about the one done by Pezman?

I understand the principle of helping one help himself ... Yet I am about at the end of my rope having exhausted my avenues. If you could kindly direct me to it, i'd be forever in your debt.
Reply With Quote
  #10  
Old 05-07-2003, 07:27 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In global.php, find:
PHP Code:
if ($servertoobusy AND $bbuserinfo['usergroupid'] != 6) { 
And replace it as:

PHP Code:
if ($servertoobusy AND $bbuserinfo['usergroupid'] == 1) { 
But remember even this is not the perfect solution as non-cookie users are also "guests" and can not login anymore. Besides if server load is that high, it is not suggest to let members in either..

Ps. Code taken from 2.2.6, I'm not sure if later versions has a different algorithm for server busy error handling..
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04713 seconds
  • Memory Usage 2,260KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete