Post on 02-Jul-2015
description
MOLOME InfrastructureMOLOME Infrastructure
16 September 201216 September 2012
Jirayut NimsaengJirayut Nimsaeng
16 September 2012
Jirayut Nimsaeng
Infrastructure
Who am I?Who am I?
● @winggundamth
● Ubuntu and Android user
● Believe in Open Source
● Geek
● System Engineer at Hua Lampong Co.,Ltd.
● Cloud projects in future plan
16 September 2012
Jirayut Nimsaeng
Infrastructure
MOLOMEMOLOME
16 September 2012
Jirayut Nimsaeng
Infrastructure
Why AWS?Why AWS?
● Global
● Performance
● Flexibility
● Reliability
● Scaling
16 September 2012
Jirayut Nimsaeng
Infrastructure
Amazon Web Services (AWS) Amazon Web Services (AWS)
● Elastic Compute Cloud (EC2)
● Simple Storage Service (S3)
● Relational Database Service (RDS)
● Elastic Load Balancing (ELB)
● CloudFront
● CloudWatch
16 September 2012
Jirayut Nimsaeng
Infrastructure
MOLO infrastructureMOLO infrastructure
(RDS)Database
(EC2)Web Server
CloudFront
(S3)Images
Web & API
Images
16 September 2012
Jirayut Nimsaeng
Infrastructure
Scaling objectivesScaling objectives
● Handle massive concurrent requests
● High Availability
● Automate system as much as possible
● Has disaster recovery plan
● Monitor everything
16 September 2012
Jirayut Nimsaeng
Infrastructure
Elastic Load Balancing (ELB)
Scaling the web serverScaling the web server
Web Server 1
CloudWatch
Web Server 2 Web Server 3
CPU > 70%
AMI
Web ServerSkeleton
code + config
CPU < 30%
16 September 2012
Jirayut Nimsaeng
Infrastructure
SG RegionUS Region
Scaling the databaseScaling the database
(EC2)Database
Master
DatabaseSlave 1
DatabaseSlave 2
Web Server Farm DatabaseBackup Slave
replicate
replicateread / write
read
16 September 2012
Jirayut Nimsaeng
Infrastructure
Monitoring Tools: topMonitoring Tools: top
16 September 2012
Jirayut Nimsaeng
Infrastructure
Monitoring Tools: htopMonitoring Tools: htop
16 September 2012
Jirayut Nimsaeng
Infrastructure
Monitoring Tools: iostatMonitoring Tools: iostat
16 September 2012
Jirayut Nimsaeng
Infrastructure
Monitoring Tools: iotopMonitoring Tools: iotop
16 September 2012
Jirayut Nimsaeng
Infrastructure
Monitoring Tools: mytopMonitoring Tools: mytop
16 September 2012
Jirayut Nimsaeng
Infrastructure
Monitoring Tools: innotopMonitoring Tools: innotop
16 September 2012
Jirayut Nimsaeng
Infrastructure
Monitoring Tools: muninMonitoring Tools: munin
16 September 2012
Jirayut Nimsaeng
Infrastructure
Benchmark Tools: siegeBenchmark Tools: siege
16 September 2012
Jirayut Nimsaeng
Infrastructure
What's next?What's next?
● MongoDB
● Node.js
● More platforms
● Build our own cloud?
16 September 2012
Jirayut Nimsaeng
Infrastructure
Coming soon!Coming soon!
16 September 2012
Jirayut Nimsaeng
Infrastructure
Question?Question?