作者:amy | 来源:互联网 | 2022-11-21 13:19
我在同一地区有一个EC2
和RDS
,US East(N. Virginia)
但是两种资源都在不同的区域中;中的RDS us-east-1a
和中的EC2 us-east-1b
。
现在的问题是,如果我将两个资源放在同一个位置,zone
那么它将加快数据到DB或从DB传输的速度吗?我每天从应用程序收到20k-30k的条目到此实例。
编辑
我在这里读到:
每个可用区都是隔离的,但是区域中的可用区通过低延迟链接连接。
现在我想知道它们low-latency links
是否很小,还是应该考虑在同一区域中转移资源以加快数据传输速度?
结论
如答案和评论中所述:
由于我只有EC2
and的一个实例,因此RDS
a中一项服务的失败zone
将影响整个系统。因此,将它们放在单独的区域中没有任何优势。
即使zones
连接在一起,low-latency links
但仍然存在一些延迟,在我的情况下可以忽略不计。
在不同区域之间以及在不同区域中也有每GB 0.01 USD的次要数据传输费用。EC2
RDS
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实例之间传输的数据是免费的。