Wildfly 10 doesn't form a cluster in domain mode
evilblonde Dec 13, 2018 4:36 AMHello. I'm trying to set up an application which is a Singleton EJB bean on a Wildfly cluster, but it doesn't start as I want it to - both nodes act as a singleton provider. Server works in domain mode, with host.xml (on slave) configured to connect to master node (master: 192.168.0.5, slave:192.168.0.10) like this:
<domain-controller>
<remote protocol="http-remoting" host="192.168.0.5" port="9990" username="slave" security-realm="ManagementRealm"/>
</domain-controller>
Here are startup logs from both nodes:
Master (idb_analytics_a):
018-12-12 12:21:33,800 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-2) ISPN000078: Starting JGroups channel web
2018-12-12 12:21:33,803 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000078: Starting JGroups channel server
2018-12-12 12:21:33,803 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-7) ISPN000078: Starting JGroups channel hibernate
2018-12-12 12:21:33,810 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-4) ISPN000078: Starting JGroups channel ejb
2018-12-12 12:21:33,814 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-7) ISPN000094: Received new cluster view for channel hibernate: [idb_analytics_a:idb_analytics_a|0] (1) [idb_analytics_a:idb_analytics_a]
2018-12-12 12:21:33,814 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-4) ISPN000094: Received new cluster view for channel ejb: [idb_analytics_a:idb_analytics_a|0] (1) [idb_analytics_a:idb_analytics_a]
2018-12-12 12:21:33,814 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000094: Received new cluster view for channel server: [idb_analytics_a:idb_analytics_a|0] (1) [idb_analytics_a:idb_analytics_a]
2018-12-12 12:21:33,815 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-2) ISPN000094: Received new cluster view for channel web: [idb_analytics_a:idb_analytics_a|0] (1) [idb_analytics_a:idb_analytics_a]
2018-12-12 12:21:33,818 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-4) ISPN000079: Channel ejb local address is idb_analytics_a:idb_analytics_a, physical addresses are [127.0.0.1:55200]
2018-12-12 12:21:33,822 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-7) ISPN000079: Channel hibernate local address is idb_analytics_a:idb_analytics_a, physical addresses are [127.0.0.1:55200]
2018-12-12 12:21:33,822 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000079: Channel server local address is idb_analytics_a:idb_analytics_a, physical addresses are [127.0.0.1:55200]
2018-12-12 12:21:33,823 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-2) ISPN000079: Channel web local address is idb_analytics_a:idb_analytics_a, physical addresses are [127.0.0.1:55200]
2018-12-12 12:21:33,825 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-4) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.4.Final
2018-12-12 12:21:33,840 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 71) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:33,840 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 71) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:33,840 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 72) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:33,841 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 72) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:33,846 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 75) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:33,846 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 75) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:34,008 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 70) WFLYCLINF0002: Started default cache from server container
2018-12-12 12:21:34,039 INFO [org.wildfly.clustering.server] (notification-thread--p1-t1) WFLYCLSV0003: idb_analytics_a:idb_analytics_a elected as the singleton provider of the jboss.deployment.unit."analyticsEAR-0.1.4.ear".FIRST_MODULE_USE service
2018-12-12 12:21:34,054 INFO [org.wildfly.clustering.server] (notification-thread--p1-t1) WFLYCLSV0001: This node will now operate as the singleton provider of the jboss.deployment.unit."analyticsEAR-0.1.4.ear".FIRST_MODULE_USE service
Slave(idb_analytics_b)
2018-12-12 12:21:40,159 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-7) ISPN000078: Starting JGroups channel hibernate
2018-12-12 12:21:40,160 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-5) ISPN000078: Starting JGroups channel web
2018-12-12 12:21:40,161 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-8) ISPN000078: Starting JGroups channel ejb
2018-12-12 12:21:40,161 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000078: Starting JGroups channel server
2018-12-12 12:21:40,172 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-7) ISPN000094: Received new cluster view for channel hibernate: [idb_analytics_b:idb_analytics_b|0] (1) [idb_analytics_b:idb_analytics_b]
2018-12-12 12:21:40,173 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-8) ISPN000094: Received new cluster view for channel ejb: [idb_analytics_b:idb_analytics_b|0] (1) [idb_analytics_b:idb_analytics_b]
2018-12-12 12:21:40,174 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-5) ISPN000094: Received new cluster view for channel web: [idb_analytics_b:idb_analytics_b|0] (1) [idb_analytics_b:idb_analytics_b]
2018-12-12 12:21:40,174 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000094: Received new cluster view for channel server: [idb_analytics_b:idb_analytics_b|0] (1) [idb_analytics_b:idb_analytics_b]
2018-12-12 12:21:40,177 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-5) ISPN000079: Channel web local address is idb_analytics_b:idb_analytics_b, physical addresses are [127.0.0.1:55200]
2018-12-12 12:21:40,180 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-1) ISPN000079: Channel server local address is idb_analytics_b:idb_analytics_b, physical addresses are [127.0.0.1:55200]
2018-12-12 12:21:40,180 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-8) ISPN000079: Channel ejb local address is idb_analytics_b:idb_analytics_b, physical addresses are [127.0.0.1:55200]
2018-12-12 12:21:40,180 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (MSC service thread 1-7) ISPN000079: Channel hibernate local address is idb_analytics_b:idb_analytics_b, physical addresses are [127.0.0.1:55200]
2018-12-12 12:21:40,183 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-8) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.4.Final
2018-12-12 12:21:40,205 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 72) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:40,206 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 72) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:40,207 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 68) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:40,207 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 75) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:40,207 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 68) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:40,207 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 75) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
2018-12-12 12:21:40,388 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 71) WFLYCLINF0002: Started default cache from server container
2018-12-12 12:21:40,425 INFO [org.wildfly.clustering.server] (notification-thread--p3-t1) WFLYCLSV0003: idb_analytics_b:idb_analytics_b elected as the singleton provider of the jboss.deployment.unit."analyticsEAR-0.1.4.ear".FIRST_MODULE_USE service
2018-12-12 12:21:40,440 INFO [org.wildfly.clustering.server] (notification-thread--p3-t1) WFLYCLSV0001: This node will now operate as the singleton provider of the jboss.deployment.unit."analyticsEAR-0.1.4.ear".FIRST_MODULE_USE service
Both servers are in a group:
This server group uses full-ha profile and full-ha-socketbindings.
All interfaces are reconfigured in host.xml file on each node. (127.0.0.1 default address changed to host ip address).
Here are the questions:
1) How do I make them work as intended?
2) Why JGroups physical addresses are 127.0.0.1 in both logs even when jroups-udp uses private interface, which refers to different IP?
I can give any extra logs/configs if it can help.
Thank you.