Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
informatique:reseau:apache:loadbalancing [2011/01/11 12:07] – nico | informatique:reseau:apache:loadbalancing [2012/02/03 14:42] – bn8 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== Load balancing ====== | ||
+ | |||
+ | |||
+ | Modules apache à activer : | ||
+ | |||
+ | proxy* | ||
+ | |||
Vhost pour le balancer : | Vhost pour le balancer : | ||
< | < | ||
+ | | ||
ServerName vmnico.lineis.fr | ServerName vmnico.lineis.fr | ||
ServerAlias lineis.fr | ServerAlias lineis.fr | ||
Ligne 20: | Ligne 28: | ||
ProxySet lbmethod=byrequests | ProxySet lbmethod=byrequests | ||
</ | </ | ||
+ | | ||
< | < | ||
SetHandler balancer-manager | SetHandler balancer-manager | ||
Ligne 25: | Ligne 34: | ||
Allow from all | Allow from all | ||
</ | </ | ||
+ | | ||
</ | </ | ||
+ | | ||
+ | Vhost pour la node01 : | ||
+ | |||
+ | < | ||
+ | ServerName node01.lineis.fr | ||
+ | DocumentRoot /var/www | ||
+ | RewriteEngine On | ||
+ | RewriteRule .* - [CO=BALANCEID: | ||
+ | </ | ||
+ | | ||
+ | Vhost pour la node02 : | ||
+ | |||
+ | < | ||
+ | ServerName node02.lineis.fr | ||
+ | DocumentRoot /var/www | ||
+ | RewriteEngine On | ||
+ | RewriteRule .* - [CO=BALANCEID: | ||
+ | </ | ||
+ | |||
+ | |||
| | ||