JBoss EAP 7 undertow front end dynamic load balancing to backend - Issue
helper1000 Apr 12, 2017 10:18 AMI have been facing the following issue setting up undertow dynamic load balancing on my virtual box using centos 7.3 and using redhat eap 7.
Host1=eap-lb.com(It uses host-slave.xml using domain.xml as startup)(host controller)
Host2=eap-master.com(It uses host-master.xml using domain.xml as startup)(dc controller)
Host3=eap-slave1.com(It uses host-slave.xml using domain.xml as startup)(host controller)
Host4=eap-slave2.com(It uses host-slave.xml using domain.xml as startup)(host controller)
Servers
eap-lb.com/load_balancer_server
eap-master.com/
eap-slave1.com/server1_slave1
eap-slave2.com/server1_slave2
Group 1=clustered-group = It uses full-ha profile and full-ha-sockets
Group 2=loadbalancer-group = It uses ha profile and ha-sockets.
Sample application has been deployed to clustered-group, I can access the URL's from each individual host server.
My problem, when I configured the front end load balancer the context which I have been trying is not able to access the application deployed on the back end server group.
Sample URL : http://eap-lb.com:8100/cluster-demo/
Error I get is : 404 - Not Found
In the logs, Number of these appear in all of my server logs.
(UndertowEventHandlerAdapter - 1) MODCLUSTER000042: Error null sending INFO command to
Please could some one advise, what is wrong here.
BTW, the following CLI commands have been executed on the DC controller host.
1. Add a mod_cluster filter to undertow
/profile=ha/subsystem=undertow/configuration=filter/mod-cluster=modcluster:add(management-socket-binding=http,advertise-socket-binding=modcluster,security-key=secret)
2. Enable the desired undertow(virtual)hosts
/profile=ha/subsystem=undertow/server=default-server/host=default-host/filter-ref=modcluster:add
3. Configure advertise key
/profile=full-ha/subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=advertise-security-key,value=secret)
4. Configure the key on the load balancer server
/profile=ha/subsystem=undertow/configuration=filter/mod-cluster=modcluster:write-attribute(name=security-key,value=secret)
5. Cluster members require a proxy to list to knwo which mod_cluster load balancer they send connection parms and application status to.
/socket-binding-group=full-ha-sockets/remote-destination-outbound-socket-binding=lb:add(host=192.168.35.50, port=8080)
/profile=full-ha/subsystem=modcluster/mod-cluster-config=configuration:write-attribute(name=proxies,value=[modcluster])