Commit 5bb2041
authored
docs: document sticky sessions via consistentHashKey (#4192)
## Description
Documents that sticky sessions can be achieved using the
`consistentHash` load balancer backend together with
`consistentHashKey`, keyed either by a request header or a path
parameter, as requested in the issue.
cc @szuecs @MustafaSaber, please take a look when you get a chance!
## Changes
* **`docs/reference/filters.md`**:
Added a new subsection, "Sticky sessions by header or by path," right
after the existing `consistentHashKey` section. Includes two example
routes — one pinning by a request header (`My-Header`), one pinning by a
path segment (`:item`) — along with a note on fallback-to-default-key
behavior and a pointer to `consistentHashBalanceFactor`.
## Related Issues
* Closes #4063
Signed-off-by: Shardool Patil <shardoolpatil999@gmail.com>1 parent 99d116f commit 5bb2041
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3849 | 3849 | | |
3850 | 3850 | | |
3851 | 3851 | | |
| 3852 | + | |
3852 | 3853 | | |
3853 | 3854 | | |
3854 | 3855 | | |
3855 | 3856 | | |
3856 | 3857 | | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
| 3869 | + | |
| 3870 | + | |
| 3871 | + | |
| 3872 | + | |
| 3873 | + | |
| 3874 | + | |
| 3875 | + | |
| 3876 | + | |
| 3877 | + | |
| 3878 | + | |
| 3879 | + | |
| 3880 | + | |
| 3881 | + | |
| 3882 | + | |
| 3883 | + | |
| 3884 | + | |
| 3885 | + | |
| 3886 | + | |
| 3887 | + | |
| 3888 | + | |
| 3889 | + | |
| 3890 | + | |
3857 | 3891 | | |
3858 | 3892 | | |
3859 | 3893 | | |
| |||
0 commit comments