Load Balance Application Traffic with Marathon-LB in DC/OS

Intermediate

16 students completed the lab in ~42m

Total available time: 1h:10m

Be the first to rate this lab!

Lab Overview

Marathon-LB is a reverse proxy load balancer for Marathon applications. Marathon-LB supports TCP, HTTP, and HTTPS protocols and automatically updates its configuration in real-time as you add and remove applications from the cluster. Marathon-LB can be used as a public-facing load balancer running on public agents to allow ingress traffic into the cluster or as an internal load balancer. Load balance application traffic with Marathon-LB in DC/OS and keep traffic flowing by performing a zero downtime blue/green deployment in this Lab.

Lab Objectives

Upon completion of this Lab you will be able to:

  • Deploy Marathon-LB in a DC/OS Cluster
  • Deploy Applications load balanced by Marathon-LB
  • Perform zero downtime blue/green deployments with Marathon-LB

Lab Prerequisites

You should be familiar with:

  • Basic DC/OS concepts including master nodes, agents, services, tasks, and Marathon
  • Working at the command-line in Linux
  • AWS services to optionally understand the architecture of the pre-created DC/OS cluster

Lab Environment

Before completing the Lab instructions, the environment will look as follows:

After completing the Lab instructions, the environment should look similar to:

Follow these steps to learn by building helpful cloud resources

Logging in to the Amazon Web Services Console

Your first step to start the Lab experience

Understanding the DC/OS Cluster Architecture

Understand the cluster architecture and the resources provisioned for this Lab

Connecting to the Virtual Machine using SSH

Create a secure connection to a remote machine

Installing the DC/OS CLI on Linux

Install the DC/OS command-line interface (CLI) on Linux.

Deploying Marathon-LB from the DC/OS GUI

Deploy the Marathon-LB package using the DC/OS GUI

Configuring a Marathon Application to Work with Marathon-LB

Set appropriate labels in the Marathon application definition to leverage Marathon-LB

Performing a Blue/Green Deployment with Marathon-LB

Use special application labels and perform a zero downtime deployment