Open nickdoikov opened 8 years ago
marathon event bus https://mesosphere.github.io/marathon/docs/event-bus.html marathon-go https://github.com/gambol99/go-marathon
for applications with more than 1 port you will need some sort of opinions with labels to determine which endpoints map to which ports.
in common cases each service used unique ip:port pair even if it runned on same node. If you wand build something different - feel free to use exec discovery or register your services in consul .
There are no profit in more then one port using by same application . If application use more then one port- most of all it used for different needs so it should be exposed via different server.
For future releases we can add mesos/marathon support via their rest api.
https://mesosphere.github.io/marathon/docs/generated/api.html#
api enteryponint - ip/hostname:port api service enterypoint - /v2/apps/[app_id]/tasks
Response:
Body
Type: application/json
Example:
Type: text/plain