Check if DNS round robin is possible #7

Open
opened 2024-04-17 11:04:38 +02:00 by PeterSurda · 0 comments
Owner

I'd like to use multiple servers with DNS round robin, so that I don't have a SPOF. The source code of cloud-init appears to use pythons' requests library for retrieving the files. I tried a simplified version of the same code in command line python, and it looks like if there are multiple A records, for each retry loop, it will try each IP address. I used wireshark becuase the doesn't seem to be any obvious way to dump the IP address from requests if the TCP connection fails. So for many types of failures, a simple multiple DNS records would work. However for some responses it may not help, e.g. if the server returns a code 200 but garbled content. But I'm not sure if that's even a scenario which we have to protect against.

I'd like to use multiple servers with DNS round robin, so that I don't have a SPOF. The source code of cloud-init appears to use pythons' requests library for retrieving the files. I tried a simplified version of the same code in command line python, and it looks like if there are multiple A records, for each retry loop, it will try each IP address. I used wireshark becuase the doesn't seem to be any obvious way to dump the IP address from requests if the TCP connection fails. So for many types of failures, a simple multiple DNS records would work. However for some responses it may not help, e.g. if the server returns a code 200 but garbled content. But I'm not sure if that's even a scenario which we have to protect against.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Sysdeploy/cloud-init-cherrypy#7
No description provided.