Hi Bob,

I guess you are talking about the backup option?

Check out http://haproxy.1wt.eu/download/1.4/doc/configuration.txt
in section 5:

backup
  When "backup" is present on a server line, the server is only used in load
  balancing when all other non-backup servers are unavailable. Requests coming
  with a persistence cookie referencing the server will always be served
  though. By default, only the first operational backup server is used, unless
  the "allbackups" option is set in the backend. See also the "allbackups"
  option.


So you basically configure two server in your listen/backend section. The 
backup server will have to
contain the "backup" keyword.

Best,

Michael


Am 12.05.2010 20:50, schrieb Bob Sauvage:
> 
> 
> Hello people !
> 
> 
> Is it possible to make a simple failover mechanism with Haproxy ?
> 
> 
> I don't want load balancing at this moment. Just a director who checks
> my two webservers.
> 
> If my webserver 1 is down, the director redirects the paquet to the
> webserver2.
> 
> 
> Thanks a lot ! ;)

Reply via email to