I'm trying to use mesos to build a cluster scales dynamically according to Network loads.
A service discovery mechanism is needed to find those apps deployed by mesos.
There are some tools, but I want to know more about the detail. Does mesos have some api that I could list&find current services and their endpoint (ip:port)? Or I have to write my app that it will push info into some database(sql, zookeeper) to tell others the address it's listening on?
There is a "DiscoveryInfo" message in Mesos. Can I use this to do service discovery?
There is a "DiscoveryInfo" message in Mesos. Can I use this to do service discovery?
Definitely. Information about tasks ip and port could be obtained from /master/state. For example Mesos DNS and mesos-consul works in that way, pooling Mesos for information about tasks and update registry. If you are using Marathon you can use tools that sits on top of the marathon API