session affinity
Sending all requests from one client to the same backend, often by hashing the client address or using a cookie.
In more detail
It helps applications that keep session state in memory, but it can make traffic uneven and makes draining a backend slower. Prefer storing session state where every backend can reach it.
Related terms
- load balancing — Spreading requests or connections across several backend servers so no single one is overloaded and failed ones can be avoided.
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
- backend pool — The set of servers a load balancer can send traffic to, each marked eligible or not by health checks.
Taught in
- Load Balancing: Algorithms, Health Checks And Layers — Linux Fundamentals & Systems Administration