22
Drupal in the Cloud Jim Salem Josh Koenig Pierre Couzy #drupalinthecloud Brought to you by Adam Hansen

Drupal in the cloud with Windows Azure

Embed Size (px)

DESCRIPTION

Current state of implementation for Drupal with Windows Azure, Azure Blob Storage, CDN, and Sql Azure

Citation preview

Page 1: Drupal in the cloud with Windows Azure

Drupal in the Cloud

Jim SalemJosh KoenigPierre Couzy

#drupalinthecloudBrought to you by Adam Hansen

Page 2: Drupal in the cloud with Windows Azure

Azure & Drupal

(work in progress)

Pierre Couzy – [email protected]

Page 3: Drupal in the cloud with Windows Azure

Azure - where

Page 4: Drupal in the cloud with Windows Azure

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

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

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
Page 8: Drupal in the cloud with Windows Azure

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
Page 10: Drupal in the cloud with Windows Azure
Page 11: Drupal in the cloud with Windows Azure
Page 12: Drupal in the cloud with Windows Azure

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

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
Page 15: Drupal in the cloud with Windows Azure

Using blob storage

Page 16: Drupal in the cloud with Windows Azure

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
Page 18: Drupal in the cloud with Windows Azure
Page 19: Drupal in the cloud with Windows Azure
Page 20: Drupal in the cloud with Windows Azure

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
Page 22: Drupal in the cloud with Windows Azure

What did you think?Locate this session on the DCC website:http://chicago2011.drupal.org/sessions

Click the “Take the Survey” link.

Thanks!