how to configure linux for load balancing
Suppose I have 3 machine each one is running ftp daemon(example), and have an application daemon which is monitoring load and can communicate with remaining servers. now for every new connection I can check load of each server and I want to redirect that socket connect request to least loaded server. that load balancer daemon should be able to do this at runtime without breaking any existing communication.
This should work seamlessly with any application. How I can achieve it using any combination of
Advance routing, VLAN, iptables ...... LINUX.