Drupal Deployment on Solaris - DrupalCamp Bay Area 2007 - Mattoon

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Notes on slide 1

    1 in 6 live in slums today 1 in 3 by 2020 1 billion lack water 2.6 billion lack sanitation 211 million affected by disaster each year

    Favorites, Groups & Events

    Drupal Deployment on Solaris - DrupalCamp Bay Area 2007 - Mattoon - Presentation Transcript

    1.  
    2. Why Sun for Drupal?
        • Scott Mattoon
        • Sun Microsystems, Inc.
        • Job Title Company Name URL of Company or Project
      Session ID
        • AFH founded in 1999
        • 100's of affiliates
        • 2006 TED Prize Winner
        • OAN Launched 2007
    3. The Participation Age Matters Many Diverse Objects Collaborative Process
      • Hand sketches
      • Photos
      • CAD files
      • Project Plans
      • Designs that are situation appropriate
      • Designs that get re-used
      Better Ideas
      • Architects, Designers, Community Members, NGOs, Funders
      • Crowdsourcing
      • In the first six months
      • 700 Projects
      • 7,000 Members
      • 7 Creative Commons Licenses in Use
      • 6 Million Visitors
      • 3,000+ concurrent sessions
      The Community is Amazing
      • 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
    4. Creative Commons Licenses
    5. Ian Murdock: What's a Linux Guy Doing at Sun?
          • Sun Fire T2000: Sun's Eco-friendly Server Tears It Up
      Sun, Intel Landmark Alliance; Intel Endorses Solaris
          • Solaris Technology Wins WSJ’s 2006 Top Innovation Award, Beating Inhalable Insulin
          • Sun Moves to Number Six x86 Server Vendor in 2005
      IDC Worldwide Quarterly Server Tracker November, 2006 AMD/Sun Strategic Alliance; Opteron to Power Sun’s Servers Solaris, Java Go Open Source
          • $0 Solaris Price Tag Levels the Playing Field with Linux
      IBM jumps on the Solaris bandwagon
    6. Network Services Identity Management Java Enterprise System Communications Composite Application Platform Application Platform B2B Web Infrastructure ESB Availability Virtualization Solaris Containers LDOMs / DSD VMware / Xen Architecture Operating System
    7. The S in SAMP stands for Solaris
      • 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
      Solaris – Apache – MySQL - PHP/Perl/Python
    8. The S in SAMP stands for Solaris
      • 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
      Solaris – Apache – MySQL – PHP
    9. The S in SAMP stands for Solaris
      • CoolStack 1.2
        • Squid 2.6.16
        • Tomcat 5.5.23
        • Ruby 1.8.6, Rails 1.2.3.
        • lighttpd 1.4.18
      Solaris – Apache – MySQL – PHP
    10. Solaris Zones for Efficiency & Control
      • 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
      Hypothetical Requirements & Constraints
    11. /opt/coolstack -ro -ro /opt/coolstack' ./apache -ro ./mysql -ro ./php -rw /data/drupal-5.2 -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 Solaris Zones for Efficiency & Control ...
    12. Solaris Zones for Efficiency & Control ...
    13. Security
      • RBAC
        • Grant users the privileges they need
      • Process Rights Management
        • Run with least privileges
        • E.g., not root, nosuid, noexec
    14. The S in SAMP stands for Solaris MySQL /var/svc/manifest/network/mysql.xml /lib/svc/method/CSKmysql # svccfg import /var/svc/manifest/network/mysql.xml # svcadm -v enable mysql Apache /var/svc/manifest/network/http-CSKapache2.xml /lib/svc/method/http-CSKapache2 # svccfg import /var/svc/manifest/network/http-CSKapache2.xml # svcadm -v enable CSKapache2 SMF for MySQL & Apache
    15. Performance Tuning Which functions are being called by Drupal? # dtrace -n function-entry'{printf("called %s() in %s at line %d ", copyinstr(arg0), copyinstr(arg1), arg2)}' -q How many times is a function called? # dtrace -n function-entry'{@[copyinstr(arg1)] = lquantize(arg2, 0, 5000)}' What's the file name and line number count: # dtrace -n function-entry'{@[copyinstr(arg1)] = lquantize(arg2, 0, 5000)}' Dtrace provider for PHP
    16. Resource Management & Isolation 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 Zones: data, configuration
    17. Versioning & Protecting Data $ zfs snapshot /data/db1/scott@21Sep $ zfs snapshot /data/db1/scott@22Sep ZFS snapshots
    18. Drupal and Java
      • Requires Resin and Quercus
      • Gives you:
        • Database connection pooling
        • JIT Compiler
        • Clustering with Terracotta
        • Easy deployment from NetBeans
      PHP apps, Glassfish, NetBeans
    19. 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
    20. 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/
      • Constant innovation
      • Free
      • Open source
      • Incredible performance
      • Enterprise class, worldwide, 24x7 cost-effective support
      • Runs on more hardware
      • Runs more applications
      • We protect our customers
      • We protect the community
      • Huge numbers of customers, installed base, partners
      Why Solaris?
        • Get Solaris sun.com/solaris/get
        • Get Data Sheets and White Papers sun.com/solaris/reference_materials
          • Get Trained sun.com/solaris/freetraining | Learning Paths: sun.com/training/solaris
      1 2 3 4
        • Get Started with Solaris Learning Centers sun.com/solaris/teachme
      5
        • Get Current sun.com/solaris/move | bigadmin.com/apps | bigadmin.com/hcl
      6
          • Get Involved opensolaris.org | bigadmin.com | developers.sun.com/solaris
    21. Q&A
      • Scott Mattoon
      • Sun Microsystems, Inc.

    + smattoonsmattoon, 3 years ago

    custom

    2243 views, 0 favs, 1 embeds more stats

    Material presented at Bay Area DrupalCamp 2007 sess more

    More info about this presentation

    CC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike LicenseCC Attribution-NonCommercial-ShareAlike License

    • Total Views 2243
      • 2242 on SlideShare
      • 1 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 49
    Most viewed embeds
    • 1 views on http://prechtl.wordpress.com

    more

    All embeds
    • 1 views on http://prechtl.wordpress.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories