18
Community Stacker Bret Piatt A Match Made in the Cloud How to best take advantage of the cloud for Drupal Sites &

Drupal In The Cloud

Embed Size (px)

DESCRIPTION

The secret is out – Drupal has become the ‘go-to’ open source software for the publication and management of website content. By pairing Drupal with cloud technologies there is a whole new world of user benefits well beyond scale and performance. In this session, Bret Piatt, director, technical alliances at Rackspace Hosting will discuss how to best take advantage of cloud technologies with Drupal sites. The panel presentation will address: • Leveraging the cloud ecosystem for managing configuration, code, and backups • How to scale Drupal clusters by integrating with cloud APIs • Enhancing site scale and performance by taking advantage of cloud file storage/CDN • Cloud/Drupal success stories such as Chapter Three’s ( http://www.chapterthree.com ) on Mercury, a Drupal PaaS built on The Rackspace Cloud’s Cloud Servers

Citation preview

Page 1: Drupal In The Cloud

Community StackerBret Piatt

A Match Made in the CloudHow to best take advantage of the cloud for Drupal Sites

&

Page 2: Drupal In The Cloud

Why cloud?

• “The Cloud” is hosting with an API–Programmers Like APIs!–Reliable, Reusable Start States–On Demand–Usage-based Pricing

Page 3: Drupal In The Cloud

Where to begin? With Pantheon!

• Stand on the Shoulders of Giants– Varnish– Apache HTTPD– APC Cache– Apache Solr– MySQL

• Best in class, stable technology– http://launchpad.net/pantheon

Pantheon

Page 4: Drupal In The Cloud

Anonymous Love of Varnish

• How much of your traffic is unauthenticated?– Why would you want to build the page each time?

• Big spikes are typically unauthenticated..– When @aplusk tweets your site you’ll see this first

• Having Varnish will give you time to react if tons of new people start registering..

Page 5: Drupal In The Cloud

APC is the Way for Me• APC = speed for site rendering..

..memcached = scale for your database.

Source: http://www.mysqlperformanceblog.com/2006/08/09/cache-performance-comparison/

Cache Type Cache Gets/secArray Cache 365000APC Cache 98000File Cache 27000Memcached Cache (TCP/IP) 12200MySQL Query Cache (TCP/IP) 9900MySQL Query Cache (Unix Socket) 13500Selecting from table (TCP/IP) 5100Selecting from table (Unix Socket) 7400

Page 6: Drupal In The Cloud

Solr Power Keeps Us Warm

• Faster and better....you can have your cake and eat it too!

• You’ll see a huge difference if search is.. – ..a big part of your site load.– ..a source of latency.– ..a cause user frustration.

See more: http://drupal.org/project/apachesolr

Page 7: Drupal In The Cloud

CAN WE DO THIS FOR REAL?Live demo of installing and configuring Mercury on the Rackspace Cloud

Page 8: Drupal In The Cloud

A 12 Step Program in 30 Minutes1. Boot server: Ubuntu 10.04 (Lucid Lynx), 512MB+ RAM recommended2. Install updates3. Install and configure BCFG24. Start the BCFG2 server5. Start the BCFG2 client6. Install Drush7. Install Mercury8. Install Apache Solr9. Prepare Pressflow files and directories10. Add Hudson to sudoers and restart it11. Run the Mercury init Hudson job12. Configure Pressflow

Details at: http://groups.drupal.org/node/70268

Page 9: Drupal In The Cloud

CLOUD INTEGRATED DRUPALAdding cloud to your application for increased scale and efficiency

Page 10: Drupal In The Cloud

API, Make Me a New Server

• PHP libraries can...– Authenticate– Check limits– List servers– List images– Make a new server– Reboot a server– Delete a server

Full list at: http://tools.rackspacecloud.com

Page 11: Drupal In The Cloud

Cloud, Store My Images & Backups• Cloud Object Storage

– Authenticate– Create private containers

• Put backup in container– Create public containers

• Put images in container• CDN enable container

– Delete objects– Delete containers

Get this and more at http://github.com/rackspace

Page 12: Drupal In The Cloud

WHAT IS OPENSTACKA community effort to build the best fully open data center operating system

Page 13: Drupal In The Cloud

OpenStack has a Mission

"To produce the ubiquitous Open Source cloud computing platform that

will meet the needs of public and private cloud providers regardless of size, by being simple to implement

and massively scalable."[Announced July 19th, 2010 and ratified by 25+ companies and 100+ community members]

Page 14: Drupal In The Cloud

Open 4 Times, Not Just Once• Open Source: We are committed to creating truly open

source software that is usable and scalable. Truly open source software is not feature or performance limited and is not crippled licensed under Apache 2.0.

• Open Design: Every 6 months the development community will hold a design summit to gather requirements and write specifications for the upcoming release.

• Open Development: We will maintain a publicly available source code repository through the entire development process.  This will be hosted on Launchpad, the same community used by 100s of projects including the Ubuntu Linux distribution.

• Open Community: Our core goal is to produce a healthy, vibrant development and user community.  Most decisions will be made using a lazy consensus model.  All processes will be documented, open and transparent.

Page 15: Drupal In The Cloud

Current Infrastructure Projects• OpenStack Compute

– REST-based API– Hardware agnostic - commodity hardware, RAID not required– Hypervisor agnostic - support for Xen and KVM in initial release– Horizontally scalable– Asynchronous eventually consistent communication

• OpenStack Object Storage– Object store, Distributed, REST-based API, No central database– Hardware agnostic - commodity hardware, RAID not required– Account/Container/Object structure (not file system, no nesting)– Replication (N copies of accounts, containers, objects)– Data distributed evenly throughout system– Scalable to multiple petabytes, billions of objects

Page 16: Drupal In The Cloud

Current Interface Projects• OpenStack Web Control Panel

– Cappuccino framework– Ruby JSONP API proxy

• OpenStack iPhone / iPad Control Panels– Mobile application management control panels

• OpenStack Android Control Panel– Mobile server and storage management control panel

Page 17: Drupal In The Cloud

How Can Drupalists Help?

• Infrastructure software needs an interface• Drupal + APIs = world class control panel• More information at http://openstack.org• Talk to @greenisus on Twitter

– Project Lead for OpenStack Interfaces• Join IRC @ irc.freenode.com / #openstack• Get code @ http://launchpad.net/openstack

Page 18: Drupal In The Cloud

Q & A TIME BEGINS NOW…Thank you for joining us today to learn about cloud, Mercury, & OpenStack

Bret Piatt / Twitter: @bpiatt / Email: [email protected]