Have a look at HAProxy (load balancer), the application might run on any node and in case of failure it will be migrated to another node (and we need to update IP address of our app). From Marathon framework (sort of init.d for Mesos) we can get current IP address and port and update HAProxy config.
Here is a sample project: https://github.com/riywo/sample-fluentd-on-mesos-docker