Molome infrastructure

20
MOLOME Infrastructure MOLOME Infrastructure 16 September 2012 16 September 2012 Jirayut Nimsaeng Jirayut Nimsaeng

description

Molome Infrastructure with AWS

Transcript of Molome infrastructure

Page 1: Molome infrastructure

MOLOME InfrastructureMOLOME Infrastructure

16 September 201216 September 2012

Jirayut NimsaengJirayut Nimsaeng

Page 2: Molome infrastructure

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

Page 3: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

MOLOMEMOLOME

Page 4: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Why AWS?Why AWS?

● Global

● Performance

● Flexibility

● Reliability

● Scaling

Page 5: Molome infrastructure

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

Page 6: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

MOLO infrastructureMOLO infrastructure

(RDS)Database

(EC2)Web Server

CloudFront

(S3)Images

Web & API

Images

Page 7: Molome infrastructure

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

Page 8: Molome infrastructure

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%

Page 9: Molome infrastructure

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

Page 10: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Monitoring Tools: topMonitoring Tools: top

Page 11: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Monitoring Tools: htopMonitoring Tools: htop

Page 12: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Monitoring Tools: iostatMonitoring Tools: iostat

Page 13: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Monitoring Tools: iotopMonitoring Tools: iotop

Page 14: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Monitoring Tools: mytopMonitoring Tools: mytop

Page 15: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Monitoring Tools: innotopMonitoring Tools: innotop

Page 16: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Monitoring Tools: muninMonitoring Tools: munin

Page 17: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Benchmark Tools: siegeBenchmark Tools: siege

Page 18: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

What's next?What's next?

● MongoDB

● Node.js

● More platforms

● Build our own cloud?

Page 19: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Coming soon!Coming soon!

Page 20: Molome infrastructure

16 September 2012

Jirayut Nimsaeng

Infrastructure

Question?Question?