I have 2 servers running Debian, MySQL, Apache Tomcat and a Java webapp. They sit behind a NetGear router with port 8080 (http in this case) forwarded to Server A. I want to be able to do a couple of things:
1) if mysql/tomcat crash on server A, i want all trafit to go to server B and the webapp ther
2) if there is too much trafic on server A, have the trafit be distributed to server B
3) be able to manually switch traffic off from A to B and visa versa
I cant afford a hardware load balancer so i was wonderign if there is a way i can do this either with linux tools or some open source software. I know mysql has some sort of replication too but dont know waht thats about.
Thanks!
1) if mysql/tomcat crash on server A, i want all trafit to go to server B and the webapp ther
2) if there is too much trafic on server A, have the trafit be distributed to server B
3) be able to manually switch traffic off from A to B and visa versa
I cant afford a hardware load balancer so i was wonderign if there is a way i can do this either with linux tools or some open source software. I know mysql has some sort of replication too but dont know waht thats about.
Thanks!