Why does PING discovery fail *but* MPING works? #636
Replies: 2 comments 4 replies
-
Let's close this. Turns out with the benefit of max'd out logging the group is correctly forming regardless of udp or tcp. However in the udp option my Infinispan caches look to have issues staying up-to-date, the log contains messages along the lines of:
That's from srv-kcdoc-1. Guessing(?) the way MPING is asymmetric (link) and transitions from multicast over to TCP/unicast is what's making the difference on my network. |
Beta Was this translation helpful? Give feedback.
-
If multicast doesn't work at all then MPING won't work. So you're basically just getting lucky if it happens to work correctly for MPING some of the time. But will most likely not work correctly other times. |
Beta Was this translation helpful? Give feedback.
-
I have a situation that's not making much sense (to me anyway). I'm setting up a vanilla Keycloak cluster on a set of machines (not containers...KC 18.0.1 in Quarkus JVM mode, not using Wildfly). When attempting to get the Infinispan cache running the UDP option does not work...OK, I figure no multicasting allowed (that's what IT says). But on a lark I attempted the "cache-stack=tcp" option from the Keycloak manual (as I read it this still relies on multicast for discovery) and the group is formed and Infinispan is happy. The "why does this work?" is killing me. Keycloak looks to be pulling its Infinispan setup from here (link); the very obvious difference between the -udp and -tcp options (besides tcp and udp, etc.) is the discovery protocols. And since that seems to be where this is failing I figure it's got to be that.
I really want to stick with the nice "automatic" discovery of a network-based option rather than moving to JDBC_PING, but before I feel safe doing that I need to understand this. Can anyone offer some thoughts or perspective on what might be happening? TIA!
Quick note: the KC/Infinispan distribution does appear to be using JGroups 4.2 rather than 5.2 as linked above. Sorry.
Beta Was this translation helpful? Give feedback.
All reactions