如何“热身” EC2/EBS存储?
我看到过“预热”EC2 以克服首次写入惩罚的建议:-
预热数据分区 - 有一个 在 EC2 中使用磁盘 IO 的缺点: “首次写入”性能受到影响时 最初写入新分区。 为了避免这种惩罚,您可以“温暖 通过执行排序来向上”分区 访问的一次性命令 它。例如,您可以使用Linux dd 命令写入磁盘。尽管 处罚仍然发生并且不能 避免,至少第一次写入 您的数据库不会受到 效果。
来源:http: //answers.oreilly.com/topic/1345-getting-the-most-out-of-mysql-in-the-amazon-cloud/
...但我还没有找到任何关于最佳的进一步建议实践! EBS存储也是如此吗?任何人都可以推荐将执行此预热的“dd”语法以及如何确保所有块都“预热”吗?
I have seen advice to 'warm up' EC2 to overcome a first write penalty:-
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.
Source: http://answers.oreilly.com/topic/1345-getting-the-most-out-of-mysql-in-the-amazon-cloud/
...but I haven't found any further advice on best practice! Is this true of EBS storage? Can anyone recommend the 'dd' syntax that will perform this warmup and how to ensure that all blocks are 'warmed'?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
感谢您指向 AWS 论坛。我在此处发布后确实在那里发布了问题,并收到了 Jason@AWS 的回复。该线程在这里:-
http://developer.amazonwebservices.com/connect /message.jspa?messageID=198413#198413
...他的回应是:-
Thanks for the pointer to AWS forum. I did post the question there after posting here, and received a response from Jason@AWS. The thread is here:-
http://developer.amazonwebservices.com/connect/message.jspa?messageID=198413#198413
...and his response was:-
http://docs.aws.amazon.com/AWSEC2/latest /UserGuide/ebs-prewarm.html表示可以通过读取整个磁盘来预热快照卷;这可以加快读取速度。快照和非快照卷可以通过写入整个磁盘来预热写入。
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-prewarm.html indicates that snapshot volumes can be prewarmed by reading the entire disk; this speeds up reads. Snapshot and non-snapshot volumes can prewarm writes by writing the entire disk.