Quick Upload

Loading...
Flash Player 9 (or above) is needed to view slideshows. We have detected that you do not have it on your computer.To install it, go here
Post to Twitter Post to Twitter
Share on Facebook Share on Facebook
Post to Blogger Post to Blogger
Myspace Hi5 Friendster Xanga LiveJournal Facebook Blogger Tagged Typepad Freewebs BlackPlanet gigya icons
« Prev Comments 0 - 0 of 0 Next »
    Add a comment If you have a SlideShare account, login to comment; otherwise comment as a guest.
    • If service is compromised it's contained to the zone.
    • There's been a lot going on at Sun in the 21st century, and we find that many people haven't heard much about it.The biggest change has been Sun's embrace of x64 technology, including key alliances with AMD, Intel and now IBM. Because of the innovation we can brrng at commodity prices, Sun has gone from essentially nowhere to the number six x86 server vendor in a very short period of time.This doesn't mean that we're doing x86 to the exclusion of SPARC, and in fact we're seeing that a lot of the places where Linux has been put to use are also ideal places for Sun's CoolThread SPARC servers such as the Sun Fire T2000.We've also made quite a serious move to become one of the leading companies in the open source community. Key to this are the open sourcing of Solaris and Java.But there's a lot more we've been doing specific to the OS world, and having Ian Murdock come on board is just the latest bit of news. Ian is helping drive work to take the renowned innovation of Solaris and make it even easier to adopt for development and deployment.
    • There's a wealth of materials to choose from to learn more about Solaris – and most of it's free. Where to start depends on your comfort level: download the OS today and dig in, take the free online training, sign up for classes, study the white papers, .and then sharpen your skills with task-based learning guides.Or, see how Sun can help you move from older Solaris releases or even completely different platforms. We can show you how, or we can do it all for you.Note for “get involved” - go to opensolaris.org to participate in shaping the next great OS; bigadmin.com to join a resource-rich administrative community; go to developers.sun.com for a wealth of resources on application developmentNotes on “get on Solaris10” -- the three URL point to resources on OS migration/upgrade, the Solaris 10 application compatibility list, and the Solaris 10 hardware compatibility list.

    Drupal Efficiency using open source technologies from Sun

    from smattoon, 1 month ago Add as contact

    226 views | 0 comments | 1 favorites | 0 embeds (Stats)

    Desc: Technologies and techniques for improving efficiency of Drupal development, deployment, operation. Featuring open source technologies from Sun.

    Embed customize close
     

    More Info

    This slideshow is Public

    Views: 226 Comments: 0 Favorites: 1 Downloads: 1

    View Details: 226 on Slideshare 0 from embeds
    Flagged as inappropriate Flag as inappropriate

    Flag as inappropriate

    Select your reason for flagging this slideshow as inappropriate.

    If needed, use the feedback form to let us know more details.

    Slideshow Transcript

    1. Slide 1: Drupal Efficiency Coding Deployment Scaling Scott Mattoon Sun Microsystems, Inc. Session ID 1 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    2. Slide 2: NetBeans for PHP ● Run and Debug project action – break points, watches ● Run single file, Debug single file, Run in command line ● Wizard for creating new php and phtml files ● Editing - Syntactic and Semantic coloring ● CodeCompletion ● File system code completion for include/require ● Bracket Matching ● Automatic Insertions (brackets, braces, parens, quotes) ● Code Navigation - Go to Declaration/Type, Hyperlinking ● Refactoring - Instant Rename http://wiki.netbeans.org/FeatureListEAPHP DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    3. Slide 3: DEMO Session ID 3 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    4. Slide 4: SAMP 4 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    5. Slide 5: 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 5 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    6. Slide 6: The S in SAMP stands for Solaris Solaris – Apache – MySQL – PHP CoolStack 1.3 * libiconv 1.11.1 * Apache 2.2.8 * curl 7.18.1 * Tomcat 5.5.26 * libxml2 2.6.32 * php 5.2.6 * gettext 0.17 * mysql 5.1.24 * gmp 4.2.2 * squid 3.0 * pcre 7.7 * apc 3.0.16 * ncurses 5.6 * mod_perl 2.0.4 * imap 2007a1 * rails 2.0.2 * freetype 2.3.5 * libevent 1.3e * gd 2.0.35 * memcached 1.2.5 * openldap 2.3.41 * mod_jk 1.2.26 * suhosin php ext. 0.9.24 * lighttpd 1.4.19 * rubygems 1.1.1 * ruby 1.8.6p114 * postgres ruby gem 0.7.1 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    7. Slide 7: The S in SAMP stands for Solaris Solaris – Apache – MySQL – PHP CoolStack 1.3 * Python 2.5.2 * memcache php extension 2.2.3 * nginx 0.6.31 * xdebug php extension 2.0.3 * libxslt 1.1.22 * tcpwrap php extension 1.0 * fontconfig 2.4.2 * perl Compress::Zlib * mod_security apache 2.5.3 * mysql ruby gems 2.7 * mod_python 3.3.1 * mod_ruby 1.2.6 * mod_dtrace 0.3a DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    8. Slide 8: Solaris – Linux Benchmark DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    9. Slide 9: Response Time (secs) - Solaris 10 Zone - 2 core Opteron 2.2GHz 10 9 RESPONSE 8 7 TIME 6 5 Anon FrontPage Anon Random Page Logged-in FrontPage 4 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    10. Slide 10: Throughput - Solaris 10 Zone - 2 core Opteron 2.2GHz 45 40 35 THROUGHPUT & 30 ERROR RATE 25 20 Ops/sec % Errors 15 10 5 0 0 10 20 30 40 50 60 70 80 90 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 10 20 30 40 50 60 70 80 90 100 Concurrent Users DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    11. Slide 11: 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 production ● maximize efficiency & consistency btw. envs. ● recover quickly from failed deployments 11 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    12. Slide 12: Solaris Zones for Efficiency & Control globalzone devzoneA devzoneB ... qazone prodzone /opt/coolstack -ro -ro /opt/coolstack' ./apache -ro ./mysql -ro ./php -rw /data/drupal-6.4 -rw -ro -ro /data/drupal-5.10 ./misc -ro -ro ./modules -ro -ro ./scripts -ro -ro ./sites -ro -ro ./themes -rw -ro ./files -ro -ro DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    13. Slide 13: Solaris Zones for Efficiency & Control globalzone devzoneA devzoneB ... qazone prodzone Apache Apache Apache PHP PHP PHP dbzone1 Apache PHP MySQL MySQL DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    14. Slide 14: Security ● RBAC – Grant users the privileges they need ● Process Rights Management – Run with least privileges – E.g., not root, nosuid, noexec 14 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    15. Slide 15: 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    16. Slide 16: 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    17. Slide 17: Performance Tuning - DEMO Dtrace provider for PHP Which functions are being called by Drupal? # dtrace -n function-entry'{printf(\"called %s() in %s at \\ line %d\\n\",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)}' DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    18. Slide 18: 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    19. Slide 19: 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    20. Slide 20: 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    21. Slide 21: Project Caroline - DEMO 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. DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    22. Slide 22: 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/ DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    23. Slide 23: 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/ VBox – Free Virtualization software – http://www.virtualbox.org/ DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    24. Slide 24: Q&A Scott Mattoon Sun Microsystems, Inc. DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    25. Slide 25: Solaris, Java $0 Solaris Price Tag IBM jumps on Go Open Source Levels the Playing Field with the Solaris 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 x86 2006 Top Innovation Award, 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    26. Slide 26: Java Enterprise System Composite Communications Application Platform Management Availability Network Identity Application Services B2B Platform Web ESB Infrastructure Operating System Solaris Containers Virtualization VMware / Xen LDOMs / DSD Architecture DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    27. Slide 27: Why Solaris? 1. Constant innovation 6. Runs on more 2. Free hardware 3. Open source 7. Runs more applications 4. Incredible performance 8. We protect our customers 5. Enterprise class, worldwide, 24x7 9. We protect the cost-effective community support 10. Huge numbers of customers, installed base, partners DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    28. Slide 28: > 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    29. Slide 29: Sun's Connection with Drupal > AFH founded in 1999 > 100's of affiliates > 2006 TED Prize Winner > OAN Launched 2007 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    30. Slide 30: 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    31. Slide 31: 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    32. Slide 32: • 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 DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    33. Slide 33: Creative Commons Licenses DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds
    34. Slide 34: Sample of Sun Drupal Sites Open Architecture Network & AFH ● http://www.openarchitecturenetwork.org/ FreshBrain ● https://freshbrain.org Sun Learning Services ● https://slx.sun.com/ Project Caroline ● http://www.projectcaroline.net/ DrupalCamp Bay Area 2008 | Drupal Efficiency: Coding, Deployment, Scaling with NetBeans, DTrace, Zones, ZFS, and Clouds