Ronnie Saurenmann Principal Architect Microsoft Switzerland [email protected] Cloud Computing „a smarter way of Hosting“ • Acquire resources on demand release them when no longer needed • Pay.
Download ReportTranscript Ronnie Saurenmann Principal Architect Microsoft Switzerland [email protected] Cloud Computing „a smarter way of Hosting“ • Acquire resources on demand release them when no longer needed • Pay.
Ronnie Saurenmann Principal Architect Microsoft Switzerland [email protected] Cloud Computing „a smarter way of Hosting“ • Acquire resources on demand release them when no longer needed • Pay for what you use • Turn fixed cost into variable cost • No internal IT needed • No internal policy, no internal fees • 24 x 7, 99.9% Reliability • Geo Location • Geo Data Replication Cloud Fundamentals • Infrastructure as a Service (IaaS): basic compute and storage resources – On-demand servers – Amazon EC2, VMWare vCloud • Platform as a Service (PaaS): cloud application infrastructure – On-demand application-hosting environment – E.g. Google AppEngine, Salesforce.com, Windows Azure • Software as a Service (SaaS): cloud applications – On-demand applications – E.g. GMail, Microsoft Office Web Companions The Benefits of the Cloud • The Cloud is about cheap, on-demand capacity = Managed for You Applications Runtimes Database Operating System Virtualization Server Storage Networking Standalone Servers IaaS PaaS SaaS Introducing Windows Azure Windows Azure is an internet-scale cloud services platform hosted in Microsoft data centers around the world, proving a simple, reliable and powerful platform for the creation of web applications and services. SQL Data Platform as a Service The Power of the SQL Data Platform in the cloud Leverages existing skills and rich tooling ecosystem Enables database applications with new, “cloud” capabilities DBA only focus on the logical DB Database Replicas Replica 1 DB Replica 2 Replica 3 Relational DB Replica 1 Replica 2 Replica 3 Azure Firewall Demo Windows Azure Automates the Management of Your IT Resources Service Management is performed by the Fabric Controller, which controls all the resources within the data center. The Fabric Controller deploys your service and monitors the overall health of the fabric. Security and Control State-of- Virtualized Computation provides massive application scalability. Customers can build a combination of web and worker roles. Those roles can be replicated as needed to scale the applications and computational processing power. Storage Services allow customers to scale to store large amounts of data – in any format – for any length of time, only paying for what they use or store. the-art physical security processes combined with strictly controlled OS access model. Data is replicated in multiple fault domains in location selected by the customer. State-of-the-art data centers located around the world. Host your applications and data securely, accessible from everywhere you allow. Compute Services in Windows Azure GOAL: Massive Scalability Scale out – not up – by replicating worker instances as needed. role types: Web Role, Worker Role & VM Role Windows Azure applications are built with web roles, worker roles, VM roles or a combination deployed to a number of instances. Allow applications to scale user and compute processing independently. Each instance runs on its own VM (virtual machine), replicated as needed Comparison of Role Types • Web Role : The role is hosted on IIS • Worker Role : The role is an executable (you can create your own web server, host a database, …) • VM Role : The role is the VM. – Use Windows services, scheduled tasks, etc. – You configure and maintain the OS. Web / Worker Role Admin Web / Worker Role Abstraction (i.e. Less IT & Less Plumbing Code) VM Role Control VM Role – Overview • Developers have full control over the OS image • Ability to upload your own customized WS08R2 Enterprise images • Operators can reboot, re-image and Remote Desktop 13 VM Role – Common Questions • Will any WS08 R2-based application work? – No, VM Role inherits some Web/worker restrictions: • SLA requires at least two identical/similar instances • No durability of OS image on hardware failure • One public IP per service (unless using Windows Azure Virtual Network) • Does Windows Azure take care of *everything*? – No • With VM Role, the customer creates & maintains the OS • Windows Azure does not automatically understand the health of the applications running in our VM – But, since you deploy services instead of individual VM’s, Windows Azure does automate many management tasks. Virtual Machines Sizes Instance Size CPU Extra Small 1.0 GHz Small Memory Instance Storage I/O Performance Price 768 MB 20 GB Low $.05 per hour 1.6 GHz 1.7 GB 225 GB Moderate $.12 per hour Medium 2 x 1.6 GHz 3.5 GB 490 GB High $.24 per hour Large 4 x 1.6 GHz 7 GB 1000 GB High $.48 per hour Extra Large 8 x 1.6 GHz 14 GB 2040 GB High $.96 per hour Compute (Web Role IIS) Relational DB Replica 1 Replica 3 Azure NLB .aspx Replica 2 SQL TDS Azure Firewall Demo Full-IIS Support • Multiple Web sites and applications • Improved iterative local development with the Development Fabric • Iterative cloud development with Web Deploy and IIS Manager • Host level configuration, including native modules Demo Storage Services in Windows Azure GOAL: Scalable, durable utility-based storage Windows Azure storage is an application managed by the Fabric Controller Windows Azure applications can use native storage, MySQL within a VM, or SQL Azure Application state is kept in storage services, so worker roles can replicate as needed Blobs can be stored in global Windows Azure Content Delivery Network (CDN) Blobs, Tables, Queues and Drives BLOBS: Provide a simple interface for storing named files along with metadata for the file. TABLES: Provide structured storage. A table is a set of entities which contain a set of properties. QUEUES: Provide reliable storage and delivery of messages for an application. DRIVES: A durable NTFS file system volume, sharable across instances. Compute (Web Role IIS) Relational DB SQL TDS Replica 1 Replica 3 Storage Azure NLB .aspx Replica 2 Azure Firewall Demo Remote Desktop • Portal-integrated Remote Desktop access to instances within your deployment • Use standard Remote Desktop client • Support for all three role types – Web, worker, and VM • Dynamic configuration of Remote Desktop settings – Credentials, Enable/Disable, Expiration of credentials • Ability to take instances on/off the load balancer for debugging Compute (Web Role IIS) Relational DB SQL TDS Replica 1 Replica 2 Replica 3 Storage StressTester (Worker Role) Remote Desktop .aspx Azure NLB Azure Firewall Demo Inactivity Period Usage Average Compute Compute Workload Patterns Optimal For Cloud Time Time Average Usage Time EXAMPLES: Breaking News (Roger Federer wins Roland Garros), New products EXAMPLES: Classical successful startup Compute Compute EXAMPLES: Testing, End-of-day, month, year calculations, VIP Events Average Usage Average Usage Time EXAMPLES: Sport-Event-Site (FIFA, UEFA, FIS,…), Xmas Shopping, Comparis,… Compute (Web Role IIS) Relational DB SQL TDS Replica 1 Replica 2 Replica 3 Storage Cloned Relational DB Azure NLB Replica 2 Replica 3 .aspx Replica 1 Azure Firewall Demo Windows Azure Content Delivery Network • >20 global locations with 99.95% availability • Enabling CDN access for your Windows Azure storage account • Same content, 2 URLs with different access patterns • CDN URL: http://azXXXX.vo.msecnd.net/images/myimage.jpg • WA Storage URL: http://myacct.blob.core.windows.net/images/myima ge.jpg • Adaptive Video Streaming can work with the CDN too Compute (Web Role IIS) Relational DB SQL TDS Replica 2 Replica 3 Storage StressTester (Worker Role) Remote Desktop .aspx Azure NLB CDN New York Azure Firewall .jpg, .xap Replica 1 CDN Zurich Demo Windows Azure AppFabric Caching • A distributed, in-memory cache for applications running in Windows Azure – In-memory cache located near your Windows Azure applications – Simple administration • Benefits – Highly scalable caching solution with low latency and high throughput – Can dynamically increase and decrease as needed – End-user doesn’t have to bother with configuration, deployment, or management of their cache AppFabric Caching Advantages • Integrates easily into existing applications – ASP.NET session state and output cache providers enable no-code integration • Same managed interfaces as Windows Server AppFabric Cache • Caches any serializable managed object – No object size limits – Near cache (client-local) for hot data without serialization costs Replica 3 Storage StressTester (Worker Role) Remote Desktop .aspx Azure NLB CDN New York Azure Firewall .jpg, .xap Replica 2 HTML (Cached) SQL TDS Replica 1 App Fabric Cache Compute (Web Role IIS) Relational DB CDN Zurich Demo SQL Azure Pricing Web Edition Business Edition • 1 GB Database • Chf 10.98 / month • Bandwidth • 10 GB Database • Chf 109.98 / month • Bandwidth – Chf 0.11 /GB inbound – Chf 0.165 /GB outbound 37 – Chf 0.11 /GB inbound – Chf 0.165 /GB outbound Windows Azure Pricing Meters Elastic, scalable, secure, & highly available automated service platform Compute: Per Service Hour Starting at Chf 0.132 / service hour + Variable instance sizes Storage Per GB stored & transactions Blob & table Chf 0.165 / GB Storage Access = Chf 0.11 / 100K Transactions Bandwidth Per GB transfer in or out of a datacenter US/EU Bandwidth = Chf 0.11 in / Chf 0.165 out / GB Cost of 1h test SQL Azure Web Role (IIS) Worker Role (stress test) Storage CDN Bandwith AppFabric Cache Total CHF 2 Web DB, 1 GB 5 cores 8 cores 5 GB 1 GB bandwith 1 GB bandwith 0.732 0.66 1.056 0.0275 0.165 0.165 free (ctp) 2.8055 Test it now for free • Windows Azure free test account (30 day) – No credit card required – Test it now and win cool prices • Introductory Special – 25 hours of a small compute instance – 500 MB of storage – 1GB Web Edition database (available for first 3 months only) • Cloud Essentials for Microsoft Partners – 750 hours of an extra small compute instance – 3 GB of storage – 1GB Web Edition Database • Through your MSDN Subscription (Premium, Ultimate & BizSpark) – 750 hours of an small compute instance – 10 GB of storage – 3x 1GB Web Edition Databases Free consulting • If you have already an Azure project idea, but you are still unsure about the right architecture or which services you should use, we invite you to attend one of our free consulting hours at the Cloud Innovation Center in Wallisellen Replica 3 Storage Compute (Worker Role) Remote Desktop .aspx Azure NLB CDN New York Azure Firewall .jpg, .xap Replica 2 HTML (Cached) SQL TDS Replica 1 App Fabric Cache Compute (Web Role IIS) Relational DB CDN Zurich