vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   Clustering, load etc (https://vborg.vbsupport.ru/showthread.php?t=74701)

trackpads 01-20-2005 12:28 AM

Clustering, load etc
 
Please help give me a clue here :)

I have a dedicated server with cpanel and one of the options is DNS Clustering. If I add another dedicated server what does this do for me? Is there a way to have one as a dedicated mysql server and the other for mail and apache?

Also, and this is basic, why when everything from top to vb shows the load there are 3 numbers? ie. 4.01, 3.51, 1.56 ?

Thanks in advance,

-Jason

Andreas 01-20-2005 12:35 AM

1st = 1minute
2nd = 5minute
3rd = 15 minute
load average.

You don't need load balancing if you just got 1 webserver and 1 DB server. Just change config.php of vBulletin to point to the DB server, make sure that it does accept non-local connections for the account and you're settled.
Both servers should be cross-connected via seperate NICs. Make sure that you do use the "internal" IP of the DB server in config.php

trackpads 01-20-2005 12:40 AM

Quote:

Originally Posted by KirbyDE
1st = 1minute
2nd = 5minute
3rd = 15 minute
load average.

You don't need load balancing if you just got 1 webserver and 1 DB server. Just change config.php of vBulletin to point to the DB server, make sure that it does accept non-local connections for the account and you're settled.
Both servers should be cross-connected via seperate NICs. Make sure that you do use the "internal" IP of the DB server in config.php

First, thanks for taking the time to answer, i definately appreciate the help!

So if I buy a second dedicated server and set up the DNS clustering I can do this? So would it be it be something other than 'localhost' I presume in the config.php?

I am still pretty new at all of this so I apologize if you need to dumb it down to me :)

Thanks,

-Jason

Andreas 01-20-2005 12:45 AM

As already said, you don't need "DNS clustering" for that purpose.
This would only be needed if you got several web-servers that should be accessible as one host (eg. www.yourdomain.com) but where the requests should be balanced (round robin) on them.

If you got a separate DB server, place it's hostname or IP in config.php and you're done.

trackpads 01-20-2005 12:47 AM

Quote:

Originally Posted by KirbyDE
As already said, you don't need "DNS clustering" for that purpose.
This would only be needed if you got several web-servers that should be accessible as one host (eg. www.yourdomain.com) but where the requests should be balanced (round robin) on them.

If you got a separate DB server, place it's hostname or IP in config.php and you're done.

Ahhh.. sorry. Again I am new, ok and hardheaded but mostly new :)

I VERY much appreciate the help!

-Jason

Andreas 01-20-2005 12:51 AM

> Join Date: Aug 2003
[high]* Andreas is newer ;)[/high]

trackpads 01-20-2005 12:55 AM

Quote:

Originally Posted by KirbyDE
> Join Date: Aug 2003
[high]* KirbyDE is newer ;)[/high]

I will still bank on you being smarter :) :)

Erwin 01-20-2005 12:56 AM

DNS clustering has nothing to do with server clustering per se. :) It's to use multiple servers as domain name servers (DNS servers) and automatically updating their DNS info. What you are suggesting is a simple dedicated web and database server network. Kirby's posted the basics already. :)

Brad 01-20-2005 03:14 AM

Just remember to have them connected via a cross-over like Kirby said. If you have requests to mySQL going back and forth across the net its not only slow but un-secure and will eat up alot of bandwidth.

huss 02-03-2005 09:42 PM

Quote:

Originally Posted by Brad.loo
Just remember to have them connected via a cross-over like Kirby said. If you have requests to mySQL going back and forth across the net its not only slow but un-secure and will eat up alot of bandwidth.

Well I have a related subject so I"ll jump on board and ask for help:

From my thread here:
http://www.vbulletin.com/forum/showt...921#post810921

We have implemented full load balancing on our forums, which is working great. However, now all IP logging shows the virtual IP of the load balancer, and not the user themself.

The load balancer passes 'X-Cluster-Client-Ip' with the original client IP address (at least for clear http requests; https and other protocols, not so much).

In this http://forums.servermatrix.com/viewtopic.php?t=9828 thread, there is a suggestion on how to fix this issue for your apache logs. I'm not sure how to fix it in the VBulliten case.

The problem isn't in our logs. The problem is in the vb admincp - when you click to view a users ip, they are all showing as the LB's ip, not the user's actual ip. Sounds liek we have to hack vb to read the xforwarded by?

Yes you would have to hack the VB code to get that functionality

Thoughts?


All times are GMT. The time now is 01:41 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.01143 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete