Implementing Mesos and Marathon for BrownField microservices
In this section, the dockerized Brownfield microservices developed in Chapter 14, Containerizing Microservices with Docker, will be deployed into the AWS cloud, and we will manage them with Mesos and Marathon.
For demonstration purposes, we will cover only two services (search and website deployment) in this chapter. Also, we will use one EC2 instance for the sake of simplicity.
Installing Mesos, Marathon, and related components
Launch a t2.large EC2 instance with the Ubuntu 16.04 version AMI, which will be used for this deployment. In this example, we are using another instance to run RabbitMQ; however, this can be done on the same instance as well.
Perform the following steps to install Mesos and Marathon:
- To install Mesos 1.2.0, follow the instructions documented in the following link. This will also install JDK 8:
https://mesos.apache.org/gettingstarted/.
- To install Docker, perform the following steps:
sudo apt-get update sudo...