4 ms·
> So what happens when one of the servers is offline? Say I stop the US server: > service nginx stop But that's not how you should test this. A client will se
by unilynx 2y ago
> So what happens when one of the servers is offline? Say I stop the US server:
> service nginx stop
But that's not how you should test this. A client will see the connection being refused, and go on to the next IP. But in practice, a server may not respond at all, or accept the connection and then go silent.
Now you're dependent on client timeouts, and round robin DNS will suddenly look a whole lot less attractive to increase reliability.
- Joe_Cool 2y agoYeah SIG_STOP or just ip/nftables DROP would be a much more realistic test.
- globular-toast 2y agoYes, this can be tested by just unplugging or turning off a machine/VM with that IP address. Stopping a service is a planned action that you could handle by updating your DNS first.