New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Drupal in the Cloud with Windows Azure
1. Drupal in the Cloud
with Windows Azure
websites
virtual machines
cloud services
@FordAntiTrust
fordantitrust.com
2. Me
• IT Blogger
• Photographer
• Professional Web Developer and Consultant
• Professional System Administrator (Ubuntu Server and MySQL)
• Web Hosting Owner
more info http://www.linkedin.com/in/fordantitrust or http://fordantitrust.com
3. Web Hosting Owner
Exp.
Shared Hosting: 1 Server
VPS Hosting: 1 Instances
Windows Azure Virtual Machine: 3 instances
Colocation Server (client): 10+ Server
4. compare
shared hosting virtual private server cloud virtual machines
Purchased “shared resources" Purchased "reserved all resources" Purchased "on-demand resources“
Monthly billing rates Monthly billing rates Hour/minute billing rates
- Shared CPU Usage - Processor Speed - CPU Usage
- Shared Memory Usage - Memory - Memory Utilization
- Reserved Disk Space - Disk Space - Disk Space
- Reserved Bandwidth - Bandwidth - Bandwidth
Low pricing Highly Secure High Availability
Personal use or Small businesses Emulates a Dedicated Server Instantly Scalable
5. On and Off
CLOUD
COMPUTING
Compute
Inactivity On & off workloads (e.g. batch job)
Over provisioned capacity is wasted
Period
Time to market can be cumbersome
PATTERNS
t
Growing Fast
Compute
Successful services needs to grow/scale
Keeping up w/ growth is big IT challenge
Cannot provision hardware fast enough
t
Unpredictable Bursting
Compute
Unexpected/unplanned peak in demand
Sudden spike impacts performance
Can’t over provision for extreme cases
t
Predictable Bursting
Compute
Services with micro seasonality trends
Peaks due to periodic increased demand
IT complexity and wasted capacity
t
via Windows Azure Overview - Scott Guthrie (Corporate Vice President, Windows Azure Application Platform)
6. VS!!!
Packaged Infrastructure Platform Software
Software (as a Service) (as a Service) (as a Service)
You manage
Applications Applications Applications Applications
You manage
Data Data Data Data
Runtime Runtime Runtime Runtime
Managed by vendor
Middleware Middleware Middleware Middleware
You manage
Managed by vendor
O/S O/S O/S O/S
Virtualization Virtualization Virtualization Virtualization
Managed by vendor
Servers Servers Servers Servers
Storage Storage Storage Storage
Networking Networking Networking Networking
via Windows Azure Overview - Bart Vande Ghinste (Enterprise Architect, icrosoft DPE Belgium)
9. via Windows Azure Web Sites - Harish Ranganathan (Technical Evangelist, Microsoft Corporation)
10. scenarios via Windows Azure Overview
Modern web apps Multi-tier applications Enterprise server applications
Apps that require advanced
Continuous development Porting existing line of business apps
administration
Apps that require advanced
Popular open source apps Windows or Linux operating system
networking
11. scenarios for web sites
• websites
multiple instance + database-as-a-services
• virtual machines
on-demand and scalable CPU, RAM, Disk and Bandwidth resources
• websites + virtual machines
multiple instance + traditional database (or database-as-a-services)
• cloud services (+ virtual machines)
multiple virtual machines with load balancer
+ traditional database (or database-as-a-services)
12. scenarios for web sites
• websites
multiple instance + database-as-a-services
• virtual machines
on-demand and scalable CPU, RAM, Disk and Bandwidth resources
• websites + virtual machines
multiple instance + traditional database (or database-as-a-services)
• cloud services (+ virtual machines)
multiple virtual machines with load balancer
+ traditional database (or database-as-a-services)
14. web sites
• Platform (as a Service) – PaaS
• Windows Server 2008 R2 Enterprise Edition Service Pack 1 with Microsoft IIS 7.5
• APS or .NET Framework 3.5/4.5
• PHP Version 5.3 or 5.4 (FCGI+wincache)
• Node.JS
15. web sites
• Platform (as a Service) – PaaS
• Windows Server 2008 R2 Enterprise Edition Service Pack 1 with Microsoft IIS 7.5
• APS or .NET Framework 3.5/4.5
• PHP Version 5.3 or 5.4 (FCGI+wincache)
• Node.JS
Free - Non scalable (Instance size and count)
Shared - Scalable with Instance count only
Reserved - Scalable with Instance size and/or count
azure web sites
ClearDB
SQL Azure Database (SQL Server-as-a-service)
(MySQL-as-a-Services)
16. web sites
• Platform (as a Service) – PaaS
• Windows Server 2008 R2 Enterprise Edition Service Pack 1 with Microsoft IIS 7.5
• APS or .NET Framework 3.5/4.5
• PHP Version 5.3 or 5.4 (FCGI+wincache)
Free - Non scalable (Instance size and count)
• Node.JS
Shared - Scalable with Instance count only
Reserved - Scalable with Instance size and/or count
azure web sites
ClearDB
SQL Azure Database (SQL Server-as-a-service)
(MySQL-as-a-Services)
17. web sites - free vs shared
Free
- CPU Time 1 hour / day
- CPU Time - Minute Limit 2.5 minutes / 5 minutes
- Data Out 165 MB / day (~5GB / month)
- Memory Usage 1024 MB / hour
- File System Storage 1024 MB
- Config Capacity Instance(s): No
Shared
- CPU Time 4 hours / day
- CPU Time - Minute Limit 2.5 minutes / 5 minutes
- Data Out Pay as you go (Free 5GB / month)
- Memory Usage 512 MB / hour
- File System Storage 1024 MB
- Config Capacity Instance(s): Yes
18. web sites via Windows Azure Overview shared reserved
via Windows Azure Web Sites - Harish Ranganathan (Technical Evangelist, Microsoft Corporation)
shared 1
SHARED INSTANCES
19. web sites via Windows Azure Overview shared reserved
via Windows Azure Web Sites - Harish Ranganathan (Technical Evangelist, Microsoft Corporation)
shared 2
SHARED INSTANCES
20. web sites - reserved
- Compute size
- Small 1 core RAM 1.75GB
- Medium 2 cores RAM 3.5GB
- Large 4 cores RAM 7GB
- Data Out Pay as you go (Free 5GB / month)
- File System Storage 10 GB
- Config Capacity Instance(s): Yes
21. web sites via Windows Azure Overview shared reserved
via Windows Azure Web Sites - Harish Ranganathan (Technical Evangelist, Microsoft Corporation)
reserved 0
1
SHARED INSTANCES RESERVED INSTANCE
22. web sites via Windows Azure Overview shared reserved
via Windows Azure Web Sites - Harish Ranganathan (Technical Evangelist, Microsoft Corporation)
reserved 2
RESERVED INSTANCE
23. web sites via Windows Azure Overview shared reserved
via Windows Azure Web Sites - Harish Ranganathan (Technical Evangelist, Microsoft Corporation)
reserved 2
RESERVED INSTANCE RESERVED INSTANCE
24. web sites
• Platform (as a Service) – PaaS
• Windows Server 2008 R2 Enterprise Edition Service Pack 1 with Microsoft IIS 7.5
• APS or .NET Framework 3.5/4.5
• PHP Version 5.3 or 5.4 (FCGI+wincache)
• Node.JS
Free - Non scalable (Instance size and count)
Shared - Scalable with Instance count only
Reserved - Scalable with Instance size and/or count
azure web sites
ClearDB
SQL Azure Database (SQL Server-as-a-service)
(MySQL-as-a-Services)
25. web sites
• Platform (as a Service) – PaaS
• Windows Server 2008 R2 Enterprise Edition Service Pack 1 with Microsoft IIS 7.5
• APS or .NET Framework 3.5/4.5
• PHP Version 5.3 or 5.4 (FCGI+wincache)
• Node.JS
Free - Non scalable (Instance size and count)
Shared - Scalable with Instance count only
Reserved - Scalable with Instance size and/or count
azure web sites
SQL Azure Database (SQL Server-as-a-service) ClearDB (MySQL-as-a-Services)
26. web sites
• Platform (as a Service) – PaaS
• Windows Server 2008 R2 Enterprise Edition Service Pack 1 with Microsoft IIS 7.5
• APS or .NET Framework 3.5/4.5
• PHP Version 5.3 or 5.4 (FCGI+wincache)
• Node.JS
Free - Non scalable (Instance size and count)
Shared - Scalable with Instance count only
Reserved - Scalable with Instance size and/or count
azure web sites
SQL Azure Database (SQL Server-as-a-service) ClearDB (MySQL-as-a-Services)
37. OS Images
Base OS image for new Virtual Machines
Sys-Prepped/Generalized/Read Only
Created by uploading or by capture
38. VM Size CPU Cores Memory Bandwidth # Data Disks
Extra Small Shared 768 MB 5 (Mbps) 1
Small 1 1.75 GB 100 (Mbps) 2
Medium 2 3.5 GB 200 (Mbps) 4
Large 4 7 GB 400 (Mbps) 8
Extra Large 8 14 GB 800 (Mbps) 16
40. Disks and Images
Base OS image for new Virtual Machines
Sys-Prepped/Generalized/Read Only
Created by uploading or by capture
Writable Disks for Virtual Machines
Created during VM creation or during
upload of existing VHDs.
Disk Type Default Supported
OS Disk ReadWrite ReadOnly and ReadWrite
Data Disk None None, ReadOnly and ReadWrite
41. Capability OS Disk Data Disk
Host Cache Default ReadWrite None
Max Capacity 127 GB 1 TB
Imaging Capable Yes No
Hot Update Cache Setting Requires Reboot Change Cache Without Reboot
Add/Remove without Reboot
56. virtual machine with load balancer in cloud services
Endpoint Set
Public Port
Local Port
Protocol (TCP/UDP)
Name
57. virtual machine with load balancer in cloud services
Windows Azure
Endpoint Set caching
Public Port
Local Port
memcached
Protocol (TCP/UDP) (http session)
Name
cloudservice - thinklover.cloudapp.net
- thinklover2: 62325:22 (ssh) 80:80 (http)
- thinklover: 58291:22 (ssh) 80:80 (http)
database
as-a-service
58. virtual machine with load balancer in cloud services
Endpoint Set
Public Port
Local Port
memcached
Protocol (TCP/UDP) (http session)
Name
cloudservice - thinklover.cloudapp.net
- thinklover2: 62325:22 (ssh) 80:80 (http)
- thinklover: 58291:22 (ssh) 80:80 (http)
mysqldb - thinkloverdb.cloudapp.net
- 55405:22 (ssh) database
- 11211:11211 (memcached) as-a-service
59. virtual machine with load balancer in cloud services
Endpoint Set
Public Port
Local Port
Protocol (TCP/UDP) database
Name
cloudservice - thinklover.cloudapp.net
- thinklover2: 62325:22 (ssh) 80:80 (http)
memcached
- thinklover: 58291:22 (ssh) 80:80 (http)
(http session)
mysqldb - thinkloverdb.cloudapp.net
- 55405:22 (ssh)
- 3306:3306 (mysql)
- 11211:11211 (memcached)
62. virtual machine with load balancer in cloud services
with probes
Load Balancer Probe
Set Name
Probe Protocol (HTTP/TCP)
Probe Port
Probe Path (/healthcheck.aspx)
Looks for HTTP 200
(Omit Probe Path for TCP)
66. how to
1. create the first virtual machine
2. create the second virtual machine
3. add and connect virtual machines to the cloud service
4. set availability of virtual machines.
5. add an endpoint to the first virtual machine
6. set up load balancing of the virtual machines
7. (optional) set up probes in PowerShell
67. mixed mode
web sites + virtual machine + cloud services
Cloud
App
Virtual
Machine
80
Web Sites
Load
Balancer
75. data out (CDN)
Billing Regions Geographic Location
North America
Zone 1
Europe
Asia Pacific
Zone 2 Latin America
Middle East / Africa
CDN Outbound Zone 1 Zone 2
First 10 TB / Month $.12 per GB $.19 per GB
Next 40 TB / Month $.08 per GB $.14 per GB
Next 100 TB / Month $.06 per GB $.12 per GB
Next 350 TB / Month $.04 per GB $.1 per GB
Next 524 TB / Month $.03 per GB $.08 per GB
Next 4096 TB / Month $.025 per GB $.07 per GB
Over 5,120 TB / Month Contact Contact
77. SQL Azure Database
SQL Azure Database is Microsoft SQL Server-as-a-Services.
- Web Edition supports up to a 5 GB maximum size
- Business Edition supports up to a 150 GB maximum size
Database Units (DU) that will
Database Size Price Per Database Per Month
appear on your Bill
0 to 100 MB Flat $4.995 0.5 DU
Greater than 100 MB to 1 GB Flat $9.99 1 DU
$9.99 for first GB, $3.996 for each 1 DU for first GB
Greater than 1 GB to 10 GB
additional GB 0.4 DU for each additional GB
$45.954 for first 10 GB, $1.996 for 4.6 DU for first 10 GB
Greater than 10 GB to 50 GB
each additional GB 0.2 DU for each additional GB
$125.874 for first 50 GB, $.999 for 12.6 DU for first 50 GB
Greater than 50 GB to 150 GB
each additional GB 0.1 DU for each additional GB
78. storage
Daily amount of data stored (in GB) over a monthly period.
For Blob, Table, Queue, and Windows Azure Drive storage
Storage Capacity Geographically Redundant Locally Redundant
First 1 TB / Month $.095 per GB $.070 per GB
Next 49 TB / Month $.08 per GB $.065 per GB
Next 450 TB / Month $.07 per GB $.06 per GB
Next 500 TB / Month $.065 per GB $.055 per GB
Next 4,000 TB / Month $.06 per GB $.045 per GB
Next 4,000 TB / Month $.055 per GB $.037 per GB
Over 9,000 TB / Month Contact Contact