Resilience in the Cloud Era: Designing Management Layers for High Availability and Recovery