- 浏览: 160235 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (94)
- Rails 编程 (12)
- Mysql 编程 (1)
- 闲聊文章 (9)
- ruby 编程 (0)
- javascript 编程 (3)
- python 编程 (12)
- linux 编程 (2)
- redis 编程 (1)
- nginx (3)
- linux 编程 mongodb (1)
- xmpp (1)
- mobile web (2)
- HTML% (0)
- HTML5 (1)
- ios (1)
- 娃 (1)
- linux (2)
- python (1)
- suffixTree (0)
- 后缀树 (0)
- btree (1)
- learn (2)
- 服务器 (1)
- comet (1)
- 创业 (1)
- lua (1)
- hadoop hive sql java (1)
- 优酷 土豆 (1)
最新评论
-
Sasoritattoo:
GFS.fs.remove(name)新版本不支持这个接口了, ...
Python 分布式文件系统 Mongodb GridFS -
itdazhu:
嘿嘿。柳哥想不到这么细腻
我目前的创业心得 -
fx999:
听起来真的不错,尤其是文档化方面比ROR好多了,才发布就有两本 ...
构建于Rails之上的Hobo 1.0 -
huaywang11:
想创业没有好的项目。。。。
我目前的创业心得 -
mimicom:
没看懂........
Python 分布式文件系统 Mongodb GridFS
Amazon Elastic Compute Cloud
(Amazon EC2)
Amazon EC2 presents a true
virtual computing environment, allowing you to use web service
interfaces to launch instances with a variety of operating systems, load
them with your custom application environment, manage your network’s
access permissions, and run your image using as many or few systems as
you desire.
简单滴说EC2就是个虚拟机。
EC2实例配置:
Standard Instances
Instances of this family are well suited for most applications.
- 1.Small Instance (Default) 1.7 GB of memory, 1 EC2 Compute Unit (1 virtual core with 1 EC2 Compute Unit), 160 GB of local instance storage, 32-bit or 64-bit platform
- 2.Medium Instance 3.75 GB of memory, 2 EC2 Compute Units (1 virtual core with 2 EC2 Compute Units each), 410 GB of local instance storage, 32-bit or 64-bit platform
- 3.Large Instance 7.5 GB of memory, 4 EC2 Compute Units (2 virtual cores with 2 EC2 Compute Units each), 850 GB of local instance storage, 64-bit platform
- 4.Extra Large Instance 15 GB of memory, 8 EC2 Compute Units (4 virtual cores with 2 EC2 Compute Units each), 1690 GB of local instance storage, 64-bit platform
High-Memory Instances
Instances of this family offer large memory sizes for high throughput applications, including database and memory caching applications.
- 1.High-Memory Extra Large Instance 17.1 GB memory, 6.5 ECU (2 virtual cores with 3.25 EC2 Compute Units each), 420 GB of local instance storage, 64-bit platform
- 2.High-Memory Double Extra Large Instance 34.2 GB of memory, 13 EC2 Compute Units (4 virtual cores with 3.25 EC2 Compute Units each), 850 GB of local instance storage, 64-bit platform
- 3.High-Memory Quadruple Extra Large Instance 68.4 GB of memory, 26 EC2 Compute Units (8 virtual cores with 3.25 EC2 Compute Units each), 1690 GB of local instance storage, 64-bit platform
High-CPU Instances
Instances of this family have proportionally more CPU resources than memory (RAM) and are well suited for compute-intensive applications.
- 1.High-CPU Medium Instance 1.7 GB of memory, 5 EC2 Compute Units (2 virtual cores with 2.5 EC2 Compute Units each), 350 GB of local instance storage, 32-bit or 64-bit platform
- 2.High-CPU Extra Large Instance 7 GB of memory, 20 EC2 Compute Units (8 virtual cores with 2.5 EC2 Compute Units each), 1690 GB of local instance storage, 64-bit platform
海外服务器如果不考虑mongodb 备份
EC2收费方式:
Pricing is
per instance-hour consumed for each instance, from the time an instance
is launched until it is terminated. Each partial instance-hour consumed
will be billed as a full hour.
计费方式为,服务器状态为running 按照每小时收费,不足一小时按照一小时收费。
EC2的 计费方式有三种 具体详见
http://aws.amazon.com/ec2/pricing/
:
1. On-Demand Instances 这种基本上是按照使
用/小时支付。
2. Reserved Instances 按照年预支付的,计费
方式和 On-Demand Instance 一样,其中又分为3小类
Light Utilization Reserved Instances
Medium Utilization Reserved Instances
Heavy Utilization Reserved Instances
这几种的区别就是,预存的话费越多越便宜
3. Spot Instance
在这种服务中,用户可以自己定价,定下用户愿意接受的最高价格,来租用EC2服务的闲散资源。亚马逊根据供需情况会周期性的发布即时价格,当用户最高限价
高于其即时价格时,服务进行,且实际支付价格为系统即时价格。当用户最高限价低于即时价格时,系统自动终止服务,待即时价格低于用户最高限价时服务再次启
动。这对于用户的预算是一个更灵活的保证方式。这种模式更适合于需要大量计算能力但对计算响应要求不高的用户,如科学计算等。当然,用户需要自行保证使用
Spot instance的应用对于随时宕机具有调整能力。
支出的对比表:
Annual Cost Comparison (100% utilization)
|
||||
|
Do-It-Yourself |
EC2 On-Demand |
EC2 Reserved (1 Year Term) |
EC2 Reserved (3 Year Term) |
Usage Costs | - | $ 157,680 | $ 75,411 | $ 48,123 |
Server Hardware | $ 20,129 | - | - | - |
Network Hardware | $ 4,026 | - | - | - |
Hardware Maintenance | $ 28,986 | - | - | - |
Operating System | $ – | - | - | - |
Facility Expense | $ 131,382 | - | - | - |
Remote Hands Support | $ 1,014 | - | - | - |
Data Transfer Costs | $ 10,071 | $ 6,138 | $ 6,138 | $ 6,138 |
TOTAL COST | $ 195,608.00 | $ 163,818.00 | $ 81,550.00 | $ 54,263.00 |
EC2还有一些额外的计费
Data Transfer**
Internet Data Transfer
The pricing below is based on data transferred "in" and "out" of Amazon EC2.
All data transfer in | $0.000 per GB |
First 1 GB / month | $0.000 per GB |
Up to 10 TB / month | $0.120 per GB |
Next 40 TB / month | $0.090 per GB |
Next 100 TB / month | $0.070 per GB |
Next 350 TB / month | $0.050 per GB |
Next 524 TB / month | Contact Us |
Next 4 PB / month | Contact Us |
Greater than 5 PB / month |
Amazon Elastic Block Store
Amazon EBS Volumes
- $0.10 per GB-month of provisioned storage
- $0.10 per 1 million I/O requests
Amazon EBS Snapshots to Amazon S3
- $0.125 per GB-month of data stored
Elastic Load Balancing
- $0.025 per Elastic Load Balancer-hour (or partial hour)
- $0.008 per GB of data processed by an Elastic Load Balancer
根据地域不同估计还要收税。
Mongodb EC2
http://www.mongodb.org/display/DOCS/Amazon+EC2
http://www.mongodb.org/display/DOCS/Amazon+EC2+Quickstart#AmazonEC2Quickstart-Prerequisites
Storage
Configuration
For storage we recommend using multiple EBS volumes (as opposed to instance-based storage which is ephemeral) in a RAID-based configuration. Specifically for production deployments you should use RAID 10 across 4-8 EBS volumes for the best performance. When deploying RAID 10, you'll need enough volume storage to be twice that of the desired available storage for MongoDB. Therefore for 8 GiB of available storage you'll need to have 16 GiB of allocated storage space across multiple EBS volumes.
存
储配置:官方推荐 RAID 1+0 ,4-8 EBS
刘军看一下具体的配置把这个
amazon 自带的数据库中,没有mongodb所以需要自己组建mongodb 服务器
Database
其他:
一,Amazon
Elastic Block Store (EBS)
1. Amazon EBS allows you to create storage volumes
from 1 GB to 1 TB
that can be mounted as devices by Amazon EC2 instances. Multiple volumes
can be mounted to the same instance.
EBS 支持创建卷的大小从1GB 到1TB ,一台亚马逊实例可以加载多个卷
备注:(使用前)刘军同学测试加载多个卷的功能
2.
Amazon EBS volumes are placed in a specific Availability Zone, and
can then be attached to instances also in that same Availability Zone.
EBS卷被部署到了特定的可以用区域,并且只能挂载到在相同区域的实例
备注:目前这个对我们影响不大
3.Each storage volume is automatically replicated within the same
Availability Zone. This prevents data loss due to failure of any single
hardware component.
EBS卷
会自动备份
4.Amazon EBS
also provides the ability to create point-in-time snapshots of volumes,
which are persisted to Amazon S3. These snapshots can be used as the
starting point for new Amazon EBS volumes, and protect data for
long-term durability. The same snapshot can be used to instantiate as
many volumes as you wish.
EBS卷可以创建 镜像
备份,这跟windows的哪个备份应该是差不多的,可以回滚到过去的某个时间的镜像。
5.Amazon
CloudWatch exposes performance metrics for EBS volumes, giving you
insight into bandwidth, throughput, latency, and queue depth. The
metrics are accessible via the AWS CloudWatch API or the AWS Management
Console. For more details, see Amazon CloudWatch.
亚马逊自带EBS 卷的监控,似乎是收费的,似乎是没有什么不收费的 see Amazon CloudWatch.
二,Amazon Simple Storage Service
(Amazon S3)
Amazon S3 provides a simple
web services interface that can be used to store and retrieve any amount
of data, at any time, from anywhere on the web. It gives any developer
access to the same highly scalable, reliable, secure, fast, inexpensive
infrastructure that Amazon uses to run its own global network of web
sites. The service aims to maximize benefits of scale and to pass those
benefits on to developers.
简单的说,S3 提供了一组webservice 可以访问
S3存储服务,服务提供检索,添加,删除文件等服务。
S3和EBS的主要区别是
EBS是instance(实例)独享的 S3可以通过webservice 实现多台instance(实例) 共享。
<!--EndFragment-->
发表评论
-
Python BTree 学习-广度优先搜索
2012-08-27 09:41 3462不说别的见源码 #coding=utf-8 ... -
Nginx Modules 开发学习
2012-08-13 17:02 4081nginx 模块开发,咱们先从模块分析入手,ngin ... -
Mobile Web
2012-02-03 16:17 958The viewport metatag (Mobile we ... -
nginx upstream 调度策略
2011-08-17 14:43 2916之前一直使用nginx 的upstream,今天有个哥们问我, ... -
必要转载 1927年12月31日午夜一秒谜案
2011-08-12 10:57 946... -
搅局者周鸿祎圆梦:忆往昔凶猛斗狠轮战群雄
2011-04-06 09:41 786来源:京华时报 在 -
开心一刻 强悍美国guy 模仿 lady GaGa
2010-05-26 10:19 916连接如下: http://v.163.com/vide ... -
学习 CDN
2010-05-13 14:10 906CDN 之前听同事或是什么其他做讲座的说,CDN..C ... -
放慢你的脚步
2010-04-13 09:57 921放慢你的脚步 3 月的北京乍暖还寒,但万物复苏的迹象已势 ... -
侃搜索引擎_信息能如何有效的传递
2009-12-02 16:58 898索搜引擎是什么,这是个问题,有的人把他当为信息员,有人 ... -
信仰与奋斗
2009-10-21 17:06 842历经数十载风和雨,三十功名尘与土,八千里路云和月,莫等闲白了少 ... -
一年,过去了
2009-10-20 17:04 792一年,过去了。 收到邮件:恭喜您在阿里巴巴又长了一岁! 在此提 ...
相关推荐
本篇文章将详细介绍Amazon EC2的核心功能与使用方法,帮助读者深入了解并掌握这一强大的云服务。 #### 二、Amazon EC2概述 Amazon EC2允许用户在云环境中创建和管理虚拟服务器(实例),这些服务器可以在几分钟内...
### Amazon EC2 快速指南和使用方法 #### 一、概述 亚马逊弹性计算云(Amazon EC2)作为亚马逊网络服务(AWS)的核心组件之一,为用户提供了一个灵活且可扩展的云计算平台。Amazon EC2 旨在帮助开发者轻松地利用...
Amazon AWS EC2申请使用教程 以下是Amazon AWS EC2申请使用教程的知识点总结: 一、注册Amazon AWS账户 * 访问http://aws.amazon.com/,点击"Sign Up Now"注册新用户 * 填写注册信息,包括姓名、email地址、密码...
### AWS EC2服务器(中国)配置部署手册 #### 一、AWS EC2基础知识与实例启动 **1.1 什么是Amazon EC2?** Amazon Elastic Compute Cloud (简称Amazon EC2)是一种可提供安全且可调整的计算容量的网络服务。它是构建...
Amazon EC2(Elastic Compute Cloud)是亚马逊网络服务(AWS)提供的一项核心云计算服务,它允许用户按需租用虚拟计算资源来运行自己的应用程序。EC2 的设计目标是提供可扩展性和灵活性,让用户能够快速调整计算能力...
**Amazon EC2**(Elastic Compute Cloud)是亚马逊网络服务(AWS)提供的一种基于云端的计算服务,它允许用户在云中租用虚拟服务器来运行应用程序。EC2通过其简单易用的界面,帮助开发者和中小型企业快速利用云计算...
To use Amazon EC2, you need an AWS account. If you don't already have one, you'll be prompted to create one when you sign up for Amazon EC2. Signing up for Amazon EC2 also automatically signs you up ...
1. 标题:《Programming Amazon EC2》是一本关于亚马逊弹性计算云服务(Amazon EC2)的开发指南,用于指导开发者如何编程和使用EC2服务。 2. 描述:该书详细介绍了EC2的教程,是亚马逊EC2的开发指南,包含了大量...
本文档是亚马逊云科技系列白皮书之一,旨在帮助用户更好地理解和利用亚马逊云科技(AWS)中的预留资源,尤其是 Amazon EC2 预留实例以及其他服务的预留模型。通过优化预留资源的使用,用户可以最大化投资价值并提高...
亚马逊EC2(Elastic Compute Cloud)是亚马逊网络服务(Amazon Web Services, AWS)提供的一款核心产品,它是一种基于互联网的计算服务,允许用户在虚拟服务器上运行应用程序和工作负载。这个服务提供了弹性的计算...
Amazon S3 EC2 API 是亚马逊网络服务(AWS)提供的一组接口,用于与Amazon Simple Storage Service (S3) 和 Elastic Compute Cloud (EC2) 进行交互。S3 是一个高度可扩展的云存储服务,而 EC2 则是 AWS 的计算服务,...
《Amazon EC2命令行参考:深入解析云服务器控制语句》 Amazon Elastic Compute Cloud(简称Amazon EC2)是亚马逊网络服务(AWS)提供的一种可扩展的云计算平台,旨在为用户提供安全、灵活、高可用性的计算能力。...
Amazon EC2 API Reference
Amazon Elastic Compute Cloud(简称EC2),是Amazon Web Services(AWS)提供的一种基于云计算的弹性计算服务,允许用户在云中租用虚拟服务器来运行自己的应用程序。本篇将深入解析EC2的核心功能与操作流程,帮助...
Amazon EC2是亚马逊网络服务(AWS)的一部分,它提供可扩展的云计算能力。本书的版权信息、出版信息和一些编辑信息表明了书籍的正式出版背景。接下来,将基于文档提供的信息,详细解释Amazon EC2编程的相关知识点。 ...
ec2instances.info, Amazon EC2实例比较站点 ec2instances.info我在亚马逊站点上比较EC2实例度量和定价的问题,所以我做了这个。 欢迎使用 !项目状态 我正积极地在贡献者的帮助下维护网站,但我不打算使用大型的新...
Amazon Elastic Compute Cloud(EC2)是Amazon Web Services(AWS)提供的一项云计算服务,它允许用户在云端运行各种类型的应用程序和工作负载。EC2 提供了可扩展的计算能力,使企业、开发者和组织无需预先投入大量...