Documente Academic
Documente Profesional
Documente Cultură
Autoscaling on EC2
EC2 for the criminally lazy
autoElastic cloud computing on EC2
Ari Lerner
http://www.citrusbyte.com
Amazon’s EC2
What Issues
• Clustered, web-service • No auto-scaling
• Easy scaled computing • No load-balancing
• Completely
customizable
• Non-persistent
data storage
instance
• Pay
use
for only what you • Volatile
solution
with no failover
• Highly elastic
• Incredibly flexible
Pool Party
• Self-healing computing clusters
• Inherent load-balancing
• Failover safety
Auto-scaling PoolParty
*nix
HAProxy
This application-agnostic, hot-swappable load-balancer built
from the ground up for high availability clusters is speedy
because of it’s closeness to the os.
Heartbeat
Robust, enterprise-standard services monitor that provides
pool party failover capabilities.
S3Fs
S3 backed filesystem in userspace (FUSE) uses little-to-no
caching to reduce race conditions. Pool party uses the
unlimited s3 data-store to provide instances access to the
same data across the instances while providing an easy
deployable.
Load Balancing
node2
node1
Master
node0
node1
node2
Master
node0
Failover (instance)
node1
node2
Master
node0
Failover (instance)
node2
node1
Master
node0
Failover (master)
node1
node2
Master
node0
Failover (master)
node1
node2
Master
node0
Failover (master)
Master
node0 node0
node1
Persistent data store
S3:/your_bucket
node1
node2
Master
node0
Auto-scaling
Can serve 0.23
req/sec and cpu
load is 0.70
node1
node1
VY
A = 8.04
HEreq/sec
Average
LO
Average cpu D!!!= 0.77
Aload
Auto-scaling
Can serve 20.1
req/sec and cpu
load is 0.35
node3
node3
• Speeding up configuration-time
• Front-end client
• Monitor logging
• Capistrano deployment
Questions?
Resources
• http://www.poolpartyrb.com
• http://www.citrusbyte.com
• http://aws.amazon.com/
• mailto: ari.lerner@citrusbyte.com
Thanks