Giter VIP home page Giter VIP logo

arc-zonal-shift-demo's Introduction

Application Recovery Controller Zonal Shift Demo

This repo provides a demonstration template which you can use to explore ARC's zonal shift.

It creates:

  • a 3-AZ Network Load Balancer, with cross-zone load balancing disabled, in a 3-AZ VPC
  • an autoscaling group, which creates 2x hosts per AZ, each of which runs the Apache web server, serving a 1MB file
  • 1x CloudWatch Synthetics canaries, polling the file via the regional ELB, recording latency
  • 3x CloudWatch Synthetics canaries, polling the file via the ELB's zonal endpoints and recording latency
  • A CloudWatch dashboard which displays the performance as seen by customers, and via each AZ.
  • 2x Fault Injection Simulator experiments, one of which breaks one AZ completely by disabling Apaache and another which temporarily injects packet loss in one AZ.

These can be used as examples to create both hard and grey failures and use ELB health checks or Zonal Shift to recover from them.

How to deploy the template

Use the command below, but swap in a valid email address

% aws cloudformation create-stack
--region $REGION
--stack-name arc-zonal-shift-demo
--template-body file://ARC-Zonal-Shift-Demo.json
--capabilities CAPABILITY_NAMED_IAM
--parameters 'ParameterKey=OperatorEMail,ParameterValue=$EMAIL'

How to start an experiment

First list the experiment templates available...

% aws fis list-experiment-templates

Identify the experiment you wish to start (e.g. PacketLossOnInstancesIn-AZ-B), then use the experiment ID:

% aws fis start-experiment --experiment-template-id EXT4FjG6mLPaErxG

How to perform a zonal shift

Fill in the ARN and AZ you want to shift away from below.

% aws arc-zonal-shift start-zonal-shift
--away-from apse2-az1
--expires-in 30m
--resource-identifier "arn:aws:elasticloadbalancing:ap-southeast-2:123456789012:loadbalancer/net/zonal-shift-demo/xxxxxxxxxxxxxxxx"
--comment "shift away from AZ B"

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

arc-zonal-shift-demo's People

Contributors

amazon-auto avatar mshiriv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.