Hi,
I have followed Developer Interview (#DI 11) - Stuart Douglas (@stuartwdouglas) about WildFly9 and Undertow - YouTube Stuart Douglas Video and was able to set up wildfly as a load balancer using undertow and mod cluster
But this works well when all the backend servers on same host (IP).
I am trying something like
Host 1 - load balancer which says Undertow starts mod_cluster proxy advertisements on /224.0.0.251:23364 with frequency 10000 ms
Host 2 - backend1 which says [org.jboss.modcluster] (ServerService Thread Pool -- 58) MODCLUSTER000032: Listening to proxy advertisements on /224.0.0.251:23364
Host 3 - backend2 which says [org.jboss.modcluster] (ServerService Thread Pool -- 58) MODCLUSTER000032: Listening to proxy advertisements on /224.0.0.251:23364
This setting works well when all of them are on same host . Please guide me if its possible to user undertow modcluster as loadbalancer when all of the servers on different hosts
Yes - this should work fine. Make sure that the interface on which your mod_cluster advertisement socket-binding listens is route-able to your undertow load balancer.