热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

EC2上的实例存储有什么意义?-WhatisthepointofinstancestorageonEC2?

ImbuildingsomeAMIsfromoneofthebasiconesonEC2.OneoftheinstancetypesisrunningTomca

I'm building some AMIs from one of the basic ones on EC2. One of the instance types is running Tomcat and contains a lot of Lucene indexes; another instance will be running MySQL and have correspondingly large data requirements with it.

我正在从EC2上的一个基本AMI构建一些AMI。其中一个实例类型是运行Tomcat并包含许多Lucene索引;另一个实例将运行MySQL,并具有相应的大数据要求。

I'm trying to define the best way to include those in the AMIs that I'm authoring. If I mount /mnt/lucene and /mnt/mysql, those don't get included in the AMI generated. So it seems to me like the preferred way to deal with those is to have an EBS for each one, take snapshots and spin up instances which have their own EBS based on the most recent snapshots. Is that the best way to proceed?

我正在尝试定义在我正在创作的AMI中包含这些内容的最佳方法。如果我挂载/ mnt / lucene和/ mnt / mysql,那些不会包含在生成的AMI中。所以在我看来,处理这些问题的首选方法是为每个人设置一个EBS,拍摄快照并根据最新的快照启动拥有自己的EBS的实例。这是最好的方法吗?

What is the point of instance storage? It seems like it will only work as a temporary storage area - what am I missing? Presumably there is a reason Amazon offer up to 800GB of storage on standard large instances...

实例存储有什么意义?它似乎只能用作临时存储区 - 我错过了什么?据推测,亚马逊在标准大型实例上提供高达800GB的存储空间是有原因的......

3 个解决方案

#1


Instance storage is faster than EBS. You don't mention what you will be doing with your instances, but for some applications speed might be more important than durability. For an application that is primarily doing data mining on a large database, having a few hundred gigs of local, fast storage to host the DB might be beneficial. Worker nodes in a MapReduce cluster might also be great candidates for instance storage, depending on what type of job it was.

实例存储比EBS快。您没有提到您将对实例执行的操作,但对于某些应用程序,速度可能比持久性更重要。对于主要在大型数据库上进行数据挖掘的应用程序,拥有几百个本地快速存储来托管数据库可能是有益的。 MapReduce集群中的工作节点也可能是实例存储的理想选择,具体取决于它的工作类型。

#2


Another point of instance storage is that it's independent. There have been many EBS outages (google e.g. "site:aws.amazon.com ebs outage"). If the instance runs at all, it has the instance storage available. Obviously if you rely on instance storage, you need to run multiple instances (on multiple availability zones) and tolerate single failing instances.

实例存储的另一个要点是它是独立的。有许多EBS中断(谷歌,例如“网站:aws.amazon.com ebs停电”)。如果实例运行,则它具有可用的实例存储。显然,如果您依赖实例存储,则需要运行多个实例(在多个可用区域上)并容忍单个失败的实例。

#3


I know this is late to the game, but one other little considered factoid...

我知道这场比赛已经晚了,但另外一个被认为是偶像的......

EBS storage makes it exceedingly easy to create AMI's from, whereas, instance-store based storage requires that creation of AMI's be done locally on the machine itself with a whole bunch of work to prep, store, and register the AMI.

EBS存储使得创建AMI非常容易,而基于实例存储的存储需要在机器本身上本地完成AMI的创建,其中包括准备,存储和注册AMI的大量工作。


推荐阅读
author-avatar
我是田小勇2702932553
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有