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, ...
Setting up the Marathon
Get Learn Apache Mesos now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.