3. Amazon’s three businesses Consumer Business US, UK, DE, FR, JP, CA, CN, IT 電子商務服務 Seller Business 電商平台服務 IT Infrastructure Business IT基礎設施服務
4. Our plan for today 議程 1) Introduction to Cloud Computing 雲端計算簡介 2) What is Amazon Web Services? AWS簡介 3) Success stories 成功案例分析 4) Demo 操作演示 5) How to get started 如何開啟AWS服務
6. A style of Computing in which elastic IT-enabled capabilities Are delivered “As a Service” To External customers Using Internet technologies. Gartner, 2008
7. Amazon’s Cloud Computing 亞馬遜雲端計算 Elastic Capacity 彈性擴容 Faster time to market 更短的產品上市時間 No initial investment (No Capex) 無需承擔高額的基礎設施投資 (非資本性支出) Pay as you go, pay for what you use 根據使用的資源付費 Focus on your business 讓您更關注核心業務
8. 1) Elastic Capacity彈性擴容 Scaling up and down in minutes No need to provision Optimize resources based on your needs 瞬間增大或縮小所需資源 無需提前付費 根據您的需求實現資源優化和利用
9. 2) Faster time to market更短的產品上市時間 Infrastructure is no longer a barrier Easier to test a solution Easier to deploy worldwide IT基礎設施不再是您業務拓展的瓶頸 更簡易的產品測試方案 更高效的海外業務拓展
10. 3) No initial investment (No CapEx)無需承擔高額的基礎設施投資(非資本性支出) Cloud Computing doesn't require initial investments You pay for it in a different way 雲端計算並不要求傳統的一次性基礎設施投資 您將以革命性的付費方式來支付所需服務
11. 4) Pay as you go, pay for what you use根據使用的資源付費 Example: Pay servers "by the hour", only the ones you use Pay storage "per Gigabyte", only the ones you use 例如: 根據使用時間付費 根據使用的數據量付費
12. 5) Focus on your business讓您更關注核心業務 Automation + Better management tools Less time is spent on repetitive tasks 自動化操作以及更簡便的管理工具 大幅縮短重複性操作的時間
21. Regions Region: Set of multiple Data Centers 地區:AWS數據中心的集結地 US West US East AP Japan EU West AP Singapore
22. Availability Zones (AZ) Distinct locations, insulated from failures 可用區域:同一地區內,不同地點,異地冗餘 A B US West US East AP Japan C A B A B A B C D C EU West A B AP Singapore
23. Availability Zones (AZ) Distinct locations, insulated from failures Low latency connectivity within same Region A B US West US East AP Japan C A B A B A B C D C EU West A B AP Singapore 同一地區內實現高效網絡互聯
26. Zynga Creators of the most popular FB games: Farmville, Mafia Wars, Cityville, etc. 最受歡迎的Facebook遊戲供應商 More than 12,000 servers on AWS 在AWS上架設超過12000台服務器 CITYVILLE: 0 to 100+ Million users in just 43 days! 43天內產生超過一億用戶的訪問量 100% on AWS 百分之百AWS平台架構
27.
28. Netflix.com More than 13 Billion USD market cap Almost 100% on Amazon Web Services 超過130億美金市值 接近百分之百AWS平台架構 26 Million subscribers 兩千六百萬付費用戶 "AWS let us focus on innovation“ “AWS讓我們能夠專注於創新”
29.
30.
31. Animoto: Video App on Amazon EC2Animoto案例:在EC2上部署視頻應用 3000 - 2000 - 1000 - Scaled to peak of 3,500 instances in 3 days 在三天內擴展到3500台服務器以應對網絡訪問高峰 Number of Servers 服務器數量 Launch of Facebookmodification 在Facebook上進行產品更新 Apr 12th Apr 14th Apr 15th Apr 16th Apr 18th Apr 19th Apr 20th Apr 17th Apr 13th
35. Scale 可擴展性 We operate at Large scale Multiple Data Centers, multiple Regions Economies of Scale -> Reduced Costs -> Happy Customers 我們重視規模效應 多個數據中心,多重服務區域 規模效應 ->低成本 -> 高客戶滿意度
36. Support 售後支持 Basic: Forums, Technical FAQs, Service Health Dashboard Premium: Bronze, Silver, Gold, Platinum 基本服務:產品論壇,操作指南,AWS服務監測表 高級支持:銅牌客戶,銀牌客戶,金牌客戶,白金客戶
37. Pace of innovation at Amazon Web Services Global Partner Ecosystem 全球合作夥伴體系
58. Amazon Web Services Linux 1 Linux 2 Internet MySQL
59. Security Group Databases Amazon Web Services Linux 1 Linux 2 Security Group web-servers Internet MySQL
60. Security Group Databases Amazon Web Services Linux 1 Linux 2 Security Group web-servers Internet MySQL CIDR: 0.0.0.0/0 (danger!)
61. Security Group Databases Amazon Web Services Linux 1 Linux 2 Security Group web-servers My computer Internet MySQL CIDR: 220.255.2.144/32
62. Security Group Databases Amazon Web Services Linux 1 Linux 2 ssh: CIDR: 220.255.2.144/32 Security Group web-servers EC2 Security Group: web-servers My computer http: CIDR: 0.0.0.0/0 Internet MySQL
First, a true Cloud Computing platform should provide elastic capacity, or the capacity to scale your infrastructure up and down, on demand.
The second advantage is time to market: since your infrastructure is no longer a barrier, and provisioning becomes instant requisition of cloud capacity, your product or service can hit the market much sooner.
There is no need for initial investment, or Capex. A true Cloud Computing platform doesn't require you to invest large sums of money before being able to run your infrastructure.
Even more importantly, you pay as you go, and pay only for what you use.As an example, you can "pay as you go" for a server, which means paying only a few cents per hour.You only pay for what you use, which means that if you run 3 servers now, 5 in the next hour, 2 in the following hour, you will only pay for the servers that you activated and used during these hours.
Last, but not least, with Cloud Computing you can automate most things, and manage your assets in a more efficient way. This allows you to focus more time on your business.
故障隔離
Zynga created the most successful Facebook games, such as Cityville, Farmville, Mafia Wars, Treasure Isle, and so on.As I told you, they run more than 12,000 servers on Amazon Web Services, and they serve more than 230 millions users monthlyThey run 100% on AWS, and they particularly appreciate the flexibility and scalability of the AWS Platform.When they launch a new game, they start with few servers, and then ramp up their capacity in real time, based on the success of the game.This way they can provide a great service to their customers, while keeping costs down.(This is a good example to illustrate our customer whose scale of usage is as good as an enterprise class).
They are now migrating 100% on Amazon Web Services, and already migrated most of their services, including the movie lists, the website search, the transcoding, recommendation system, etc.They now have more than 10 Million subscribers, and more than 100k DVD titles online.For them, AWS has been a great choice. They say that: "AWS let us focus on innovation".
You can see the spike in traffic that this new app caused.The X axis represents time elapsed and the Y axis represents the EC2 instances launched.Because they were using AWS, Animoto didn’t have to do a thing—AWS took care of everything.
1:28Open a browser, and login into the Amazon Web Services Console.I assume that you already created an Amazon Web Services, or AWS, account, which takes only a few minutes.You enter your login and password, and then you'll be presented with the main dashboard.From here, you can control various services.Let's start by launching a virtual server, called Amazon EC2. I can pick Windows or Linux, and since I'm more familiar with Linux, I'll launch a 32-bit Linux virtual machine.You can configure many aspects, such as security, access and so on, and everything is summarized here.After confirming these options by clicking "launch", we go back to the main console, click the "instances" tab on the left, and we can see that the machine is now launching.If we refresh the page, we can now see the green button which confirms that the machine is now running.Let's now open a terminal, and connect to this EC2 instance via SSH.We start by installing an apache web server, called HTTPD, and then we descend into the main web directory.
0:07We can now download a zip file containing our example website, then we unzip it, and copy it to the www folder.
0:20Now it's time to start the web server, httpd, and check its status to make sure it's running. Good. We can now open a browser and see our website, live, up and running. Nice pictures, right?
0:51We've just uploaded our pictures to Amazon S3, which provides highly durable internet storage, in a bucket called "gomortlock".To distribute this content worldwide, we will use a service called CloudFront.Cloudfront allows you to create a so-called "distribution" for your files, which means your files will be copied across multiple locations around the world.You can add comments to this distribution, to easily identify it later on.Once the distribution is created, it will be activated, or "enabled", in just a few minutes.Everything can be done using the Management console.Once you see the green light, it's time to perform a very simple operation.
0:09In your html code, change the URL of your pictures to the CloudFront distribution, like this.
0:14The website looks exactly the same, but if we look at the pictures, they are served not from the original server anymore, but from CloudFront.The website is now faster, worldwide.
0:12We start to notice that this website is not "just a hobby" anymore.It has the potential to become a real business.
0:10In short, we want to go from this amateur picture website, which we can consider version 1 of GoMortlock.com, to a...
0:18... fully fledged online portal, with pictures, videos, fan pages and more.We can call it "GoMortlock.com" version 2.All these features, of course, require a different approach.We can't just use a single server and a CDN.
0:08In short, our IT Architecture needs an update.Let's see how it can be done.
0:15There are many difficult things related to Databases: Administration, Backups, Clustering, Replication, and so on. Difficult, time consuming, error prone.How can we use automation to optimize this?
1:06On the Management console we already configured a security group to allow web servers to access the database machines. Security is always important.Then, we launch a Database instance, specifying the type of machine and its computing power, the size of the database, the instance identifier, the username and password, and so on.If the configuration is ok, we can confirm.And after a few minutes, our DB instance will be up and running. We can monitor its performances, as you can see here, or read recent events.
0:10To use this Database instance, we just need to change the connection string, pointing it to the new Database. That's it.
1:04To improve performances, we can also easily create "read replicas", also automatically managed by Amazon. The replication is done in the background, while the main Database is still running.Once they're both available, with a nice green light, it might be time to create our first Database Snapshot, that we call "test1", even though snapshots and backups are automatically managed by Amazon, and this is another way to save time and efforts, and reduce errors.You can also monitor both machines with our extensive monitoring console.