Implementing Mesos and Marathon for BrownField microservices
In this section, the dockerized Brownfield microservice developed in Chapter 8, Containerizing Microservices with Docker, will be deployed into the AWS cloud and managed with Mesos and Marathon.
For the purposes of demonstration, only three of the services (Search, Search API Gateway, and Website) are covered in the explanations:
The logical architecture of the target state implementation is shown in the preceding diagram. The implementation uses multiple Mesos slaves to execute dockerized microservices with a single Mesos master. The Marathon scheduler component is used to schedule dockerized microservices. Dockerized microservices are hosted on the Docker Hub registry. Dockerized microservices are implemented using Spring Boot and Spring Cloud.
The following diagram shows the physical deployment architecture:
As shown in the preceding diagram, in this example, we will use four EC2 instances:
- EC2-M1: This hosts the Mesos master, ZooKeeper...