Chinaunix首页 | 论坛 | 博客

XX

  • 博客访问: 510386
  • 博文数量: 281
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 562
  • 用 户 组: 普通用户
  • 注册时间: 2013-02-17 21:40
个人简介

XXX

文章分类

全部博文(281)

文章存档

2017年(1)

2015年(3)

2014年(117)

2013年(160)

我的朋友

分类: LINUX

2014-04-01 04:53:16

   公司准备将一些应用迁移到amazon的EC2上,最近学习相关的知识,以下是搜到的比较有用的资料,以后写出迁移的过程及注意事项。


1、首先
官方blog:


2、关于EC2的文档,非常详细,从建立账号到启动instance:
Amazon Elastic Compute Cloud
Getting Started Guide (API Version 2008-12-01)





3、关于静态IP:(amazon叫做Elastic IP):
Feature Guide: Amazon EC2 Elastic IP Addresses:

New EC2 Features: Static IP Addresses, Availability Zones, and User Selectable Kernels



4、一篇很有用的文档,包含的内容很全面,推荐好好看一下
Amazon Elastic Compute Cloud
Developer Guide (API Version 2008-12-01)


5、Amazon EC2 Charges

1个使用费用的计算器

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 .

3

You launch one or more instances of your AMI. See .

4

You administer and use your instances and you would with any servers.



8.关于S3的使用和操作,一些不错的文章
推荐1:

推荐2:

推荐3:官方文档


推荐4:几个不错的方便操作S3的工具
关于官方提供的多种语言的sample:我的理解是提供给网站开发人员的,例如,开发一个网站,其中要提供一个存储在S3上的下载,这时,需要使用这个sample。
下面的S3对于不懂开发的我来说比较实用,我只需要能够创建bucket,上传,下载就可以了。

安装:1)先安装windows的python
2)右击“我的电脑”->“属性”->“高级”->“环境变量”,选择“PATH”,点“编辑”,把;C:\Python26加入“变量值”中(注意分号分割)。确定
3)运行python setup.py install
4)运行python c:\python26\scripts\s3cmd --configure
   设定 access_key和secret_key
  5)详细的s3cmd使用说明见官方。

阅读(756) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~