11 Replies Latest reply on Jul 4, 2018 1:37 PM by Alex Miller

    HTTP Session Failover in WildFly 11 for different machines

    Alex Miller Newbie

      Hi, I'm trying to setup session sharing between 2 different machines. (Machine A = 192.168.10.114  node1, node2, Machine B = 192.168.10.7 : node3, node4)

       

      When I run all 4 servers in a standalone mode using ha profile via cmd line:

      Machine A = 192.168.10.114:

      1.>bin\standalone.bat -b 192.168.10.114 -Djboss.server.base.dir=node1 --server-config=standalone-ha.xml -Djboss.socket.binding.port-offset=500 -Djboss.node.name=node1

      2.>bin\standalone.bat -b 192.168.10.114 -Djboss.server.base.dir=node2 --server-config=standalone-ha.xml -Djboss.socket.binding.port-offset=1000 -Djboss.node.name=node2

      and Machine B = 192.168.10.7:

      3.standalone.bat -b 192.168.10.7 -Djboss.server.base.dir=node3 --server-config=standalone-ha.xml -Djboss.socket.binding.port-offset=200 -Djboss.node.name=node3

      4.standalone.bat -b 192.168.10.7 -Djboss.server.base.dir=node4 --server-config=standalone-ha.xml -Djboss.socket.binding.port-offset=400 -Djboss.node.name=node4

       

      the result: I'm getting 2 clusters (1,2) & (3,4). Each node in a cluster is sharing session only with another one on the same machine but session isn't shared between all the nodes.

      I would like to have all 4 nodes as a part of one cluster.

       

      Also tried:

      setup domain mode with ha profile as explained in: HTTP Session Failover in WildFly 8 · WildFly . Machine A: running server-group ABC with servers one & two and Machine B is running server-group with the same name  ABC (to try to make it construct one cluster) with servers: three & four.

      And again session is shared only between 2 nodes on the same machines.

       

      Please, assist configuring it properly for all servers on both machines.

       

      P.S. I also run jgroups testing tool to verify multicast connection and it was successful in both directions (Sender-Listener) between my 2 machines.

      Thanks!