gpt4 book ai didi

amazon-ec2 - 如何 'warm up' EC2/EBS存储?

转载 作者:行者123 更新时间:2023-12-02 23:54:37 25 4
gpt4 key购买 nike

我看到了“预热”EC2 以克服首次写入惩罚的建议:-

Warm up data partitions - There is one drawback to using disk IO in EC2: a “first write” performance hit when initially writing to new partitions. To avoid this penalty, you can “warm up” the partition by executing a sort of throw-away command that accesses it. For example, you can use the Linux dd command to write to the disk. While the penalty still occurs and cannot be avoided, at least the first write to your databases will not suffer the effects.

来源:http://answers.oreilly.com/topic/1345-getting-the-most-out-of-mysql-in-the-amazon-cloud/

...但我还没有找到任何关于最佳实践的进一步建议! EBS存储也是如此吗?谁能推荐执行此预热的“dd”语法以及如何确保所有 block 都“预热”?

最佳答案

感谢您指向 AWS 论坛。我在此处发布后确实在那里发布了问题,并收到了 Jason@AWS 的回复。线程在这里:-

http://developer.amazonwebservices.com/connect/message.jspa?messageID=198413#198413

...他的回应是:-

There is a first- read penalty for EBS volumes created from snapshots, as the volume is made available before all of the blocks have been successfully loaded. You can negate this penalty by forcing every block on the volume to be read:

$ dd if=/dev/<device> of=/dev/null

关于amazon-ec2 - 如何 'warm up' EC2/EBS存储?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3904678/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com