running high availability websites with acquia and aws
TRANSCRIPT
Running High Availability Drupal Websites with Acquia and AWS
Miles WardSr. Solutions ArchitectAmazon Web Services
John O’KeefeSr. Director , Operations
Acquia
Jess IandiorioSr. Director, Cloud Product MarketingAcquia
Agenda
• Amazon Web Services:• Building Fault-Tolerant Applications in the Cloud• Surmounting HA Barriers• AWS Stack and Availability Zones
• Acquia• Building Fully Redundant, Fault-Tolerant environments• Acquia Managed Cloud stack built on Amazon EC2
• Q&A
Faults? Facilities
Hardware
Networking
Code
People
What is “Fault-Tolerant”?
Degrees of risk mitigation - not binary
Automated
Tested!
Old School Fault-Tolerance: Build Two
No Up-Front Capital
Expense
Pay Only for What You
Use
Self-Service Infrastructure
Easily Scale Up and Down
Improve Agility & Time-to-
Market
Low Cost
Cloud Computing Benefits
Deploy
No Up-Front HA Capital Expense
Pay for DR Only When You Use it
Self-Service DR
Infrastructure
Easily Deliver Fault-Tolerant Applications
Improve Agility & Time-to-Recovery
Low Cost Backups
Cloud Computing Fault-Tolerance Benefits
Deploy
The benefits translate!
AWS Cloud allows Overcast Redundancy
Have the shadow duplicate of your infrastructure ready to go when you need it…
…but only pay for what you actually use
Old Barriers to HA are now Surmountable
Cost
Complexity
Expertise
AWS Building Blocks: Two Strategies
Inherently fault-tolerant services
Services that are fault-tolerant with the right architecture
S3SimpleDb
DynamoDBCloudfront
SWF, SQS, SNS, SESRoute53
Elastic Load BalancerElastic Beanstalk
ElastiCacheElastic MapReduce
IAM
Amazon EC2VPC EBSRDS
The Stack:
Resources
Deployment
Management
Configuration
Networking
Facilities
Geographies
The Stack:
EC2 Instances
Amazon Machine Images
CW Alarms - AutoScaling
Cloudformation - Beanstalk
Route53 – ElasticIP – ELB
Availability Zones
Regions
Regional Diversity
Use Regions for:
Latency• Customers• Data Vendors• Staff
Compliance
Disaster Recovery
… and Fault Tolerance!
Proper Use of Multiple Availability Zones
107.22.18.45 isn’t fault-tolerant but 50.17.200.146 is: EIP
Elastic Load Balancing
Automated DNS: Route53
New! Latency-Based Routing
Network Fault-Tolerance Tools
Cloudformation – Elastic Beanstalk
Q: Is your stack unique?
Cloudwatch – Alarms – AutoScaling
AMI’s
Maintenance is critical
Alternatives: Chef, Puppet, cfn-init, etc.
New! When in doubt: 64-bit
Replicate for DR
EC2 Instances
Consistent, reliable building block
100% API controlled
Reserved Instances
EBS
Immense Fleet Scale
New EC2 VPC feature: Elastic Network Interface
Up to 2 Addresses
Span Subnets
Attach/Detach
Public or Private
Example: a “fork-lifted” app
Example: Fault-Tolerant
Why mess with all of that?
Acquia
High Availability for Drupal Sites
Designing a HA Infrastructure
• It’s like Noah’s Ark – 2 of Everything• Automate Scaling Quickly and Reliably• Leverage Amazon Availability Zones• Select Reliable Synchronization Technologies
• mySQL Replication• Gluster• “Trust but Verify”
Managed Cloud: HA Infrastructure
Load Balancers• Elastic IP addresses• Varnish Cache• Nginx for load balancing
Web Servers• Drupal-tuned• Any number/size of servers
Database• MySQL 5.5• Master-master replication
File system• High Availability file system via
GlusterFS• POSIX compatible
DB
FS
Web Server
Load Balancer
Web Server
DB
FS
If Availability is Your Lifeblood – Consider Multi-Region Failover• Run Your Site From at Least Two AWS Regions• Use an Enterprise-class Database Replication Technology – Tungsten from Continuent
• Implement a Content Distribution Network (CDN) • Durability• Manageability• Security
Managed Cloud: Regions
AWS Regions
US West(Northern California)
US East(Northern Virginia)
Europe(Ireland)
Asia Pacific
(Singapore)
Asia Pacific(Tokyo)
US West(Oregon)
South America(Sao Paulo)
GovCloud(US ITAR Region)
Managed Cloud: HA Infrastructure
Availability Zone 1
Load Balancer
Availability Zone 2
Standby Load Balancer
Database
File System
Web Server
Active Load Balancer
Web Server
Web Server
Web Server
Database
File System
Nothing is Irreplaceable
• All Components of the Platform Can Tolerate Failure
• Create Failures – Netflix’s “Chaos Monkey”• General Best Practices:
• Disaster recovery• Replication• Backups
How is Managed Cloud Different?
Infrastructure & Application Health
Acquia Operations Team
Security Scanning
Acquia Security Team
Third party tools
Customer Team
Managed Cloud
Worry free, Enterprise-class Drupal hosting
www.acquia.com/products-services/acquia-managed-cloud
Questions• For more information visit: http://www.acquia.com
• Contact us: [email protected] or 888.9.ACQUIA
• Follow us: @acquia
• Comments welcome:• [email protected]• [email protected] • [email protected] Today’s webinar recording will be posted to:http://acquia.com/resources/recorded_webinars