lightning talk wakame on 9 april 2009
DESCRIPTION
Auto Scaling Software on Amazon EC2http://rubyforge.org/projects/wakame/TRANSCRIPT
Profile – Yamazaki Yasuhiro
• Former Job: Large System Integration Company in Japan– R&D– Technology Consultant
• Company Start-up: axsh co., LTD.– Contract Business• To build 6,500,000 PV/month Rails Site• To build a Digital Camera Community Site
The Virtual Goes Beyond The Real
Virtual Memory Physical Memory
Virtual Reality Real World
Virtual Machine Physical Machine
<<<<<<<<>>>>
Art WorkVirtual Sound Horror House
Amazon EC2 isProgrammable!
Datacenter as a Programmable Entity
00000H IN A, (000H)00002H AND A00003H JR Z, 00000H00005H CP 01BH00007H JR Z, 00015H00009H OUT (001H), A0000BH CP 00DH0000DH JR NZ, 00000H0000FH LD A, 00AH00011H OUT (001H), A00013H JR 00000H00015H OUT (002H), A00017H HALT
Hardware Software
# config.rbModule MySystem class Apache2 < WebServer def start_up exec(‘apache2ctl restart’) end …(snip)… end class MySQL < Database …(snip)… endend
Networked Hardware Networked Software
A computer is controlled by software
Networked computers can also be controlled by software.
This is “Wakame.”
“Wakame” Provides Dynamic Configuration Management
Load Balancer
Web Serve
r
DB
Server
Initial
Load Balancer
Web Serve
r
DBServe
r
(1) Get an Instancefrom Amazon EC2
Load Balancer
Web Serve
r
DBServe
r
Web Serve
r
(2) Start Service Up
Load Balancer
Web Serve
r
DBServe
r
Web Serve
r
(3) Configure
The Wakame takes all care in a few minutes!
Amazon EC2
Amazon S3
AmazonMachineImage
Wakame is the Master-Agent Architecture (1/7)
Master
Agent
Server + XenOther
s(Web+DB+etc.)
Server + XenVirtual Machine
Amazon Web ServicesStart instance up
Wakame
Amazon EC2
Amazon S3
AmazonMachineInstance
Start an Instance Up (2/7)
Master
Agent
Server + XenOther
s(Web+DB+etc.)
Server + XenVirtual Machine
Amazon Web Services
AmazonMachine Image
Master
Agent
Others
(Web+DB+etc.)
Start an Instance Up
Amazon EC2
Storage
Machine Image
File
Wakame Acts as init.d (3/7)
Master
Agent
Server + XenOther
s(Web+DB+etc.)
Server + XenVirtual Machine
Amazon Web Services
AmazonMachine Image
Master
Agent
Others
(Web+DB+etc.)
Asks to start services up
Makes services running
Amazon EC2
Amazon S3
Amazon Machine Image
Trigger to Scale (4/7)
Master
Agent
Server + XenOther
s(Web+DB+etc.)
Server + XenVirtual Machine
Amazon Web Services
AmazonMachine Image
Master
Agent
Others
(Web+DB+etc.)
Sets scale-out algorithm
Amazon EC2
Amazon S3
AmazonMachine Image
Wakame Gets a New Instance. (5/7)
Master
Agent
Server + XenOther
s(Web+DB+etc.)
Server + XenVirtual Machine
Amazon Web Services
AmazonMachine Image
Master
Agent
Others
(Web+DB+etc.)
Requests a new instance
Amazon EC2
Amazon S3
AmazonMachine Image
New Instance Has Come! (6/7)
Master
Agent
Server + XenOther
s(Web+DB+etc.)
Server + XenVirtual Machine
Amazon Web Services
AmazonMachine Image
Master
Agent
Others
(Web+DB+etc.)
AmazonMachine Image
Master
Agent
Others
(Web+DB+etc.)
Starts an instance up
Amazon EC2
Amazon S3
AmazonMachine Image
Wakame Configures New Instance. (7/7)
Master
Agent
Server + XenOther
s(Web+DB+etc.)
Server + XenVirtual Machine
Amazon Web Services
AmazonMachine Image
Master
Agent
Others
(Web+DB+etc.)
AmazonMachine Image
Master
Agent
Others
(Web+DB+etc.)
Asks to start services up
Makes services running
Auto scaling!
Have fun!• 2009/04/22 Release–@RubyForge–License under Ruby License
• Testers are now wanted!–Email me ([email protected])
Distribution Technology GroupYamazaki Yasuhiro ([email protected])Fujiwara Masahiro ([email protected])Yoshida Masahito ([email protected])Mikami Satoru ([email protected])