[jboss-jira] [JBoss JIRA] (WFWIP-249) sessionAffinity doesn't cause a requests from a same IP to be served by single endpoint
Jeff Mesnil (Jira)
issues at jboss.org
Wed Nov 6 05:10:01 EST 2019
[ https://issues.jboss.org/browse/WFWIP-249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Mesnil updated WFWIP-249:
------------------------------
Summary: sessionAffinity doesn't cause a requests from a same IP to be served by single endpoint (was: sessionAffinity doesn't cause a requests from a same IP to be served by single endpont)
> sessionAffinity doesn't cause a requests from a same IP to be served by single endpoint
> ---------------------------------------------------------------------------------------
>
> Key: WFWIP-249
> URL: https://issues.jboss.org/browse/WFWIP-249
> Project: WildFly WIP
> Issue Type: Bug
> Components: OpenShift
> Reporter: Petr Kremensky
> Assignee: Jeff Mesnil
> Priority: Critical
> Labels: operator
>
> It is expected, that if the {{sessionAffinity=true}}, the requests from a client with a same IP should be served by the same endpoint, using the latest upstream operator with the quickstart example:
> *sessionAffinity=false*
> {noformat}
> $ oc patch wildflyserver quickstart -p '\[{"op":"replace", "path":"/spec/sessionAffinity", "value":false}\]' --type json
> $ oc describe service/quickstart-loadbalancer | grep Session
> Session Affinity: None
> $ for i in {1..4} ; do echo `curl -s quickstart-route-wildfly.apps-crc.testing` ; done
> {"ip":"10.128.0.98"}
> {"ip":"10.128.0.99"}
> {"ip":"10.128.0.98"}
> {"ip":"10.128.0.99"}
> {noformat}
> *sessionAffinity=true*
> {noformat}
> $ oc patch wildflyserver quickstart -p '[{"op":"replace", "path":"/spec/sessionAffinity", "value":true}]' --type json
> $ oc describe service/quickstart-loadbalancer | grep Session
> Session Affinity: ClientIP
> $ for i in {1..4} ; do echo `curl -s quickstart-route-wildfly.apps-crc.testing` ; done
> {"ip":"10.128.0.98"}
> {"ip":"10.128.0.99"}
> {"ip":"10.128.0.98"}
> {"ip":"10.128.0.99"}
> {noformat}
> {{sessionAffinity=true}} should make all responses to be served by the same endpoint
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list