Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1.15 KB

Ondemand4Worker.md

File metadata and controls

47 lines (30 loc) · 1.15 KB

Using on-demand instance as worker nodes

Prerequisite

Playbook

1. Prepare enviroment

# setup variables
cd ecs-mesh-workshop/bin;
# modify environments in ./bashrc.ext
source ./bashrc.ext

# quick deployment, setup infrastructure & standup ECS cluster with on-demand instance
./install_all.sh

2. Observe information of relevant instances

# using aws-cli / ec2 console: 4 normal 
aws ec2 describe-instances \
    --filters Name=instance-state-name,Values=running Name=tag:Member,Values=appserver-of-AutoScalingGroup  \
    --output json \
    | jq '.Reservations[].Instances[].LaunchTime, .Reservations[].Instances[].InstanceLifecycle, .Reservations[].Instances[].InstanceType' \
    | paste - - - -

3. Clean-up

# delete all stacks in CloudFormation
cd ecs-mesh-workshop/bin
./clean_up.sh