On Mon, Apr 30, 2018 at 11:13:13AM +0200, Aleksandar Sosic wrote:
We have a scalable dockerized environment and it's difficult to configure DMQ having dynamic IPs, instances booting up and scaling down on demand.
A DNS alias that resolves to multiple entries is a great way to do that:
https://kamailio.org/docs/modules/5.1.x/modules/dmq.html#dmq.p.notification_... https://kamailio.org/docs/modules/5.1.x/modules/dmq.html#dmq.p.multi_notify
although it'd be great if DMQ could exclude the local host from those notification peers automatically, so that one didn't have to set up multiple, exclusionary DNS entries for specific instances. Who knows, maybe it can.
But in principle, such DNS records can be tied to the internal DNS resolution of a container discovery mechanism, be it Docker's internal mechanism or something more like Consul.
-- Alex