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.

  • jenkins job triggering downstram job with paramenters not working
  • Wifi stopped working after docker installation on Linux
  • docker mongodb replication on same server
  • Creating HazelCast cluster running on multiple docker containers
  • Mongo replica node with docker
  • Cannot start service php-fpm: invalid header field value "oci runtime error: container_linux.go:247: starting container
  • 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 crash test with many containers of the same image
  • How to access my local system Postgres from Docker
  • Installing docker on Ubuntu 16.10
  • Why is Titan throwing java.lang.IllegalArgumentException?
  • Automating docker commit and push
  • Docker-in-Docker with Gitlab Shared runner for building and pushing docker images to registry
  • 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:

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