Multiple A Records Priority

What is the name of the domain?

example.com

What is the issue you’re encountering

How does Cloudflare prioritize other disturbe traffic

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

We have an API and that has 3 A record pointing to 3 load balancers.
In CF DNS,
We have 3 A records entered pointing to the 3 IP Addresses for the same domain api.example.com
The Load Balancer with the lowest IP address received twice the amount of traffic that the other two get.
The second lowest IP gets a faster more traffic than the 3rd load balancer - which obviously gets the least amount of traffic.

I measure this on our NGINX log tracing AND with our Zabbix monitoring…

I have tried removing the first IP, and re-adding it to see if it was based on date created. but it is based on the oct of the IP
By Lowest I mean
IP1: 123.124.125.6
IP2: 123.124.125.7
IP3: 123.124.125.8

Does anyone know how I can get CF to disturbe the traffic more evenly?

Screenshot of the error

screenshot 3.png

May I ask a bit of dumb question, however are you’re using Pools as well? :thinking:
So, 3 origin hosts/web servers you have?

Thanks for such a fast reply Fritex.

Yes - 3 origin servers, but NO - not using CF Load Balancing.
I will look in to this, I thought it was only for geographic based routing rules.

It looks like the cost may outway the value for us for just this feature - will investigate and maybe try for a month or so…

Thanks

So when trying to use round robin DNS for load balancing there are some drawbacks:

The round-robin method doesn’t always provide evenly-distributed load balancing because of both DNS caching and client-side caching. If a user makes a DNS query to a particularly high traffic recursive resolver for a particular website, that resolver will cache the website’s IP, potentially sending a heavy amount of traffic to that one IP.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.