1.31k likes | 3.39k Views
Using Amazon EC2 . LEI WANG Tradepay II. Outline. Introduction of Amazon AWS EC 2 Architecture and Functions U sing EC2 ( Demo ) A Case Sharing Q & A. Where comes Amazon cloud ?. A Simple opinion. Amazon AWS. What’s EC 2?. Elastic Computing Cloud EC2 是一部具有 无限计算能力 的虚拟计算机。.
E N D
Using Amazon EC2 LEI WANG Tradepay II
Outline • Introduction of Amazon AWS • EC2 Architecture and Functions • Using EC2 (Demo) • A Case Sharing • Q & A
Where comes Amazoncloud? A Simple opinion
What’s EC2? • Elastic Computing Cloud • EC2是一部具有无限计算能力的虚拟计算机。
EC2 Architecture EBS S3 Manager snapshot SSH AMI EC2 Instance Private IP Instance Instance Private IP Firewall Public IP Internet
EC2 Instance type • On-demand(default) • Reserved • Spot
EC2 Instance type • Small • Large • X-large
EC2 Correlation Technique • Persistent Store —EBS(Elastic Block Store) • Volume • Snapshot • communication mechanism—IP • Public IP(DNS) --Instance VS external system • Private IP --Instance VS Instance • Elastic IP --immovable public IP,limit to 5 • Security & fault-tolerance • Security Group --portlimitation • SSH Private Key --authentication • Elastic IP
EC2Use Flow(Demo) • Private key • AMI/snapshot • Instance • EBS • Auto Scaling • Load Balancing • Cloud Watch
A Case:Deploy High-availability MySql Cluster onto EC2 LVS DR master MySql server 1 VIP ndbdcluster MySql server 2 LVS DR backup cluster Management Mysql storage layer Mysql SQL layer Applications LVS + keepalived Load balance layer
ELB DB Requests failover EC2 INSTANCE EC2 INSTANCE Standby ELB Mysql Server EC2 INSTANCE EC2 INSTANCE Mysql Server Check Stauts Routing EC2 INSTANCE Auto Scaling NDB Slave NDB Master NDB Slave Available Zone A Available Zone B Ndb_mgr Cloud Watch Synchronous replication Synchronous replication EBS EBS EBS EBS EBS Auto Scaling S3 Snapshots
Reference • Amazon web console: • http://aws.amazon.com/console/ • Amazon document: • http://aws.amazon.com/ • KSS: • http://kss/?q=rdtopic/tradepay-phase-ii-rd
Thank you! • Q & A