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

Both Undertow balancer and Apache balancer don't keep sticky sessions with EAP workers on some platforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.0.0.ER6
    • 7.0.0.ER5
    • Clustering, Undertow
    • None
    • Hide

      See the description.

      Show
      See the description.

      Dear folks, I have a terribly weird issue with EAP 7.0.0.ER5 on platforms with high numbers of CPUs. I suspect Undertow web subsystem from doing something fishy with sessions, i.e. jsession ids.

      • both with jsessionid in URL and in COOKIE, one isn't able to deterministically get the same session data
      • sometimes client receives the propper session - i.e. no new session is created, sometimes a new session is created
      • both Apache HTTP Server mod_cluster and Undertow mod_cluster proxy fails at keeping sticky sessions, despite the fact that the mod_cluster worker subsystem correctly sends an MCMP mesage stating that sticky sessions are true, sticky sessions force is false
      • I was unable to reproduce it on any regular machines, only powerful 18+ cores machines show this kind of race condifiton
      • alongside sticky sessions, as a side effect, fail-over is also broken – this was reproduced only with Undertow mod_cluster proxy though, i.e. it sent a request deliberately to a dead node, getting HTTP 503

      I recorded one session on HP-UX with Undertow mod_cluster balacncer. The undermentioned files contain curl log from reproducing the issue, test app and configs:

      Any ideas?

        1. clusterbench.war
          392 kB
        2. curl.log
          14 kB
        3. undertow_balancer_debug.log.zip
          21 kB
        4. undertow_balancer_standalone.xml
          20 kB
        5. worker-jboss-eap-7.0-1.log
          25 kB
        6. worker-jboss-eap-7.0-1-standalone-ha.xml
          17 kB
        7. worker-jboss-eap-7.0-2.log
          27 kB
        8. worker-jboss-eap-7.0-2-standalone-ha.xml
          17 kB

            rhn-engineering-rhusar Radoslav Husar
            mbabacek1@redhat.com Michal Karm
            Radim Hatlapatka Radim Hatlapatka (Inactive)
            Radim Hatlapatka Radim Hatlapatka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: