-
1. Re: Is Dynamic Server discovery possible with static tcp connectors.
jbertram Nov 30, 2018 10:07 AM (in response to t.harris)Since you mention TCPPING I assume you've configured HornetQ to use JGroups for clustering rather than either of the built-in mechanisms (UDP multicast or static TCP). We added support for JGroups specifically for cloud and cloud-like use-cases as it has support for all kinds of environments. I believe you can configure something like KUBE_PING to do discovery in a Kubernetes environment. That said, this is really a JGroups question which you should ask on the JGroups forum.
-
2. Re: Is Dynamic Server discovery possible with static tcp connectors.
t.harris Dec 11, 2018 7:30 AM (in response to t.harris)Ok, Leaving JGroups aside, if I was using static TCP and the live or backup restarted and bound to an different IP (dynamic) then I suppose the live/backup communication pairing will break..? as the IPs are not really static. I kinda hoped if I used a service name that they would some how re-resolve and sync up again.... apparently not. :-(
-
3. Re: Is Dynamic Server discovery possible with static tcp connectors.
jbertram Dec 11, 2018 9:27 AM (in response to t.harris)1 of 1 people found this helpfulOk, Leaving JGroups aside, if I was using static TCP and the live or backup restarted and bound to an different IP (dynamic) then I suppose the live/backup communication pairing will break..?
In general, yes, it would break. However, if you used hostnames in your configuration and had a service which automatically mapped the new IP address to the hostname then it would work.
I kinda hoped if I used a service name that they would some how re-resolve and sync up again.... apparently not. :-(
I believe you can get what you want by using JGroups and one of their cloud discovery mechanisms (e.g. KUBE_PING which I mentioned previously).