Slideshare.net (beta)

 
Post To TwitterPost to Twitter
Post: 
Myspace Hi5 Friendster Xanga LiveJournal Facebook Blogger Tagged Typepad Freewebs BlackPlanet gigya icons

All comments

Add a comment on Slide 1

If you have a SlideShare account, login to comment; else you can comment as a guest


Showing 1-50 of 0 (more)

Why Sun for Drupal?

From smattoon, 6 months ago

Presentation at Drupalcon Boston 2008 on Wednesday March 5, 6-7pm

532 views  |  0 comments  |  0 favorites  |  18 downloads  |  2 embeds (Stats)
 

Categories

Add Category
 
 

Tags

architectureforhumanity openarchitecturenetwork zones zfs rbac dtrace sunmicrosystems solaris drupalconboston2008 drupalcon

more

 
 

Groups / Events

 

 
Embed
options

More Info

CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License
This slideshow is Public
Total Views: 532
on Slideshare: 473
from embeds: 59

Slideshow transcript

Slide 1: 1 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 2: Why Sun for Drupal? Scott Mattoon Sun Microsystems, Inc. Job Title Company Name URL of Company or Project Session ID 2 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 3: Sun's Connection with Drupal > AFH founded in 1999 > 100's of affiliates > 2006 TED Prize Winner > OAN Launched 2007 3 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 4: The Participation Age Matters Many Diverse Collaborative Objects Process Better Ideas • Hand sketches • Architects, Designers, • Designs that are • Photos Community Members, situation appropriate • CAD files NGOs, Funders • Designs that get • Project Plans • Crowdsourcing re-used 4 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 5: The Community is Amazing In the first year ● 1,000+ Projects ● 10,000+ Members ● 7 Creative Commons Licenses in Use ● Million's of Visitors ● 3,000+ concurrent sessions 5 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 6: • 7 Creative Commons Licenses • Drupal 4.7 + new OAN modules • X64 tuned SAMP Coolstack • Solaris 10 • (2) SunFire X2200 M2 (1) 6 TB StorageTek 3511 • Hosted at AMD datacenter 6 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 7: Creative Commons Licenses 7 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 8: Solaris, Java $0 Solaris Price Tag IBM jumps on Go Open Source Levels the Playing Field the Solaris with Linux bandwagon Ian Murdock: What's a AMD/Sun Strategic Alliance; Linux Guy Opteron to Power Doing at Sun? Sun’s Servers Solaris Technology Wins WSJ’s Sun Moves to Number Six 2006 Top Innovation Award, x86 Server Vendor in 2005 Beating Inhalable Insulin IDC Worldwide Quarterly Server Tracker November, 2006 Sun, Intel Landmark Alliance; Sun Fire T2000: Sun's Eco- Intel Endorses Solaris friendly Server Tears It Up 8 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 9: Java Enterprise System Composite Communications Application Platform Management Availability Network Identity Application Services B2B Platform Web ESB Infrastructure Operating System Virtualization Solaris Containers VMware / Xen LDOMs / DSD Architecture 9 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 10: The S in SAMP stands for Solaris Solaris – Apache – MySQL - PHP/Perl/Python ● Solaris Zones ● Free, lightweight and easy virtualization ● Dtrace ● Find bottlenecks in PHP code ● RBAC, Process Rights Management ● Don't give privileges that aren't needed ● ZFS ● Simplify admin, max. integrity, massive scale 10 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 11: The S in SAMP stands for Solaris Solaris – Apache – MySQL – PHP ● CoolStack 1.2 ● Apache 2.2.6 ● + mod_fcgid-2.2, mod_jk-1.2.25, mod_proxy ● MySQL 5.0.45 ● + compiler optimization, support for ndbcluster ● PHP 5.2.4 ● + compiler optimization, dtrace extension, FastCGI support ● APC version upgraded to 3.0.14. ● gmp library compiler optimization 11 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 12: The S in SAMP stands for Solaris Solaris – Apache – MySQL – PHP ● CoolStack 1.2 ● Squid 2.6.16 ● Tomcat 5.5.23 ● Ruby 1.8.6, Rails 1.2.3. ● lighttpd 1.4.18 12 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 13: Solaris – Linux Benchmark 13 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 14: Response Time (secs) - Solaris 10 Zone - 2 core Opteron 2.2GHz 10 RESPONSE 9 8 TIME 7 6 Anon FrontPage 5 Anon Random Page 4 Logged-in FrontPage 3 2 1 0 0 10 20 30 40 50 60 70 80 90 100 Concurrent Users Response Time (secs) - SLES 10 - 2 core Opteron 2.2GHz 10 9 8 7 6 Anon FrontPage 5 Anon Random Page 4 Logged-in FrontPage 3 2 1 0 0 10 20 30 40 50 60 70 80 90 100 Concurrent Users 14 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 15: 45 Throughput - Solaris 10 Zone - 2 core Opteron 2.2GHz THROUGHPUT & 40 35 ERROR RATE 30 25 Ops/sec 20 % Errors 15 10 5 0 0 20 40 60 80 100 Concurrent Users Throughput - SLES 10 - 2 core Opteron 2.2GHz 45 40 35 30 25 Ops/sec 20 % Errors 15 10 5 0 0 20 40 60 80 100 Concurrent Users 15 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 16: Need Efficiency & Control? Hypothetical Requirements & Constraints ● one server ● host (2) Dev, Test, Production environments ● maximize sharing, minimize redundancy ● prevent misconfig, grant least privilege ● guarantee max. resources for Productions ● maximize efficiency & consistency btw. envs. ● recover quickly from failed deployments 16 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 17: Solaris Zones for Efficiency & Control globalzone devzoneA devzoneB ... qazone prodzone /opt/coolstack -ro -ro /opt/coolstack' ./apache -ro ./mysql -ro ./php -rw /data/drupal-5.7 -rw -ro -ro /data/drupal-5.1 ./misc -ro -ro ./modules -ro -ro ./scripts -ro -ro ./sites -ro -ro ./themes -rw -ro ./files -ro -ro 17 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 18: Solaris Zones for Efficiency & Control globalzone devzoneA devzoneB ... qazone prodzone Apache Apache Apache PHP PHP PHP dbzone1 Apache PHP MySQL MySQL 18 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 19: Security ● RBAC ● Grant users the privileges they need ● Process Rights Management ● Run with least privileges ● E.g., not root, nosuid, noexec 19 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 20: The S in SAMP stands for Solaris SMF for MySQL & Apache MySQL # svcadm -v enable mysql # svcadm refresh mysql # svcadm restart mysql # svcadm disable mysql Apache # svcadm -v enable apache22 # svcadm refresh mysql # svcadm restart mysql # svcadm disable mysql 20 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 21: Find Hampster Wheels with DTrace Dtrace provider for PHP “DTrace is one of those tools that makes you wonder how you did anything without it before you'd heard of it. Why is it better than strace and similar tools? It's non-invasive, fast, scriptable and extensible.” - Wez Furlong 21 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 22: Performance Tuning Dtrace provider for PHP Which functions are being called by Drupal? # dtrace -n function-entry'{printf("called %s() in %s at line %dn",copyinstr(arg0), copyinstr(arg1), arg2)}' -q How many times is a function called? # dtrace -n function-entry'{@[copyinstr(arg0)] = count()}' What's the file name and line number count: # dtrace -n function-entry'{@[copyinstr(arg1)] = lquantize(arg2, 0, 5000)}' 22 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 23: Resource Management & Isolation Zones: data, configuration Projects # projadd -c "Apache-PHP" -U webservd httpd.php # projmod -sK "project.max-sem-ids=(privileged,256,deny)" httpd.php # svccfg -s http:CSKapache2 setprop start/project = astring: httpd.php # svcadm -v enable CSKapache2 CPU Shares global# zonecfg -z zone1 zonecfg:zone1> add rctl zonecfg:zone1:rctl> set name=zone.cpu-shares zonecfg:zone1:rctl> add value (priv=privileged,limit=15,action=none) zonecfg:zone1:rctl> end zonecfg:zone1> exit 23 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 24: Versioning & Protecting Data ZFS snapshots $ zfs snapshot /data/site@31Oct $ zfs snapshot /data/site@01Nov - - - WHOOPS - - - $ cp .zfs/snapshot/@01Nov/Drupal_5.2/themes/mysite ./Drupal_5.2/themes 24 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 25: Drupal and Java PHP apps, Glassfish, NetBeans ● Requires Resin and Quercus ● Gives you: ● Database connection pooling ● JIT Compiler ● Clustering with Terracotta ● Easy deployment from NetBeans ● NetBeans has a nice PHP plugin 25 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 26: Project Caroline Cloud Computing in a Grid Internet Resource Types Your Service Code Launch service using multiple load-balanced + processes, connected to a backend database. Flex processes to ●●● match demand. 26 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 27: For More Information SMF & Security ● http://blogs.sun.com/downstream/tags/smf ● http://www.opensolaris.org/os/community/smf/ ● http://www.sun.com/software/solaris/howtoguides/s10securityhowto.jsp Dtrace ● http://blogs.sun.com/bmc/entry/dtrace_and_php_demonstrated ● http://blogs.sun.com/shanti/entry/debugging_amp NetBeans ● http://www.netbeans.org/ Glassfish ● http://glassfish.java.net/ 27 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 28: For More Information ZFS ● http://opensolaris.org/os/community/zfs/ ● http://tinyurl.com/235vxe RBAC ● http://blogs.sun.com/darren/tags/rbac Project Caroline ● https://www.projectcaroline.net/main/ VBox – Free Virtualization software ● http://www.virtualbox.org/ 28 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 29: For More Information Open Architecture Network & AFH ● http://www.openarchitecturenetwork.org/ ● http://www.architectureforhumanity.org/ ● http://www.ted.com/index.php/speakers/view/id/54 ● http://www.architectureforhumanity.org/programs/africa/advisory.html ● http://blogs.sun.com/downstream/tags/oan 29 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 30: Why Solaris? 1. Constant 6. Runs on more innovation hardware 2. Free 7. Runs more 3. Open source applications 4. Incredible 8. We protect our performance customers 5. Enterprise class, 9. We protect the worldwide, 24x7 community cost-effective 10. Huge numbers of support customers, installed base, partners 30 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 31: > Get Solaris 1 sun.com/solaris/get > Get Involved 2 opensolaris.org | bigadmin.com | developers.sun.com/solaris 3 > Get Trained sun.com/solaris/freetraining | Learning Paths: sun.com/training/solaris > Get Data Sheets and White Papers 4 sun.com/solaris/reference_materials > Get Started with Solaris Learning Centers 5 sun.com/solaris/teachme 6 > Get Current sun.com/solaris/move | bigadmin.com/apps | bigadmin.com/hcl 31 DrupalCon Boston 2008 | Session Industrilal Grade Drupal on Solaris |

Slide 32: Q&A Scott Mattoon Sun Microsystems, Inc. 32 Drupal Camp Bay Area 2007 | Session Industrilal Grade Drupal on Solaris |