dockerinfinispanjgroups

jgroup_bind_addr in Docker container


I am moving one application from server to docker in Azure infra. How to map jgroup_bind_addr for ever changing pod ip?

 <TCP bind_port="${jgroups.bind_port}"
     bind_addr="${jgroups.bind_addr}"
 >

Solution

  • By default, Infinispan images bind to SITE_LOCAL which mean "Picks a site local IP address, e.g. from the 192.168.0.0 or 10.0.0.0 address range"

    In the JGroups Configuration you can check other possible values available for bind_addr. Look for The following special values are also recognized for bind_addr after the table.