- 浏览: 156346 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (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 3385不说别的见源码 #coding=utf-8 ... -
Nginx Modules 开发学习
2012-08-13 17:02 4021nginx 模块开发,咱们先从模块分析入手,ngin ... -
Mobile Web
2012-02-03 16:17 909The viewport metatag (Mobile we ... -
nginx upstream 调度策略
2011-08-17 14:43 2852之前一直使用nginx 的upstream,今天有个哥们问我, ... -
必要转载 1927年12月31日午夜一秒谜案
2011-08-12 10:57 911... -
搅局者周鸿祎圆梦:忆往昔凶猛斗狠轮战群雄
2011-04-06 09:41 760来源:京华时报 在 -
开心一刻 强悍美国guy 模仿 lady GaGa
2010-05-26 10:19 871连接如下: http://v.163.com/vide ... -
学习 CDN
2010-05-13 14:10 883CDN 之前听同事或是什么其他做讲座的说,CDN..C ... -
放慢你的脚步
2010-04-13 09:57 894放慢你的脚步 3 月的北京乍暖还寒,但万物复苏的迹象已势 ... -
侃搜索引擎_信息能如何有效的传递
2009-12-02 16:58 860索搜引擎是什么,这是个问题,有的人把他当为信息员,有人 ... -
信仰与奋斗
2009-10-21 17:06 809历经数十载风和雨,三十功名尘与土,八千里路云和月,莫等闲白了少 ... -
一年,过去了
2009-10-20 17:04 753一年,过去了。 收到邮件:恭喜您在阿里巴巴又长了一岁! 在此提 ...
相关推荐
Amazon EC2功能全面介绍,需要学习了解amazon ec2的同学最好看看....
亚马逊弹性计算云(Amazon EC2)是一个Web服务,提供可调整的云计算能力。它旨在为开发人员提供简便的使用网络规模计算。 Amazon EC2简单的Web服务界面,让您可以以最小的代价获取和配置计算能力。它让您完全控制您...
您将学习如何使用 Amazon 系统映像启动 Amazon EC2 实例、创建适合 SSH 身份验证的密钥对、通过安全组保障 Amazon EC2 实例网络访问的安全、通过引导启动脚本自动配置 Amazon EC2 实例以及将弹性 IP 附 加到 Amazon ...
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 ...
亚马逊ec2云亚马逊ec2云亚马逊ec2云亚马逊ec2云
Amazon EC2 API Reference
对于学习云计算,利用亚马逊EC2的同学会很有帮助的
ec2instances.info, Amazon EC2实例比较站点 ec2instances.info我在亚马逊站点上比较EC2实例度量和定价的问题,所以我做了这个。 欢迎使用 !项目状态 我正积极地在贡献者的帮助下维护网站,但我不打算使用大型的新...
Over 40 hands-on recipes to develop and deploy real-world applications using Amazon EC2 AWS Cloud from Amazon offers a cutting-edge platform to architecture, build, and deploy web-scale cloud ...
介绍了amazon ec2的功能还有就是关于自动扩展容量.
Amazon EC2 预留实例和其他预留模型
Amazon EC2是商业应用最成功的云平台,相对传统的软、硬件提供商而言,它省去了了解复杂的云计 算底层技术的麻烦,通过提供的开发接品,逐步向"pay as you do 和即插即用"模式过度。它使得普通开 发人员和中小企业...
programming amazon ec2
Amazon AWS EC2注册+绑定tk域名+域名邮箱绑定+SSL证书申请绑定+博客+搭建API+embr+FTP.本
ITE_WinECU_D2EC使用手册
有关aws ec2配置部署的工作手册,希望能给同样才接触的朋友们一点帮助。由于才接触这方面的知识,如有错误,希望斧正。
只需使用一个命令,即可连接到具有“ EC2实例连接”功能的AWS EC2服务器。 如果您按照所述使用“ EC2实例连接”,您已经注意到,连接到实例可能会很麻烦,尤其是当您频繁连接到其他实例时。 sshaws命令允许您收集...
使用移远EC20 LTE4G模块、通过AT指令集访问FTP服务器,实现服务器的登录、退出、文件的上传、下载 。本人毕设代码,绝对可用。C语言文件。
Amazon Elastic Compute Cloud ...通过使用 Amazon EC2,您可以根据自身需要启动任意数量的虚拟服务器、配置安全和网络以及管理存储。Amazon EC2 允许 您根据需要进行缩放以应对需求变化或流行高峰,降低流量预测需求。