I am deploying Axon spring boot application on kubernetes cluster(AWS EKS). Two pods are launched and want to scale appliaction. I have added one configuration in sprinboot application -
axon.distributed.enabled=true
and added jgroup-extenstion dependency in class path. after deployment I can see jgroup cluster created.
Pod 1 -
GMS: address=abc-64b857d647-w7nbt-33031, cluster=Axon, physical address=10.134.1.216:7800
-------------------------------------------------------------------
17:47:07.382 INFO org.jgroups.protocols.pbcast.GMS -
abc-64b857d647-w7nbt-33031: no members discovered after 3002 ms: creating cluster as coordinator
17:47:07.391 INFO org.axonframework.extensions.jgroups.commandhandling.JGroupsConnector -
Local segment (abc-64b857d647-w7nbt-33031) joined the cluster. Broadcasting configuration.
17:47:07.391 INFO org.axonframework.extensions.jgroups.commandhandling.JGroupsConnector -
Broadcasting membership from nettingeq-64b857d647-w7nbt-33031
17:47:07.391 INFO org.axonframework.extensions.jgroups.commandhandling.JGroupsConnector -
Sending my configuration to all nodes.
17:47:07.586 INFO com.abc.Application -
Started Application in 36.02 seconds (JVM running for 41.156)
Pod 2 -
GMS: address=abc-64b857d647-xb4hj-27405, cluster=Axon, physical address=10.134.2.66:7800
-------------------------------------------------------------------
17:46:31.436 INFO org.jgroups.protocols.pbcast.GMS -
abc-64b857d647-xb4hj-27405: no members discovered after 3002 ms: creating cluster as coordinator
17:46:31.445 INFO org.axonframework.extensions.jgroups.commandhandling.JGroupsConnector -
Local segment (abc-64b857d647-xb4hj-27405) joined the cluster. Broadcasting configuration.
17:46:31.445 INFO org.axonframework.extensions.jgroups.commandhandling.JGroupsConnector -
Broadcasting membership from nettingeq-64b857d647-xb4hj-27405
17:46:31.445 INFO org.axonframework.extensions.jgroups.commandhandling.JGroupsConnector -
Sending my configuration to all nodes.
17:46:31.632 INFO com.abc.Application -
Started Application in 32.789 seconds (JVM running for 37.135)
Once send any command one node doesn’t know the command is handle by other node.
is there any configuration I need to add so that they can join the jgroup cluster and do gossip?