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?
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.