4 ms·
How do you even do anything without using EBS?
by copergi 13y ago
How do you even do anything without using EBS?
- ghotli 13y agoWell, you break your services out onto stateless and stateful machines. After that, you make sure that each of your stateful services is resilient to individual node failure. I prefer to believe that if you can't roll your entire infrastructure over to new nodes monthly then you're unprepared for the eventual outage of a stateful service. Most databases have replication but you need to make sure that the characteristics of how the database handles a node failure are well understood. Worst case you use EBS, put your state on it, snapshot it regularly, and ship those snapshots to another region because when EBS fails it fails hard. Also, logs make every machine stateful. Use something like logstash to centralize that state.
- copergi 13y agoAnd you do what for loadbalancing?
- ceejayoz 13y agoIIRC, Amazon has been working on removing the ELB dependence on EBS. I haven't seen an announcement of them being done, though.
- ghotli 13y agoIf ELB is down in a given region then DNS failover to another region. Assuming you feel comfortable rolling your entire infrastructure monthly, have good images / configuration management, and have the state replicated in the backup region. That or sidestep ELB in your region to a team of stateless load balancers that terminate SSL.
- atonse 13y agoExactly - how can I run a database server without EBS?
- robszumski 13y agoI think Cassandra is what all the big guys use. Apple, Netflix, etc.
- scott_w 13y agoWe use RDS (they now support Postgres) and Elasticache. The pricing seems reasonable for the performance (I've not done benchmarks if I'm being honest), and you get to treat all your EC2 instances as expendable.
- atonse 13y agoSure - but I'm assuming RDS uses EBS under the covers... I meant rather that is there any other option for persistent data on AWS?
- mikebabineau 13y agoIf you're eschewing EBS because of past problems (like the Oct 2012 outage), you should be aware that RDS is EBS-backed [1]. Also, on EC2, EBS-backed instances boot faster [2]. Of course, you can (and should) still treat EBS-backed instances as expendable. [1] http://aws.amazon.com/rds/faqs/#hardware-scaling http://aws.amazon.com/rds/faqs/#hardware-scaling [2] http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ComponentsAMIs.html#storage-for-the-root-device http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Component...
- scott_w 13y agoJust to clarify: I don't eschew RDS because of outage issues, I use RDS because it's much easier to set up and manage compared to doing it yourself. To be honest, I didn't know RDS was backed by EBS but it makes little real difference to me as long as the backup procedures are rock-solid and the performance is acceptable.
- copergi 13y agoAs others pointed out, you use EBS then.
- 13y ago
- deleted 13y ago[deleted]