
David Joyal-Morin (Customer) asked a question.
We recently started using Cloudflare and since then the LoadMaster seem to favor one of my real server more than usual.
We changed the Persistence Options from "Ip Source" to "Selected Header CF-Connecting-IP" and we kept the "Least connection" Scheduling Method.
Since then the LoadMaster favor a server more than other (the favored one does changes from time to time, but one of the four real server has more traffic than the other three)
We also tried the round robin method, but the behavior stay the same
We were wondering if there was some kind of explanation or anything we did wrong
The cloudflare header used (CF-Connecting-IP) does contains some IPv4 or IPv6 adress, unsure if that matter or not, but before cloudflare we were only using IPv4 as "Source IP"
Thank you
Hi David,
With Source IP persistence, the loadmaster uses the incoming source IP to determine where to send requests to. If for example Cloudflare was NATing all incoming requests to the same exact IP, then all requests would be sent to the same server.
For Selected Header persistence, the LoadMaster will send all requests that contain the same value in the specified header (for example, the X-Forwarded-For header - if it was added before it reaches the LoadMaster) to the same server.
This should generally forward connections to different servers as its assumed the header values should be changing with every single request.
Can you confirm if Cloudflare makes any changes to the CF-Connecting-IP header at all before those requests reach the loadmaster? For example, inserting a specific IP value?
Best Regards,
The header "CF-Connecting-IP" is the client real IP address. They don't change it but they append it to every http request to our server (so to our KEMP LoadMaster) and that why we decided to use that header as Scheduling Method.
Everything should be fine in theory, but in pratice, I have way more different IP originating from the CF-Connecting-IP header that are redirected to one real server, instead of the other
For example, right now, my distribution is 40 - 140 - 42 - 37.
All those 140 CF-Connecting-IP from that server are different. I have log that prove it.
Some IP are IPv4, other are IPv6, and the preferred one change throughout the day
Also, unsure if that matter or not, but this behavior happen only on my mobile website. My desktop website, which has the same Persistence Header and is behind Cloudflare, does not have that behavior
I also saw some IP does'nt have the header (but very few, we talking like 10-15), so they must all be redirected to the same server, but there is no "Persistence Options" "Selected Header OR IP". How would I achieve something like that ?