Replies: 1 comment 1 reply
-
This is correct. Linkerd 2 uses the power-of-two-choices (P2C) load balancing algorithm, with exponentially-weighted moving averages (EWMA) as the load estimate. These load estimates are based on latency rather than a request count. It would certainly be possible to provide a least-loaded load metric to the P2C load balancer, as a replacement for the EWMA latency load metric. We haven't done this largely because there hasn't really been demand for it in the past; latency-based EWMA load balancing provides the lowest latency in most cases. Do you have a specific use-case that requires a least-loaded load estimate? |
Beta Was this translation helpful? Give feedback.
-
I see that linkerd v1 had a bunch of configurable load balancing algorithms. I'm specifically interested in the having requests go to the least-loaded pod.
I can't find any docs on what kind of load balancing linkerd2 is using. Based off the code is seems to be hard-coded to EMWA. Is this accurate?
Beta Was this translation helpful? Give feedback.
All reactions