Download - Drupal in the cloud with Windows Azure
![Page 1: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/1.jpg)
Drupal in the Cloud
Jim SalemJosh KoenigPierre Couzy
#drupalinthecloudBrought to you by Adam Hansen
![Page 3: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/3.jpg)
Azure - where
![Page 4: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/4.jpg)
Data Center
Hosted Service
LB
CDN
Web Site(ASPX, ASMX, WCF)Web Site
(ASPX, ASMX, WCF)Web RoleWorker ServiceWorker Role
LB
StorageTables Blobs
Queue
Browser
Azure - what
![Page 5: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/5.jpg)
Quick facts
• Who is working on this ?– Microsoft & Commerce Guys
• Where can I find it ?– On d.o
• When can I use it ?– Should be complete before summer
• How can I test on Azure ?– Try « azure one month pass » in your search engine
![Page 6: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/6.jpg)
Provisioning the web farm
• Azure basic deployment unit is a Role– Application package (drupal in our case)– Size of machines– Number of machines– Firewall configuration
• A drupal package is– PHP runtime & configuration– Drupal code– Deployment-specific settings
![Page 7: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/7.jpg)
![Page 8: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/8.jpg)
Relational data go to Sql Azure
• Highly available, pay per volume– 10$/month/Gb
• Current implementation uses Sql Azure for– Sessions,– Queues,– Caches,– Locks,– Fields
• Some of these will change
![Page 9: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/9.jpg)
![Page 10: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/10.jpg)
![Page 11: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/11.jpg)
![Page 12: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/12.jpg)
If you *really* want MySql on Azure
VIP
MySQL
VIP
Load Balancer
MySQL MySQLMySQL
MS S
VIP
Load Balancer
MySQL MySQL
Load Balancer
Doable, but you’ll manage a lot of moving parts. See http://bit.ly/93Jgib
![Page 13: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/13.jpg)
Other content goes to Blob storage
• Highly scalable• Stream wrapper API available for PHP– Special credits to DamZ for ironing this
• Some concepts differ from filesystem– 2-level structure (container+blob)– Extended Metadata available– Security is done differently
![Page 14: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/14.jpg)
![Page 15: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/15.jpg)
Using blob storage
![Page 16: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/16.jpg)
Performance tuning
• You can use the usual suspects– APC/Wincache for local caching– Redis/Memcache for distributed caching
• There’s also a CDN in Azure– Until yesterday, hooked up to blob storage– Now usable on Azure Roles (web farms)• Will honour caching headers from dynamic content• Understands https • Understands query string
![Page 17: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/17.jpg)
![Page 18: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/18.jpg)
![Page 19: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/19.jpg)
![Page 20: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/20.jpg)
Where are we now ?
• Sql Azure driver : done• Blob storage module : in progress– Needs to plug in the CDN– Leverage the authorization mechanism
• Deployment & updates : just beginning– Azure has instant-switch between staging & prod– Plus hot database backups– We’re looking at other projects to help
![Page 21: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/21.jpg)
![Page 22: Drupal in the cloud with Windows Azure](https://reader036.vdocuments.site/reader036/viewer/2022062313/558c967ad8b42aeb248b46dc/html5/thumbnails/22.jpg)
What did you think?Locate this session on the DCC website:http://chicago2011.drupal.org/sessions
Click the “Take the Survey” link.
Thanks!