3 ms·
What if you're not dealing with millions of connections but instead only a few thousand from whitelisted IP's and you need to optimise for high availability & l
by woodcut 10y ago
What if you're not dealing with millions of connections but instead only a few thousand from whitelisted IP's and you need to optimise for high availability & latency? Could it be done with just anycast -> IPVS layer -> app servers ?
- bogomipz 10y agoIf its stateless traffic then yes. The ECMP/Anycast just gets you beyond the limit of an single pair of IPVS boxes which are are kept in sync with keepalived/vrrp for HA. But a pair of boxes with ipvs + keepalived + iptables should be be able to handle a few thousand connections no problems. Your concern would then likely be the bandwidth going through the box. But if your client pull rather than push using direct server return should be able to get you past the bandwidth limitations of a single box.
- nrjdhsbsid 10y agoYeah it works pretty much the same. If your clients aren't geographically dispersed replace anycast with DNS round robin or use both like most huge sites do. Also there's three layers :) dns->ipvs->httpproxy->app servers. You could ditch the HTTP proxy layer if your app servers are extremely fast like netty/go/grizzly.