Hi All, How are you? I am a bit confused about the errors reported by artemis slave instance (running in clustered mode using jgroups). I might be missing something here so please bear with me.
Deployment details: I am running 2 pods of artemis in master/slave configuration in k8s. It supports NFS v4. I am using jgroups configuration (same file which is supplied in examples of artemis) and I can see that correct pod names and IPs are updated in share directory -------- output from jgroups file ---------------- root@jms-01-deployment-6d7dcb8ccd-2t9g2:/opt# cat /usr/share/artemis-jgroups/active_broadcast_channel/ab62408d-6a7a-4894-9923-2649d8bf3b28.jms-01-deployment-6d7dcb8ccd-2t9g2-29095.list jms-01-deployment-6d7dcb8ccd-2t9g2-29095 ab62408d-6a7a-4894-9923-2649d8bf3b28 192.168.48.154:7800 T jms-01-deployment-6d7dcb8ccd-j7pxl-34353 5b3d099b-8e5f-4dd0-ab43-604ad1ae87c3 192.168.199.2:7800 F -------------------------------------------------------- POD "jms-01-deployment-6d7dcb8ccd-2t9g2" is the master and another is slave. Correct POD ips are listed there. But in log/artemis.log file of slave pod, I see these logs ------------------------------- 2023-03-15 11:29:51,519 ERROR [org.apache.activemq.artemis.core.client] AMQ214016: Failed to create netty connection java.net.UnknownHostException: jms-01-deployment-6d7dcb8ccd-2t9g2 at java.net.InetAddress$CachedAddresses.get(InetAddress.java:797) ~[?:?] at java.net.InetAddress.getAllByName0(InetAddress.java:1524) ~[?:?] at java.net.InetAddress.getAllByName(InetAddress.java:1382) ~[?:?] ----------------------------------- jgroups is correctly creating and updating files. IPs of master/slave pods are visible from each other. I have tested them using command "./artemis check node". Right now I have created deployment objects. Is it necessary to create stateful sets? Am I missing something here? Let me know if you need more information on this. Regards, Prateek Jain -------------------------------------------------------------- EXPECTATION : Causes all troubles...... --------------------------------------------------------------