How to access a web application running on Mesos?

I’m quite new to Mesos, and I’m still trying to wrap my head around its concepts and ideas. So far I think I have understood that basically Mesos tries to abstract away your data center and present it as one big computer.

Using the Mesos + Docker integration it is basically possible to run any application on Mesos, as long as your application can be run from inside a Docker container.

  • Storing submodules for micro services, but still using forks
  • Invoke Docker Remote API using Java
  • Install Docker in Ubuntu 14.04
  • Google gsutil auth without prompt
  • How to mount container-writable host directory?
  • Tomcat 7 fails when starts in Debian, but continue working in background
  • This makes me expect that I can use Mesos to run Node.js applications. This shouldn’t be too hard to set up.

    I get that I need to create a new application, set its instances & co., and then go for it. Mesos then deploys my application and takes care of distributing it over the data center. When asking Mesos for endpoints I can find out the IP addresses / host names and ports that were created.

    But, of course, I want a web application to be available at a specific domain or subdomain, ideally port 80 or 443, also using load-balancing and high-availability. Is there anything built into Mesos that I can use for that?

  • docker-compose up with multiple yml confs does not start off
  • Running docker with boot2docker on mac os x?
  • Kubernetes NFS server is taking 100% cpu
  • Can't create Docker network
  • How to use GC in Docker Registry without accessing container
  • PhantomJS server running in Docker container
  • One Solution collect form web for “How to access a web application running on Mesos?”

    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

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.