amazon ec2 - During hardware failure, do EBS-based EC2 instances terminate or stop? -


amazon's new ebs-based ec2 instances have 2 options shutdown: terminate or stop. stopped instances can later started again, automatically continuing same ebs root disk state had when stopped.

but happens when amazon datacenter has hardware failure, , ec2 instance forced shutdown. terminate or stop? if instance has been configured stop default on shutdown, can rely on being stopped in situation, , being able start again later?

an ec2 instance can terminated @ time , 1 must account indeed, mentioned in david's answer (+1). can arrange failed instance's elastic block store (ebs) remain available regardless though, see e.g. respective faq what happens data when system terminates?:

the data stored on local instance store persist long instance alive. however, data stored on amazon ebs volume persist independently of life of instance. if using amazon ebs volume root partition, you have set delete on terminate flag "n" amazon ebs volume persist outside life of instance. [emphasis mine]

this explained in more detail in section 2. delete on termination within eric hammond's recommended article three ways protect ec2 instances accidental termination , loss of data:

though ebs volumes created , attached instance @ instantiation preserved through “stop”/”start” cycle, default destroyed , lost when ec2 instance terminated. behavior can changed delete-on-termination boolean value buried in documentation --block-device-mapping option of ec2-run-instances.

he referring ec2-run-instances documentation, , meanwhile illustrated in more detail within amazon ec2 root device storage concepts well:

by default, root device volume , other volumes created when amazon ebs-backed instance launched automatically deleted when instance terminates [...]. can change default behavior setting deleteontermination flag value want when launch instance. example of how change flag @ launch time, see using amazon ec2 root device storage.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -