In the previous lab we've configured a cluster with small # of DC/OS instances. In this lab we will increase the # of nodes on one of the cloud providers (Azure) to simulate bursting and expanding capacity to the cloud
Change the number of remote nodes in the desired cluster profile.
- Open your
desired_cluster_profile.tfvars
- Change the following variables
-
aws_group_{n}_private_agent_az from 1 to 3 (per zone)
-
number of aws_group_{n}_public_agent_az from 1 to 3
-
num_of_azure_private_agents from 1 to 5
At the end of your change it should look like this:
dcos_version = "1.12.1"
num_of_masters = "1"
aws_region = "us-east-1"
aws_master_instance_type = "m4.xlarge"
aws_agent_instance_type = "m4.xlarge"
aws_public_agent_instance_type = "m4.xlarge"
aws_private_agent_instance_type = "m4.xlarge"
aws_bootstrap_instance_type = "m4.xlarge"
# ---- Private Agents Zone / Instance
aws_group_1_private_agent_az = "a"
aws_group_2_private_agent_az = "b"
aws_group_3_private_agent_az = "c"
num_of_private_agent_group_1 = "3"
num_of_private_agent_group_2 = "3"
num_of_private_agent_group_3 = "3"
# ---- Public Agents Zone / Instance
aws_group_1_public_agent_az = "a"
aws_group_2_public_agent_az = "b"
aws_group_3_public_agent_az = "c"
num_of_public_agent_group_1 = "0"
num_of_public_agent_group_2 = "0"
num_of_public_agent_group_3 = "1"
# ----- Remote Region Below
azure_region = "UK South"
num_of_azure_private_agents = "5"
num_of_azure_public_agents = "1"
azure_public_agent_instance_type = "Standard_D3_v2"
azure_agent_instance_type = "Standard_D3_v2"
azure_bootstrap_instance_type = "Standard_D3_v2"
# ----- DCOS Config Below
dcos_cluster_name = "Hybrid-Cloud"
aws_profile = "110465657741_Mesosphere-PowerUser"
dcos_license_key_contents = "<INSERT_LICENSE_HERE>"
ssh_pub_key = "<INSERT_SSH_PUB_KEY>"
- Save the file and now you can burst out by performing the
terraform apply <args>
below:
terraform apply -var-file desired_cluster_profile.tfvars
- LAB1 - Deploying AWS Using Terraform
- LAB2 - Bursting from AWS to Azure (current)
- LAB3 - Deploying and Migrating Stateless App from AWS to Azure
- LAB4 - Deploying Cassandra Multi DataCenter