Problem with Round robin dns

I’m having problem with Round Robin DNS.

I do everything according to this instruction _ttps://developers.cloudflare.com/dns/manage-dns-records/how-to/round-robin-dns/

And so.

I have a domain to which I add 2 A records pointing to different servers.

Also, proxying is enabled for each A record.

When I purposely disable 1 server. I expect that the content linked to the domain will remain available. But this does not always happen and often I can get error 521.

I see that Round Robin DNS works in general, but this only applies to new session connections (new clients are distributed approximately evenly across servers). But when 1 of the servers is disconnected, the client who worked with this server through the domain starts receiving error 521!

Please tell me why it doesn’t work? Although the instructions say that everything should be fine!

Thank you for your reply!

2 posts were merged into an existing topic: Round robin dns not working correctly