View Single Post
  #1  
Old 06-25-2010, 10:08 AM
wowglider wowglider is offline
 
Join Date: Dec 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Load Balancing, Apache, Debian, mod_proxy_balancer for Wordpress, vBulletin & vBSEO

Hello,
ive 1 forum with atm not so much traffic to load balance it, but i know it would be better for the next years, so i bought a 2. server to load balance all vhosts i have on them.

Thats my configuration:
server1.worldofglider.de
Intel? Core? i7-920 Quad-Core
inkl. Hyper-Threading-Technologie
Arbeitsspeicher 8 GB DDR3 RAM
Festplatten 2 x 750 GB SATA-II HDD (Software-RAID 1)
Netzwerkkarte 1 GBit OnBoard mit 100 MBit-Anbindung
Backup Space100 GB
Traffic Unlimited

server2.worldofglider.de
Intel? Core? i7-920 Quad-Core
inkl. Hyper-Threading-Technologie
Arbeitsspeicher 8 GB DDR3 RAM
Festplatten 2 x 750 GB SATA-II HDD (Software-RAID 1)
Netzwerkkarte 1 GBit OnBoard mit 100 MBit-Anbindung
Backup Space100 GB
Traffic Unlimited

Because i just have 2 server to load balance some of the servers need to do the apache thing + load balancer.

My idea was installing load balancer on server1 on port 80 and http on port 81. Is that possible?

Now i have one problem, the load balancer dont seem to pass (the right?) vhost to http server1 or 2.

Thats my load balancer config:
Code:
NameVirtualHost *:80
<VirtualHost *:80>
        DocumentRoot /home/load-balancer
        ProxyRequests Off

        <Proxy *>
          Order deny,allow
          Allow from all
        </Proxy>
        ProxyPass /LB !
        ProxyPass / balancer://mycluster/ stickysession=1 nofailover=On
        ProxyPassReverse / http://server1.worldofglider.de/
        ProxyPassReverse / http://server2.worldofglider.de:81/
        <Proxy balancer://mycluster>
          BalancerMember http://server1.worldofglider.de  route=server1
          BalancerMember http://server2.worldofglider.de:81  route=server2
          ProxySet lbmethod=byrequests
        </Proxy>
        <Location /LB>
          SetHandler balancer-manager
          Order deny,allow
          Allow from all
        </Location>
</VirtualHost>
Thats how i installed the vHosts on port 81:
Code:
<VirtualHost *:81>
        RewriteEngine On
        RewriteRule .* - [CO=BALANCEID:balancer.server2:.worldofglider.de]
        ServerAdmin webmaster@localhost
        ServerName www.fairplay-bot.de
        ServerAlias fairplay-bot.de
        DocumentRoot /home/ftp/fairplay-bot.de/
</VirtualHost>
Someone has an idea why my vhosts not working? Also i have another question, i installed rsync to sync server2 with server1, but what happens when some user create content on server2? How i can pass this to server 1?

Maybe i could get some help from the big board owners, if i posted in the wrong section im really sorry.

Thanks for any help!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01222 seconds
  • Memory Usage 1,772KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete