First of all, i'm sorry if this question has been answered before, but i've been searching for a while now and couldn't seem to find (or understand) an answer.
So, i have two physical servers with centOS on them. 1 of them is already hosting some websites and databases. Now i want to make a redundant environment by using load balancing with failover. so basically, i want to have both servers running, dividing the work by the amound of connections that are open at that moment and when 1 of them crashes let the other server take over all the work.
Every example i came across had a 3th server for haproxy in front of 2 webservers. But would it be possible with just the 2 servers (by installing haproxy on both webservers for example)? Or is there a better way of handling this problem?
thanks in advance.