Skip to content

Commit 91abf73

Browse files
authored
Merge pull request #56678 from JoeAldinger/OSDOCS-4757
OSDOCS-4757:adds session affinity to OVN-K
2 parents f36a6d6 + e5dd4c2 commit 91abf73

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/ovn_kubernetes_network_provider/about-ovn-kubernetes.adoc
4+
5+
:_content-type: CONCEPT
6+
[id="nw-ovn-kubernetes-session-affinity_{context}"]
7+
= Session affinity
8+
Session affinity is a feature that applies to Kubernetes `Service` objects. You can use _session affinity_ if you want to ensure that each time you connect to a <service_VIP>:<Port>, the traffic is always load balanced to the same back end. For more information, including how to set session affinity based on a client's IP address, see link:https://kubernetes.io/docs/reference/networking/virtual-ips/#session-affinity[Session affinity].
9+
10+
[discrete]
11+
[id="nw-ovn-kubernetes-session-affinity-stickyness-timeout_{context}"]
12+
== Stickiness timeout for session affinity
13+
The OVN-Kubernetes network plugin for {product-title} calculates the stickiness timeout for a session from a client based on the last packet. For example, if you run a `curl` command 10 times, the sticky session timer starts from the tenth packet not the first. As a result, if the client is continuously contacting the service, then the session never times out. The timeout starts when the service has not received a packet for the amount of time set by the link:https://kubernetes.io/docs/reference/networking/virtual-ips/#session-stickiness-timeout[`timeoutSeconds`] parameter.

networking/ovn_kubernetes_network_provider/about-ovn-kubernetes.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ include::modules/nw-ovn-kubernetes-matrix.adoc[leveloffset=+1]
4141

4242
include::modules/nw-ovn-kuberentes-limitations.adoc[leveloffset=+1]
4343

44+
include::modules/nw-ovn-kubernetes-session-affinity.adoc[leveloffset=+1]
45+
4446
[role="_additional-resources"]
4547
.Additional resources
4648

0 commit comments

Comments
 (0)