Community Stacker Bret Piatt A Match Made in the Cloud How to best take advantage of the cloud for Drupal Sites &
Sep 03, 2014
Community StackerBret Piatt
A Match Made in the CloudHow to best take advantage of the cloud for Drupal Sites
&
Why cloud?
• “The Cloud” is hosting with an API–Programmers Like APIs!–Reliable, Reusable Start States–On Demand–Usage-based Pricing
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
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..
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
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
CAN WE DO THIS FOR REAL?Live demo of installing and configuring Mercury on the Rackspace 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
CLOUD INTEGRATED DRUPALAdding cloud to your application for increased scale and efficiency
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
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
WHAT IS OPENSTACKA community effort to build the best fully open data center operating system
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]
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.
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
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
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
Q & A TIME BEGINS NOW…Thank you for joining us today to learn about cloud, Mercury, & OpenStack
Bret Piatt / Twitter: @bpiatt / Email: [email protected]