Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You mentioned load balancing- so presumably you want to be able to add more Application Servers that are served through a single address. I hope they are stateless or storing session information in a database. You can use Apache to serve as a reverse proxy load balancer with <code>mod_proxy_balancer</code>. Docs are <a href="http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html" rel="nofollow noreferrer">here</a>.</p> <p>Here's an example of what to add to your httpd.conf from <a href="http://blog.innerewut.de/2006/4/21/scaling-rails-with-apache-2-2-mod_proxy_balancer-and-mongrel" rel="nofollow noreferrer">this link</a>.</p> <pre><code> &lt;Proxy balancer://myclustername&gt; # cluster member 1 BalancerMember http://192.168.0.1:3000 BalancerMember http://192.168.0.1:3001 # cluster member 2, the fastest machine so double the load BalancerMember http://192.168.0.11:3000 loadfactor=2 BalancerMember http://192.168.0.11:3001 loadfactor=2 # cluster member 3 BalancerMember http://192.168.0.12:3000 BalancerMember http://192.168.0.12:3001 # cluster member 4 BalancerMember http://192.168.0.13:3000 BalancerMember http://192.168.0.13:3001 &lt;/Proxy&gt; &lt;VirtualHost *:80&gt; ServerAdmin info@meinprof.de ServerName www.meinprof.de ServerAlias meinprof.de ProxyPass / balancer://meinprofcluster/ ProxyPassReverse / balancer://meinprofcluster/ ErrorLog /var/log/www/www.meinprof.de/apache_error_log CustomLog /var/log/www/www.meinprof.de/apache_access_log combined &lt;/VirtualHost&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload