Example: I have a service that looks up another service using DNS SVR record, i.e., ServiceOne Looks up MyService _myservice._tcp.marathon.mesos. It communicates with mesos-dns fine… ServiceOne get a list of URIs for myservice, i.e., (myservice-j8bny-s0.marathon.mesos:14353, myservice-abcdef-s0.marathon.mesos:12032).
The issue is I have two port definitions for this service as follows:
Mesos DNS maps marathon apps (called service below as follow).
should also be include
Each port name should be mapped.
Example: I have a service that looks up another service using DNS SVR record, i.e., ServiceOne Looks up MyService
_myservice._tcp.marathon.mesos
. It communicates withmesos-dns
fine… ServiceOne get a list of URIs for myservice, i.e.,(myservice-j8bny-s0.marathon.mesos:14353, myservice-abcdef-s0.marathon.mesos:12032)
.The issue is I have two port definitions for this service as follows:
The problem is that I only want the
eventbus
port but I am gettingeventbus
ports andadmin
ports.i.e,
dig _eventbus._myservice._tcp.marathon.mesos SRV
instead ofdig _myservice._tcp.marathon.mesos SRV
.Currently mesos dns creates
It is unlikely that you would use this for client side service discovery because there is no way to see if the ports are the ones you want.
Currently mesos dns should create
So
should also be include