简体   繁体   English

如何自动将EC2实例启动到AWS中的另一个可用性区域?

[英]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.

相关问题 如何实现EC2高可用性,同时希望将实例启动到特定的可用区中 - How to achieve EC2 high availability while preferring the instance launch into a specific Availability Zone AWS EC2现货市场-在特定可用区上运行实例 - AWS EC2 spot market - run instance on a particular Availability Zone 如何在aws中使用php获取EC2实例可用区和id? - How to get EC2 instance availability zone and id using php in aws? 如何在 AWS Java 上为访问的 EC2 对象设置可用区 - How to set availability zone for accessed EC2 object on AWS Java 如何将 AWS EFS 与 EC2 挂载到不同的可用区? - How to mount the AWS EFS with EC2 on different availability zone? 在 Auto Scaling 组中,确保在给定的可用区中至少有一个 ec2 实例始终可用 - In an auto scaling group make sure atleast one ec2 instance is always available in a given availability zone AWS EC2 Spot 实例可用性 - AWS EC2 spot instance availability 在同一可用区中的自动伸缩组中启动EC2实例 - Launch EC2 Instances in autoscaling group in the same availability zone 从 EC2 实例以编程方式确定可用区 - Determine availability zone programmatically from EC2 instance 在本地运行时如何在AWS EC2实例上启动工作程序? - How to launch workers on AWS EC2 instance when running locally?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM