Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-17950

sessionAffinity doesn't cause a requests from a same IP to be served by single endpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Critical
    • None
    • None
    • OpenShift

    Description

      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

      $ 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"}
      

      sessionAffinity=true

      $ 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"}
      

      sessionAffinity=true should make all responses to be served by the same endpoint

      Attachments

        Activity

          People

            jmesnil1@redhat.com Jeff Mesnil
            pkremens@redhat.com Petr Kremensky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: