热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

同一区域内区域之间的AWS延迟

如何解决《同一区域内区域之间的AWS延迟》经验,为你挑选了1个好方法。

我在同一地区有一个EC2RDSUS East(N. Virginia)但是两种资源都在不同的区域中;中的RDS us-east-1a和中的EC2 us-east-1b

现在的问题是,如果我将两个资源放在同一个位置,zone那么它将加快数据到DB或从DB传输的速度吗?我每天从应用程序收到20k-30k的条目到此实例。

编辑

我在这里读到:

每个可用区都是隔离的,但是区域中的可用区通过低延迟链接连接。

现在我想知道它们low-latency links是否很小,还是应该考虑在同一区域中转移资源以加快数据传输速度?

结论

如答案和评论中所述:

由于我只有EC2and的一个实例,因此RDSa中一项服务的失败zone将影响整个系统。因此,将它们放在单独的区域中没有任何优势。

即使zones连接在一起,low-latency links但仍然存在一些延迟,在我的情况下可以忽略不计

在不同区域之间以及在不同区域中也有每GB 0.01 USD的次要数据传输费用。EC2RDS

John Hanley.. 7

What are typical values for Interzone data transfers in the same region?

Although AWS will not guarantee, state, or otherwise commit to hard numbers, typical measurments are sub 10 ms, with numbers around 3 ms is what I have seen.

How does latency affect data transfer throughput?

The higher the latency the lower the maximum bandwidth. There are a number of factors to consider here. An excellent paper was written by Brad Hedlund.

Should I worry about latency in AWS networks between zones in the same region?

Unless you are using the latest instances with very high performance network adapters (10 Gb or higher) I would not worry about it. The benefits of fault tolerance should take precendence except for the most specialized cases.

For your use case, database transactions, the difference between 1 ms and 10 ms will have minimal impact, if at all, on your transaction performance.

However, unless you are using multiple EC2 instances in multiple zones, you want your single EC2 instance in the same zone as RDS. If you are in two zones, the failure of either zone brings down your configuration.

在某些情况下,延迟和网络带宽非常重要。对于这种特殊情况,AWS提供了放置组,因此EC2实例基本上在同一机架中并排在一起,以将延迟最小化到绝对最小。



1> John Hanley..:

What are typical values for Interzone data transfers in the same region?

Although AWS will not guarantee, state, or otherwise commit to hard numbers, typical measurments are sub 10 ms, with numbers around 3 ms is what I have seen.

How does latency affect data transfer throughput?

The higher the latency the lower the maximum bandwidth. There are a number of factors to consider here. An excellent paper was written by Brad Hedlund.

Should I worry about latency in AWS networks between zones in the same region?

Unless you are using the latest instances with very high performance network adapters (10 Gb or higher) I would not worry about it. The benefits of fault tolerance should take precendence except for the most specialized cases.

For your use case, database transactions, the difference between 1 ms and 10 ms will have minimal impact, if at all, on your transaction performance.

However, unless you are using multiple EC2 instances in multiple zones, you want your single EC2 instance in the same zone as RDS. If you are in two zones, the failure of either zone brings down your configuration.

在某些情况下,延迟和网络带宽非常重要。对于这种特殊情况,AWS提供了放置组,因此EC2实例基本上在同一机架中并排在一起,以将延迟最小化到绝对最小。


在不同可用区中的EC2和RDS实例之间,还需要支付每GB 0.01 USD的少量数据传输费用。在这种情况下可能无关紧要,但是值得考虑是否要传输大量数据。参见https://aws.amazon.com/ec2/pricing/on-demand/
@shonkylinuxuser-注意网络价格始终很重要。请注意,此列表中缺少RDS。`在同一AWS区域中的Amazon S3,Amazon Glacier,Amazon DynamoDB,Amazon SES,Amazon SQS,Amazon Kinesis,Amazon ECR,Amazon SNS或Amazon SimpleDB与Amazon EC2实例之间传输的数据是免费的。
推荐阅读
author-avatar
amy
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有