Setting up the Marathon

Now, let's set up the same for Marathon. Go to the EC2 dashboard and create the load balancer by clicking on Create Load Balancer | Create. The name will be lb-marathon; otherwise, everything remains the same. On the Configure Security Groups page, select Create a new security group, and the security group name will be lb-marathon. We will use the same 80 port from Anywhere. Next, on the Configure Routing page, we need to select New target group and, for the Target group field, the name will be marathon-targetgroup, Protocol will be HTTP, the Port will be 8080, and Target type is instance. You can manipulate the setting as per your requirement. So, it will quickly detect the unhealthy node and it will remove it. Next, ...

Get Learn Apache Mesos now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.