tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] Using the bin/daemon.sh script on ubuntu.
Date Wed, 07 Aug 2013 03:52:15 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Igor,

On 8/6/13 6:28 AM, Igor Cicimov wrote:
> On 06/08/2013 12:40 AM, "Jeffrey Janner"
> <Jeffrey.Janner@polydyne.com> wrote:
>> 
>>> -----Original Message----- From: Christopher Schultz
>>> [mailto:chris@christopherschultz.net] Sent: Friday, August 02,
>>> 2013 10:30 PM To: Tomcat Users List Subject: Re: [OT] Using the
>>> bin/daemon.sh script on ubuntu.
>>> 
>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>>> 
>>> Christian
>>> 
>>> On 8/1/13 11:55 AM, Christian Schneider wrote:
>>>> On our (AWS) installation we have limited space on /opt,
>>>> therefore we attached an EBS volume  to /var/, - otherwise we
>>>> would get problems with the log files. Now it can grow above
>>>> some GB.
>>> 
>>> Have you thought about using /mnt/ephemeral[0-9]?
>>> 
>>> Our instances have ~1TiB in combined ephemeral storage
>>> available per instance. I'm sure it depends upon the instance
>>> type, though. Remember that terminating the instance loses the
>>> ephemeral data.. that's what makes it ... ephemeral. Just
>>> remember to copy what you need back to an EBS-backed storage
>>> volume before you terminate.
>>> 
>>> - -chris
>> 
>> Chris, If I remember my empirical testing of the AWS ephemeral
>> storage system, you actually lose data on shutdown, not
>> termination.
> 
> Not true, the ephemeral data is only lost on instance termination.

Confirmed -- at least with "shutdown -r", and on an m1.large instance
- -- /mnt/ephemeralX retains files across reboots. I didn't do a "stop"
and "start" from the GUI or anything like that, though.

I think you're supposed to be able to rely on ephemeral storage. The
thing is that it's not EBS-backed: it's actually only on the physical
server that you get when you launch an instance. When you shut-down,
the data stays on the physical machine and you can only get to it
again when you boot the same instance on the same machine. Since AWS
always runs instances on the same physical hardware every time, you're
good unless you /terminate/ (i.e. discard) the instance.

Honestly, I was a bit surprised to find out that each time you launch
an instance it doesn't just get launched on some random piece of
equipment. That would seem more flexible (if wasteful: moving GiBs of
data around to various hosts isn't exactly fast) to me.

On more than one occasion, I've had an instance start acting funny and
shortly thereafter, I get an email from AWS saying that they will be
terminating my instance in a few days. You can't just "migrate" the VM
to another piece of hardware. Instead, you have to image the VM,
create an AMI from that image, create a new instance with that AMI,
and destroy the old instance. (Then delete the old image *and* EBS
store, otherwise you continue to pay for the disk space taken up by an
instance that will never again be launched). Pain in the neck.

I think you can create an AMI directly from a running instance these
days (probably for this exact reason).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSAcRtAAoJEBzwKT+lPKRYogQQAKGd+eI4KbJ3Y9aSrS73iZ3g
BIHxDL5EvZ+45KKIzKWZAEu5ojjJhT9eR8szwt19yR3ZxleGGFgiU202W+RRVMCN
fw3saTN34QTDR2R+16zoqgX2CvdJm16exiXzurq5M941nsJHyZY3LL7WyVkAkW22
Q3xIQEYlR9t1LckxPJNRuw8Ix0qEHD/dVcOucTDBI9MVWKLny4MTJzdb9mCdb+1T
fDza8JtQxOvywhFb4aVwkO1YRP4RYjswAH5mXDMcfFvWeZse7u+4tahvPkAwxkc/
DKkWA7l+ltC7dy95N4Ge+vErkCYMruwc6xCvFM+rfk95Bw+WdhpZ4zoE9nX304Ku
Y/pvljaPJhPDxldEnEVKqpfd9Zu/6GIximFTFDJ2zDzZ4XWSpR6sUpVGbK38x7oX
NT1j2k36IU6jfog/Z2f4Hq6ZI1jc8hFix0trP+zqhzyMibbkek+mMwm2M+Z/jv8F
AxYl1qnXsxRzZQ/Ja6gu00aem3x77LFqzkpu0wgbDnjt6iA1xqMft+UL2bXA+0Ba
UPPAAi/xrf8MXjOBAc0IR2Oo/UIe2hw8m/pCwVvOYowSwnKaCj3oD8SNFZ4/fuRS
slVaDu8t9+73GDE6m2kOZ1mZQ8koZ76nIp6bS/bvOOWzatni7iOL3DnYl6LpXUUk
utx9mVW7vkYe+2OZfdPR
=2YAn
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message