公司准备将一些应用迁移到amazon的EC2上,最近学习相关的知识,以下是搜到的比较有用的资料,以后写出迁移的过程及注意事项。
1、首先 官方文档首页:http://aws.amazon.com/documentation/官方blog:http://aws.typepad.com/
2、关于EC2的文档,非常详细,从建立账号到启动instance:Amazon Elastic Compute Cloud
Getting Started Guide (API Version 2008-12-01)
http://docs.amazonwebservices.com/AWSEC2/latest/GettingStartedGuide/
3、关于静态IP:(amazon叫做Elastic IP):Feature Guide: Amazon EC2 Elastic IP Addresses:
http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1346
New EC2 Features: Static IP Addresses, Availability Zones, and User Selectable Kernels
http://aws.typepad.com/aws/2008/03/new-ec2-feature.html
4、一篇很有用的文档,包含的内容很全面,推荐好好看一下Amazon Elastic Compute Cloud
Developer Guide (API Version 2008-12-01)
http://docs.amazonwebservices.com/AWSEC2/latest/DeveloperGuide/
5、Amazon EC2 Charges
1个使用费用的计算器http://calculator.s3.amazonaws.com/calc5.html
With Amazon EC2, you don’t have to pay upfront fees, you don’t have to commit to a fixed amount of bandwidth, and you don’t have to meet any minimum usage requirements. As with other AWS services, you only pay for what you use.
The following figure summarizes how you are charged for using Amazon EC2.
6、Features for Building Failure Resilient Applications
Amazon Elastic Block Store—Amazon Elastic Block Store (Amazon EBS) offers persistent storage for Amazon EC2 instances. Amazon EBS volumes provide off-instance storage that persists independently from the life of an instance. Amazon EBS volumes are highly available, highly reliable volumes that can be attached to a running Amazon EC2 instance and are exposed as standard block devices. Amazon EBS volumes offer greatly improved durability over local Amazon EC2 instance stores, as Amazon EBS volumes are automatically replicated on the backend (in a single Availability Zone). For those wanting even more durability, Amazon EBS provides the ability to create point-in-time consistent snapshots of your volumes that are then stored in Amazon S3, and automatically replicated across multiple Availability Zones. These snapshots can be used as the starting point for new Amazon EBS volumes, and can protect your data for long term durability.
Regions and Availability Zones—Amazon EC2 provides the ability to place instances in different regions and Availability Zones. Regions are dispersed in separate geographic areas or countries. Availability Zones are located within regions and are engineered to be insulated from failures in other Availability Zones and provide inexpensive low latency network connectivity to other Availability Zones in the same region. By launching instances in separate Availability Zones, you can protect your applications from the failure of a single Availability Zone.
Elastic IP Addresses—Elastic IP addresses are static IP addresses designed for dynamic cloud computing. An Elastic IP address is associated with your account not a particular instance, and you control that address until you choose to explicitly release it. Unlike traditional static IP addresses, however, Elastic IP addresses allow you to mask instance or Availability Zone failures by programmatically remapping your public IP addresses to any instance in your account. Rather than waiting on a data technician to reconfigure or replace your host, or waiting for DNS to propagate to all of your customers, Amazon EC2 enables you to engineer around problems with your instance or software by quickly remapping your Elastic IP address to a replacement instance.
7、Amazon EC2 Flow
The following graphic and table explain the basic flow for using Amazon EC2.
Launch Confirmation Process
1
You create an AMI from scratch (Linux and UNIX only) or based on an existing AMI. This is optional, as you can launch instances of existing AMIs without modifying them. See Creating an AMI.
2
You bundle the AMI and obtain an AMI ID so you can launch as many instances of the AMI as you want. See Bundling an AMI.
3
You launch one or more instances of your AMI. See Launching and Using Instances.
4
You administer and use your instances and you would with any servers.
8.关于S3的使用和操作,一些不错的文章推荐1:http://plog.longwin.com.tw/news-technology/2008/02/21/amazon_s3_s3cmd_php_2008
推荐2:http://tzangms.com/programming/2335
推荐3:官方文档http://docs.amazonwebservices.com/AmazonS3/latest/gsg/
http://docs.amazonwebservices.com/AmazonS3/2006-03-01/
推荐4:几个不错的方便操作S3的工具关于官方提供的多种语言的sample:我的理解是提供给网站开发人员的,例如,开发一个网站,其中要提供一个存储在S3上的下载,这时,需要使用这个sample。
下面的S3对于不懂开发的我来说比较实用,我只需要能够创建bucket,上传,下载就可以了。S3cmd
安装:1)先安装windows的python2)右击“我的电脑”->“属性”->“高级”->“环境变量”,选择“PATH”,点“编辑”,把;C:\Python26加入“变量值”中(注意分号分割)。确定3)运行python setup.py install
4)运行python c:\python26\scripts\s3cmd --configure
设定 access_key和secret_key
5)详细的s3cmd使用说明见官方。php-aws