Advertisement
pebriana

load balance

Mar 30th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. kemaren
  2. roundrobin dns..
  3. kelemahan.. beban gak bisa diatur
  4. ip ke cache,..
  5.  
  6. ini--
  7. cluster harus dalam 1 network sama
  8.  
  9. besok--
  10. High_availability
  11. ---------------------
  12. pc 1
  13.  
  14. <VirtualHost *:80>
  15. ServerName http1.haha.ok
  16. DocumentRoot /var/www/http1
  17. RewriteEngine On
  18. RewriteRule .* - [CO=BALANCEID:balancer.http1:.haha.ok]
  19. </VirtualHost>
  20.  
  21.  
  22. pc 2
  23.  
  24. <VirtualHost *:80>
  25. ServerName http2.haha.ok
  26. DocumentRoot /var/www/http2
  27. RewriteEngine On
  28. RewriteRule .* - [CO=BALANCEID:balancer.http2:.haha.ok]
  29. </VirtualHost>
  30.  
  31.  
  32. pc ser
  33.  
  34. <VirtualHost *:80>
  35.  
  36. ServerName www.haha.ok
  37. ServerAlias haha.ok
  38. DocumentRoot /var/www/html/
  39. ProxyRequests off
  40. <Proxy>
  41. Order deny,allow
  42. Allow from all
  43. </Proxy>
  44. ProxyPass /balancer-manager !
  45. ProxyPass / balancer://mycluster/ stickysession=BALANCEID nofailover=off
  46. ProxyPassReverse / http://http1.haha.ok/
  47. ProxyPassReverse / http://http2.haha.ok/
  48. ProxyPassReverse / http://http3.haha.ok/
  49.  
  50. <Proxy balancer://mycluster>
  51. BalancerMember http://http1.haha.ok route=http1
  52. BalancerMember http://http2.haha.ok route=http2
  53. BalancerMember http://http3.haha.ok route=http3
  54. ProxySet lbmethod=byrequests
  55. </Proxy>
  56.  
  57. <Location /balancer-manager>
  58. SetHandler balancer-manager
  59. Order deny,allow
  60. Allow from all
  61. </Location>
  62. </VirtualHost>
  63.  
  64.  
  65. akses balance manager di ser
  66. http://server/balancer-manager/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement