lb/BP/2022_001

LocalityLbPolicy compatible with sessionAffinity.

Product: Backend services
Rule class: BP - Best practice, opinionated recommendation

Description

If sessionAffinity is not NONE, and localityLbPolicy field is not set to MAGLEV or RING_HASH, session affinity settings will not take effect.

Remediation

Set localityLbPolicy to MAGLEV or RING_HASH if sessionAffinity is enabled.

Further information