-
1. Re: Clustering + load balance strangeness on WF 10
ctomc May 19, 2016 11:15 AM (in response to nickarls)you are running standalone-ha.xml or standalone-full-ha.xml for the backend nodes?
as configuring undertow to do load balancing between two nodes, doesn't imply proper cluster replication between that two nodes.
-
2. Re: Clustering + load balance strangeness on WF 10
nickarls May 19, 2016 2:29 PM (in response to ctomc)I just ran them with domain.bat. Can the distributed deployment work without replication working?
-
3. Re: Clustering + load balance strangeness on WF 10
nickarls May 20, 2016 4:04 AM (in response to nickarls)It indeed appears to be some problem with the replication since running the put.jsp directly on master and then the get.jsp on the slave, I also get "null".
Strange. The web.xml has the distributable tag and deploying the application from the master console deployed it also to the slave. And I see the slave and master connecting. And in domain.xml I see
<server-group name="other-server-group" profile="full-ha">
<jvm name="default">
<heap size="64m" max-size="512m"/>
</jvm>
<socket-binding-group ref="full-ha-sockets"/>
<deployments>
<deployment name="cluster-demo.war" runtime-name="cluster-demo.war"/>
</deployments>
</server-group>
-
4. Re: Clustering + load balance strangeness on WF 10
rhusar May 20, 2016 6:06 AM (in response to nickarls)To debug, you can run the app we use to test the server, checkout
https://github.com/clusterbench/clusterbench
deploy and when you hit
http://localhost:8080/clusterbench/debug
or
http://localhost:8180/clusterbench/debug (second server with offset 100)
you should see the members for the cache:
Serial: 13
Session ID: eh5srCB4fxlhI3GLwwMthGhFzWoybp3EGe6PqYd-
Current time: Fri May 20 12:04:43 CEST 2016
ServletRequest.getServerPort(): 8080
ServletRequest.getLocalPort(): 8080
Node name: node1
Members: [node1, node2]
Physical addresses: 127.0.0.1:55200; 127.0.0.1:55300;
I dono if that would be useful, but I cannot vouch for the app you are using what it does.
-
5. Re: Clustering + load balance strangeness on WF 10
nickarls May 20, 2016 7:34 AM (in response to rhusar)I have three servers on master and three servers on slave. If I hit any of the servers on the master, I see the three nodes on the master and the same thing with the slave host but for some reason they are not all visible in the same server group. The output of the debug servlet config this, if I use "put.jsp" on any on the master nodes, "get.jsp" on another node will see the value but no servers on the slave node will see the value. However, looking at the server group on the master web console will show all six nodes in the group...
Any pointers?
-
6. Re: Clustering + load balance strangeness on WF 10
rhusar May 20, 2016 11:26 AM (in response to nickarls)Ok and while accessing the /debug servlet, you see:
- counter increasing by 1 with every invocation
- session ID stays the same
- members always include all expected members
?