Drupal Deployment on Solaris - DrupalCamp Bay Area 2007 - Mattoon
Upcoming SlideShare
Loading in...5
×
 

Drupal Deployment on Solaris - DrupalCamp Bay Area 2007 - Mattoon

on

  • 3,957 views

Material presented at Bay Area DrupalCamp 2007 session Title: Industrial Grade Deployment on OpenSolaris

Material presented at Bay Area DrupalCamp 2007 session Title: Industrial Grade Deployment on OpenSolaris

Statistics

Views

Total Views
3,957
Views on SlideShare
3,953
Embed Views
4

Actions

Likes
0
Downloads
53
Comments
0

3 Embeds 4

http://www.slideshare.net 2
http://prechtl.wordpress.com 1
http://www.linkedin.com 1

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

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

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • 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

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

  •  
  • 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
  • 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
  • Creative Commons Licenses
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • /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 ...
  • Solaris Zones for Efficiency & Control ...
  • Security
    • RBAC
      • Grant users the privileges they need
    • Process Rights Management
      • Run with least privileges
      • E.g., not root, nosuid, noexec
  • 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
  • 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
  • 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
  • Versioning & Protecting Data $ zfs snapshot /data/db1/scott@21Sep $ zfs snapshot /data/db1/scott@22Sep ZFS snapshots
  • 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
  • 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
  • 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
  • Q&A
    • Scott Mattoon
    • Sun Microsystems, Inc.