2. 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
Jirayut Nimsaeng
16 September 2012 Infrastructure
3. MOLOME
Jirayut Nimsaeng
16 September 2012 Infrastructure
4. Why AWS?
● Global
● Performance
● Flexibility
● Reliability
● Scaling
Jirayut Nimsaeng
16 September 2012 Infrastructure
5. Amazon Web Services (AWS)
● Elastic Compute Cloud (EC2)
● Simple Storage Service (S3)
● Relational Database Service (RDS)
● Elastic Load Balancing (ELB)
● CloudFront
● CloudWatch
Jirayut Nimsaeng
16 September 2012 Infrastructure
6. MOLO infrastructure
Web & API
(S3)
Images
(EC2)
Web Server
Images
(RDS)
CloudFront Database
Jirayut Nimsaeng
16 September 2012 Infrastructure
7. Scaling objectives
● Handle massive concurrent requests
● High Availability
● Automate system as much as possible
● Has disaster recovery plan
● Monitor everything
Jirayut Nimsaeng
16 September 2012 Infrastructure
8. Scaling the web server
CloudWatch
AMI
CPU > 70% CPU < 30%
Elastic Load Balancing (ELB)
Web Server 1 Web Server 2 Web Server 3
code + config
Web Server
Skeleton
Jirayut Nimsaeng
16 September 2012 Infrastructure
9. Scaling the database
US Region SG Region
read / write
(EC2)
replicate
Database
Master
Web Server Farm Database
Backup Slave
replicate
read
Database Database
Slave 1 Slave 2
Jirayut Nimsaeng
16 September 2012 Infrastructure