使用亚马逊云服务器/应用程序/工具进行编程的经验和技巧?
我们正在研究开发一种使用亚马逊云工具(EC2、SQS 等)的产品,我很好奇使用这些技术的人有哪些技巧/陷阱/指示。
请给每个帖子一个提示/任何内容。
We're looking into developing a product that would use Amazon's cloud tools (EC2, SQS, etc), and I'm curious what tips/gotchas/pointers people that have used these technologies have.
One tip/whatever per post, please.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
Mozilla 的 Elasticfox 插件使执行许多 EC2 操作变得更加容易。 可以在以下位置找到它:适用于 Amazon EC2 的 Elasticfox Firefox 扩展。 此页面包含专门用于下载 Elasticfox 插件以及相关 Sourceforge 项目的链接。 非常值得使用...
The Elasticfox plug-in for Mozilla makes doing a lot of the EC2 stuff easier. It can be found at: Elasticfox Firefox Extension for Amazon EC2. This page has links specifically to download the Elasticfox plug-in and also the associated Sourceforge project. Well worth using...
在 Right Scale 获取开发者帐户。 它是免费的,对于那些讨厌记住那些愚蠢的命令和论点的人来说,这是天赐之物。 如果您只求助于亚马逊提供的工具,那么您就是在放弃自己的人权。
Get a developer account at Right Scale. It's free and a god-send for a guy who hates remembering those dumb commands and arguments. If you only resort to Amazon-supplied tools, you're throwing away your human rights.
我们对我工作的 EC2 感兴趣。 我们不关心网络服务或企业的东西,只关心使用Python进行大量的物理数字运算。 EC2 的东西让我很困惑,大多数文档都面向业务应用程序并使用 C# 或 Java,但是这张幻灯片对我来说澄清了很多,特别是使用 python: http://www.datawrangling.com/pycon-2008-elasticwulf-slides
We're interested in EC2 where i work. We don't care about web-serving or enterprisey stuff, just massive number crunching for physics, using python. This EC2 stuff had me befuddled, with most documentation oriented toward businessy applications and using C# or Java, but this slide show clarified much for me, especially for using python: http://www.datawrangling.com/pycon-2008-elasticwulf-slides
至于SimpleDB,它的查询语言非常有限,而且限制性很大。 如果您计划进行大量复杂的查询,则必须首先坐下来思考如何组织数据以使这些查询成为可能。 缺少但可能会添加的一件事是对给定查询的结果进行计数的能力,就像 SQL 的 COUNT 一样。
性能还可以,但我认为延迟可能有点高。
As for SimpleDB, it has a very limited query language and it is very restrictive. If you planning on having lot of complex queries, you must first sit down and think how to organize your data to make those queries possible. One thing missing, but that will probably will be added, is the ability to count the results of a given query, much like SQL's COUNT.
Performance is ok, but I consider the latency maybe a little high.
需要掌握的一个重要概念:EC2 实例在运行时所依赖的文件系统不是持久性的。有一些可用的工具/服务可让您挂载由 S3 存储支持的文件系统,或者您可以上传到来自实例的 S3 或其他存储服务,但当实例关闭时,关联的文件系统就不再存在。
至于工具,我发现亚马逊的工具很棒,但如果您选择这条路线,您可能应该熟悉命令行。
An important concept to grasp: the file system your EC2 instance lives on while it's running is not persistent. There are tools/services available that let you mount file systems backed by S3 storage, or you can upload to S3 or other storage service from the instance, but when an instance closes the associated file system is no more.
As for tools, I've found Amazon's tools to be great, but you should probably be comfortable with the command line if you're taking this route.
用于管理您的 EC2 实例等。亚马逊还提供了几天前的测试版管理控制台,它具有与 Elasticfox Firefox 插件类似的功能,但它是一个纯粹的 Web 控制台。
https://console.aws.amazon.com
For managing your EC2 instances, etc. Amazon also offers - in beta since a couple of days - the management console which has similar functionality to the Elasticfox Firefox plugin but is a pure web console.
https://console.aws.amazon.com