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.

  • host to docker directory mount error
  • NodeJS in Docker - cannot access node_modules
  • How to expose Spark Driver behind dockerized Apache Zeppelin?
  • ImagePullBackOff: Kubernetes error with Nexus based Private Registry
  • Docker guidance / speeding up builds by separating concerns
  • Docker - wordpress deployed on Digital Ocean Droplet - where is the wp-content?
  • 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 MongoDB : UserNotFound
  • consult a suggestion about modify docker daemon labels
  • login password required to access jupyter notebook running in nvidia-docker container
  • How to check the configuration of Docker (volume, devicemapper, ..) after deleting many files ?
  • Which way is faster when access a service in docker container?
  • Crypt32.dll not found for awssdk in .net core running in docker
  • 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.