Hi Lukas, Excuse me. It did work.
One detail was missing. Thanks. Em sáb., 19 de fev. de 2022 às 14:38, Carlos Renato <[email protected]> escreveu: > Yes, > > In stats server2 is DOWN. accept the VM's network card. > > Em sáb., 19 de fev. de 2022 às 13:32, Lukas Tribus <[email protected]> > escreveu: > >> On Sat, 19 Feb 2022 at 16:15, Carlos Renato <[email protected]> wrote: >> > >> > Hi Lukas, >> > >> > Thanks for the reply and willingness to help. >> > >> > I did a test and it didn't work. I dropped the server2 interface and >> only server1 was UP. >> > Traffic continues to exit through the main bakend. My wish is that the >> traffic is directed to the backup server. >> >> Did haproxy recognize server2 was down? >> >> With thgis configuration the backup keyword needs to be removed from >> serverBKP (because the rule is implemented with a use_backend >> directive), this was wrong in my earlier config. >> >> >> Lukas >> > > > -- > > > --

