Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Big Board Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
2 Servers 1 Database 1 Site Need Advice Details »»
2 Servers 1 Database 1 Site Need Advice
Version: , by flfooty tv flfooty tv is offline
Developer Last Online: Feb 2009 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-16-2006 Last Update: Never Installs: 0
 
No support by the author.

Hi

my forum is pretty large, its not large in the fact that it gets lots of posts coz its not really a posting forum

and i only have 25k ish members

but before you say this isnt big then read on!

i run a tv site and have stream authentication linked to the forum database, when it his peak times the sql always bloudy crashes! im on a p4 dedicated with 2gb ram. bla bla.

peak time i get about 700-900 people online at 1 time

i need help! i want to move onto 2 servers, will this help with the database crashing due to overload? How do i run vbulletin off 2 servers? i cant find any guides :'(

PLEASE HELP!!!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-17-2006, 05:49 AM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upgrade your ram in your current machine to 4gb. What type of hard drives do you have? SCSI w/RAID or something else?

Next order up another server, give it SCSI drives Raid setup would be best, about 6-8gb of ram.

Then simply move your database from your current machine to your new one. Edit the config.php file where it has the master DB info. Input te IP address of your new server and thats all there is to it
Reply With Quote
  #3  
Old 12-17-2006, 08:18 AM
flfooty tv flfooty tv is offline
 
Join Date: Oct 2005
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do i not need to do anything with cookie settings or anything?
Reply With Quote
  #4  
Old 12-17-2006, 09:01 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure the vBulletin is the problem and not the streaming? Where is the streaming from? Same server?

A rather tiny forum like yours that just uses vB for authentication surely doesn't need 4GB RAM (I assume the database is rather small and can probably fit in 1GB RAM) nor would you need SCSI because again, everything is in memory.

Is it only vB running on that server?
Reply With Quote
  #5  
Old 12-17-2006, 09:35 AM
flfooty tv flfooty tv is offline
 
Join Date: Oct 2005
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no, i have 3 seperate stream servers.

The problem lies that the authentication authenticates 1 user at a time, at peak with have few thousand viewers, it ques them if there all trying at same time and it puts alot of load on the server. and the database stops responding. i have put the web files on 1 server and database on another 1 right, but people saying they keep having to log in everytime they visit or sumtimes wen they change to another page.

Any ideas?
Reply With Quote
  #6  
Old 12-17-2006, 09:43 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only thing they do is logging in and then for example viewing the forum home? Or are they redirected straight ahead?

You should be able to handle basically any number of logins, because all a log in does is like a handful of queries.

Have you submitted your server to http://www.vbulletin.com/forum/forumdisplay.php?f=14 and explained your situation (peeks with insane numbers of users) and got yourself a optimized mysql config?
Reply With Quote
  #7  
Old 12-17-2006, 09:49 AM
flfooty tv flfooty tv is offline
 
Join Date: Oct 2005
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no the login que is sent from icecast scripts. well i dont know how it works exactly but i do know it puts so much load on the server and causes database to crash.

anyway more my worry about running 2 servers is that it logs most users out on every page :S they login come back to another link 5 mins later and there logged out again :S

how can i sort that?
Reply With Quote
  #8  
Old 12-17-2006, 09:54 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, what is icecast and how does it relate to vBulletin?

EDIT: I checked their website, and you pass the username/pw from icecast to vB to authenticate? How do you pass it?
Reply With Quote
  #9  
Old 12-17-2006, 10:03 AM
flfooty tv flfooty tv is offline
 
Join Date: Oct 2005
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have codec it so certain usergroups get access to the stream, i.e paid users

its been fine for 2 years but now the streams are extremely busy it causes crashout. but i can sort that with better server

my worry is with cookie problem running 2 servers they keep getin logged out.

any idea how i can sort it?
Reply With Quote
  #10  
Old 12-17-2006, 10:11 AM
orban orban is offline
 
Join Date: Jan 2005
Posts: 445
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can use a load balancer for example.

I don't quite understand why you come here and ask for help but refuse to actually explain what your problem is.

You ask "i want to move onto 2 servers, will this help with the database crashing due to overload?" but don't explain WHAT actually the bottleneck is. You say you run vBulletin then you tell me you run Icecast with vB as an authentication service. How is this bridged? Maybe your implementation is the bottle neck, an easy edit of the script can fix that. Maybe your apache/php/mysql config files are the bottle neck, again an easy edit can fix it.

Adding more memory certainly will NOT help the issue because your database size isn't even 2gb. Are you swapping during those peeks?

Checking if a given user/pw combination is correct and if a user is in a given usergroup is ONE (1) SELECT query on the user table, you can probably run 500/second of those on your server (if that's the only thing it does).
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 05:14 PM.


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.05310 seconds
  • Memory Usage 2,289KB
  • Queries Executed 25 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete