[英]How to auto launch an EC2 instance to another availability zone in AWS?
I'm newbie to AWS. 我是AWS的新手。 I have an EC2 Windows instance where my server is running in one availability zone of a region.
我有一个EC2 Windows实例,其中我的服务器在一个区域的一个可用区中运行。
My need is reliability of the instance if region/availability zone goes down. 我需要的是区域/可用性区域下降时实例的可靠性。 I know that snapshots or AMIs are a way of taking backup.
我知道快照或AMI是进行备份的一种方式。 Replication of instance to multiple availability zones also possible.
也可以将实例复制到多个可用性区域。
My Question? 我的问题?
1) what is the probability of an instance or region goes down? 1)实例或区域出现故障的概率是多少?
2) Is there any way to auto launch of a running instance to another availability zone or to another region if the availability zone or region of my instance goes down? 2)如果我的实例的可用区或区域出现故障,是否可以将正在运行的实例自动启动到另一个可用区或另一个区域?
3) Better way for reliability of instance? 3)更好的实例可靠性方法?
All possible suggestions are welcome. 欢迎所有可能的建议。 Thanks In Advance.
提前致谢。
It's always possible for an instance or an availability zone to become "unavailable". 实例或可用性区域始终有可能变为“不可用”。 The mantra for the cloud is "everything will fail, plan for it".
云计算的口号是“一切都会失败,为此做好计划”。
Don't wait for your instance to become unavailable. 不要等待您的实例不可用。 Depending on the reason for the unavailability, you may not be able to launch a replacement instance in the same region.
根据不可用的原因,您可能无法在同一区域中启动替换实例。
At the very least, make sure you have an AMI image of your EC2 instance ready in case your EC2 instance fails or becomes unavailable. 至少,请确保已准备好EC2实例的AMI映像,以防EC2实例出现故障或变得不可用。 This allows you to launch a fresh replacement instance.
这使您可以启动新的替换实例。 However, any data that was saved to the original EC2 instance after the AMI image was created would not be present on the fresh instance.
但是,创建AMI映像后保存到原始EC2实例的任何数据都不会出现在新实例上。
For reliability, you should run multiple EC2 instances in multiple availability zones behind a load balancer (ELB or similar). 为了提高可靠性,您应该在负载均衡器(ELB或类似产品)后面的多个可用性区域中运行多个EC2实例。
For extra reliability, you could run your application in multiple regions and use Route53 health checks with failovers to move traffic away from the problem region. 为了获得更高的可靠性,您可以在多个区域中运行您的应用程序,并使用具有故障转移功能的Route53运行状况检查将流量从问题区域移开。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.