Deploying and configuring a Mesos cluster using Cloudformation
In this module, we will discuss how we can use Cloudformation scripts to launch a Mesos cluster on Amazon AWS. Before jumping into it, first make sure you install and configure aws-cli on the machines where you want to launch the cluster. Take a look at the instructions from the following repository to set up aws-cli:
https://github.com/aws/aws-cli.
The next thing that we need after setting up aws-cli is the cloudformation-zookeeper
template for an exhibitor-managed ZooKeeper cluster.
Setting up cloudformation-zookeeper
We first need to clone the following repository as it contains the JSON file that has the parameters, descriptors, and configuration values:
$ git clone https://github.com/mbabineau/cloudformation-zookeeper
Log in to the AWS console and open up the following ports for security group:
SSH Port: 22
ZooKeeper Client Port: 2181
Exhibitor HTTP Port: 8181
We can now use aws-cli
to launch the cluster using the following command...