EC2 Amazon High Availability Always On -


i using web & db instances in aws ec2 , want make them high available, if 1 server fails (primary server), 1 turned on (secondary server).

i have found lots of information rds high availability not ec2 instances not rds.

  1. could please provide me links guide of how doing it?
  2. could please tell me in words process should in order achive high availability?

thanks.

the question should ask - how make application ha on aws, not how make ec2 ha. , short answer must tell aws how define , deploy application first.

in case of rds, abundantly clear application - database server of choice. @ basic, aws can setup ha instance of rds default settings without input you.

however, in case of application, need give aws more details. there several ways this:

  • create elb bunch of ec2 instances in different availability zones
  • create elb auto-scaling group lead down path of creating ami , launch configuration; in mode, can tell asg use elb health check determine when ec2 instance no longer healthy
  • you didn't mention application is, might want codedeploy involved tell aws how deploy latest code newly spun ec2 instance; codedeploy works in tandem elb , asg
  • instead of defining above components individually, define them in elastic beanstalk; determination you'll have make on own - want more flexibility defining individual components on own, should simplify things , use eb?
  • lastly, if use docker , can dockerize applications or different components of same application, aws supports eb multi-container docker

whichever route decide, aws cloudformation templates way tie , define stack. 1 advantage of whenever need make change in stack, you'll change cloudformation template, apply change , let aws figure out dependencies are, order update them , how.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -