SlideShare a Scribd company logo
1 of 26
Download to read offline
OpenSolaris Web Stack
Where MySQL Meets the
Next Generation OS.
MySQL 2009 Conference & Expo
Birds of A Feather Session

Murthy Chintalapati (CVR)
Jyri Virkki
Sriram Natarajan, Brian Overstreet

                    1
Agenda


1) Introducing the OpenSolaris Web Stack
2) OpenSolaris as cloud-ready, next generation web
   infrastructure platform
3) Support subscriptions via GlassFish Portfolio
4) Performance
5) Future

Plus ...
Demos & How to get involved.



                                            2
Brief Historical Background


1) OpenSolaris Web Stack project
    – Ongoing since August 2007
    – Formally integrate all interesting web tier open source
      projects into OpenSolaris (via native IPS packages)

2) CoolStack project
    – Used to publish Solaris 10 packages of common web
      infrastructure open source components
    – Community effort, not a Sun product, no support




                                               3
Why Sun for your AMP stack?

    Sun has recognized experts on the virtual team
●

    standing behind the Web Stack
       Long-time committers and other contributors to Apache HTTP
       Server and PHP
       Core MySQL development
       The original author of lighttpd, as well as other contributors
       Memcached contributors
       Ruby (and JRuby), Python (and JPython) contributors
       Apache Tomcat was originally developed by Sun




                                                       4
Why Sun for your AMP stack?

    Deep experience in product integration,
●

    performance, QA, and support of these features
       Delivering and supporting Apache HTTP Server, Tomcat, MySQL,
       and more in Solaris 10
       Delivering a rich and up to date set of web components with
           CoolStack for Solaris 10
           OpenSolaris
    Understanding of the entire lifecycle
●

       Improving the developer experience with support for web
       development from NetBeans
       Rich dynamic tracing capabilities



                                                     5
What's Web Stack?

  A superset of 'AMP' (Apache + MySQL + PHP) stack
•
  Provides the key web tier open source projects
•
  integrated and tested for interoperability, as part of
  the OS distribution
• Optimized for performance
• Customized to leverage all the advanced
  OpenSolaris features.
• Fully supported for production deployments
  (including cloud environments, viz., Amazon EC2, or
  network.com)

                                         6
OpenSolaris Web Stack
The Complete Web Tier

                                 Sun Web Server
                                 Apache HTTPd
                                 GlassFish
                                 Lighttpd
                                 MySQL,
                                 Memcached
                                 Mod_jk, perl,
                                 PHP, Ruby, Python
 MediaWiki, Drupal, Wordpress,
                                 Squid, Tomcat
 Joomla — deploy in minutes!


                                       7
Web Stack components
Web Stack component    1.4            1.5
Apache HTTP Server     2.2.9          2.2.11
GlassFish Enterprise   v2 UR2         V2.1
lighttpd               1.4.19         1.4.21
memcached              1.2.5          1.2.5
mod_jk                 1.2.25         1.2.27
mod_perl               2.0.2          2.0.4
MySQL                  5.0.67         5.1.30 and 5.0.67
PHP                    5.2.6          5.2.9
Python                 2.5.2          2.6.1
Ruby Gems              0.9.4          1.3.1
Ruby                   1.8.6 p287     1.8.7 p72
Squid                  2.6.STABLE17   2.7 STABLE6
Tomcat                 5.5.27         6.0.18
Hudson                                1.2.x
                                                          8
Sun GlassFish Web Stack?

  Sun Glassfish Web Stack unifies Sun product
•
  offering under one umbrella – GlassFish Portfolio.
• 24x7 production support available on both
  OpenSolaris and Solaris 10
      Replaces CoolStack
    –
    – Available on Amazon EC2 cloud deployments.
  And also available on Red Hat Enterprise Linux 5
•
• Same components; One product; Three platforms
• Support pricing is based on per-server annual
  subscriptions – very similar to MySQL.

                                        9
GlassFish Portfolio: Easy to Acquire


                                         +
   MySQL Enterprise                                     GlassFish Portfolio
   (per server per year in USD)                         (per server per year in USD)
•Basic                                              •Basic
                             $599                                           $ 999
•Silver                                             •Silver
                             $1,999                                         $2,999
•Gold                                               •Gold
                             $2,999                                         $5,999
•Platinum                                           •Platinum
                             $4,999                                         $8,999
GlassFish Portfolio Unlimited                         Starting at $120,000
For the price of a single CPU of Oracle Enterprise Edition, companies with up to 1000
employees can deploy an unlimited number of GlassFish Enterprise Server, Web Stack,
      Web Server, Web Space, or ESB servers with full 24x7 production support.

                                                                         10
Some of the benefits of OpenSolaris.
    ZFS rocks!
•
      – Data management made easy w/ lightweight snapshots
          Copy on write semantics; Support for native NFSv4 ACLs
      –
    DTrace
•
        Improves observability of software stack
      –
      – Diagnose most crippling performance problems
    RBAC Security
•
          Allows delegation of parts of system administration
      –
          tasks to users via roles.
    SMF
•
          Self-healing for services.
      –
    Compatibility
•
          Assurance of compatibility
      –
                                                    11
Platform Notes: OpenSolaris 2008.11

    Web Stack is available via native IPS
•
     –No separate install required
    Install most components in one go:
•
              pfexec pkg install amp
         •%
    Or handpick individual favorite components:
•
           pfexec pkg install SUNWphp52
         •%
         SUNWruby18
    Fully integrated with SMF
•
           pfexec svcadm enable apache22
         •%
• DTrace support included
    –In Apache httpd, PHP, and Ruby.


                                            12
Platform Notes: Solaris 10

  Same components, same versions as OpenSolaris
•
• Available as SVR4 packages
• Go to www.sun.com/software/webstack and click
  on “Get It!”
        Unpack the downloaded file into a new directory
    –
         •# ./install amp
         (installs typical components)
  Integrated with SMF
•
• DTrace support included
    –In Apache   httpd, Ruby, PHP


                                               13
Platform Notes: RHEL 5

  Again same components, same versions as
•
  OpenSolaris.
• Available as RPM packages
• As with Solaris 10, download from
  www.sun.com/software/webstack
    –Unpack    the downloaded file into a new directory
         •# ./install amp
         (installs typical components)
•Full   feature parity with OpenSolaris/Solaris10
    –Except for features which are not available on Linux:
    –No smf, no DTrace support


                                                14
MySQL Performance
    Performance Issues with MySQL 5.0.67
•
        Data loads took 5-10 minutes
      –
      – Could only support 1450 concurrent users on Olio
        benchmark on X2250 server (16GB RAM, 2x quad core
        AMD 1.9GHz processors)
    Switched to MySQL 5.1.25
•
        Data loads now take seconds
      –
      – Concurrent users up to 1900 on the same h/w (+30%)
      – Master database handling 20,000 connections
     MySQL 5.4 (beta) even faster
•
    (especially on multi-core systems)


                                            15
MySQL Performance Tuning
    MySQL Specific Tuning
•
          innodb_flush_log_at_trx_commit = 2
     –
     –> Relaxed requirements for Web 2.0 apps vs OLTP
     –> Flush log every second instead of every commit


          innodb_doublewrite_disabled
     –
     –>   ZFS already provides consistency

         Increased join_buffer_size to 8M
     –
     –>   Helps reduce join latency

          table_open_cache = 2048
     –
     –>   Increased to support large number of threads.

         Place the InnoDB write log on SSD's.
     –
                                                          16
Apache & PHP Tuning
    Apache Specific Tuning
•
         ListenBacklog 16384
     –
         ServerLimit 8192
     –
         MaxClients 8192
     –
         MaxRequestsPerChild 0
     –
         StartServers 128
     –
         MinSpareServers 20
     –
         MaxSpareServers 128
     –
    PHP Specific Tuning
•
      error_reporting = E_ALL & ~E_NOTICE
     –
     – upload_tmp_dir = /tmp
     – session.save_path = “/tmp/http_sessions”


                                    17
Web Stack Performance on Nehalem

  Workload – Apache Olio/PHP
•
• Servers based on Intel® Xeon® Processor 5500
• Web server + Memcached (1 system)
        2 quad-core CPUs at 2.9 Ghz with 48GB main memory
      –
       (Sun Fire X2270 server configuration)
      – Hyper-threading is on – effectively 16 threads
      – Apache, PHP, memcached from OpenSolaris 2008.11
    Database – (3 systems)
•
        2 quad-core CPUs at 2.5 Ghz (Sun Fire X4170)
      –
      – Using MySQL 5.1 Replication (1 master, 2 slaves)
      – Database on internal drives (ZFS)


                                               18
Web Stack Nehalem configuration




 Horizontal Scaling: With 2 web server, Web Stack scales to
 10,000 users + 1 Million MySQL rows with 1 TB data
                                               19
Web Stack Performance
          Scaling on Nehalem Serv-
                     ers
           80

                70

                60

                50
    CPU Util.




                                                                                                                 CPU
                40

                30

                20

                10

                0
                     0    1000           2000           3000           4000            5000           6000
                                                    Users
Blueprint: Deploying Web 2.0 Applications on Sun Servers and the
OpenSolaris Operating System with Apache Olio/PHP Workload
http://wikis.sun.com/display/BluePrints/Deploying+Web+2.0+Applications+on+Sun+Servers+and+the+OpenSolaris+Operating+System



                                                                                                     20
Future Directions

    Continue updating component versions to stay as
•
    current as release cycle permits
          Releases are approximately aligned with OpenSolaris
      –
          releases
    Add selected components based on customer
•
    value (feedback welcome!)
    Working towards fully relocatable stack via integration
•
    with Glassfish Update Center
  Continuing on performance and scalability
•
  improvements, and value adds for enterprise users.
• And enhancing unique features...
      –e.g.   much more DTrace support coming in 1.5.
                                                21
Future Directions – Enterprise Manager

  Dashboard
•
    –Server/Runtimes listing w/ status
    –Message Console
    –Monitoring graphs
    –System-wide data
    –Server level data
• Server management
    –Start/Stop
    –Richer monitoring at server level
    –Log viewer


                                         22
Future Directions –
Web Stack Enterprise Manager




                               23
Web Stack – More Information ...

    OpenSolaris Web Stack Project:
•
      –http://opensolaris.org/os/project/webstack/
    OpenSolaris Web Stack discussion:
•
      –webstack-discuss@opensolaris.org
    Glassfish Web Stack product page:
•
      –http://www.sun.com/software/webstack/
    Solaris 10/RHEL download page:
•
        http://www.sun.com/software/webstack/ and click on
      –
      “Get It!”
    Web Stack product forum:
•
      –http://forums.sun.com/forum.jspa?forumID=980


                                                 24
Demos – OpenSolaris Web Stack




1> Deploy Drupal CMS in seconds!
2> MySQL data restore via ZFS timeslider
3> End-to-end observability with DTrace
   (using NetBeans 6.7 PHP MS3)




                                    25
OpenSolaris Web Stack
webstack-discuss@opensolaris.org




                 26

More Related Content

What's hot

Schizophrenic High Availability with SQL and Windows 2016
Schizophrenic High Availability with SQL and Windows 2016Schizophrenic High Availability with SQL and Windows 2016
Schizophrenic High Availability with SQL and Windows 2016Mark Broadbent
 
Joomla! Performance on Steroids
Joomla! Performance on SteroidsJoomla! Performance on Steroids
Joomla! Performance on SteroidsSiteGround.com
 
Optimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp HoustonOptimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp HoustonChris Olbekson
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10Kenny Gryp
 
Ye Olde Cluster Curiosity Shoppe
Ye Olde Cluster Curiosity ShoppeYe Olde Cluster Curiosity Shoppe
Ye Olde Cluster Curiosity ShoppeMark Broadbent
 
Rabbit mq簡介(上)
Rabbit mq簡介(上)Rabbit mq簡介(上)
Rabbit mq簡介(上)共和 薛
 
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph Ceph Community
 
[NYC Meetup] Docker at Nuxeo
[NYC Meetup] Docker at Nuxeo[NYC Meetup] Docker at Nuxeo
[NYC Meetup] Docker at NuxeoNuxeo
 
cache concepts and varnish-cache
cache concepts and varnish-cachecache concepts and varnish-cache
cache concepts and varnish-cacheMarc Cortinas Val
 
Jurijs Velikanovs - RAC Attack 101 - How to install 12c RAC on your laptop
Jurijs Velikanovs -  RAC Attack 101 - How to install 12c RAC on your laptop  Jurijs Velikanovs -  RAC Attack 101 - How to install 12c RAC on your laptop
Jurijs Velikanovs - RAC Attack 101 - How to install 12c RAC on your laptop Andrejs Vorobjovs
 
OpenCSW - What is the project about?
OpenCSW - What is the project about?OpenCSW - What is the project about?
OpenCSW - What is the project about?dmichelsen
 
MySQL 8.0.19 - New Features Summary
MySQL 8.0.19 - New Features SummaryMySQL 8.0.19 - New Features Summary
MySQL 8.0.19 - New Features SummaryOlivier DASINI
 
Power of Open SDN- The Vendor Neutral Approach to Optimizing Your Network 09...
Power of Open SDN- The Vendor Neutral Approach to Optimizing Your Network  09...Power of Open SDN- The Vendor Neutral Approach to Optimizing Your Network  09...
Power of Open SDN- The Vendor Neutral Approach to Optimizing Your Network 09...Cary Hayward
 

What's hot (20)

Schizophrenic High Availability with SQL and Windows 2016
Schizophrenic High Availability with SQL and Windows 2016Schizophrenic High Availability with SQL and Windows 2016
Schizophrenic High Availability with SQL and Windows 2016
 
VMWare Lab For Training, Testing or Proof of Concept
VMWare Lab For Training, Testing or Proof of ConceptVMWare Lab For Training, Testing or Proof of Concept
VMWare Lab For Training, Testing or Proof of Concept
 
Mastering VMware datacenter
Mastering VMware datacenterMastering VMware datacenter
Mastering VMware datacenter
 
OpenMQ Aquarium Paris
OpenMQ Aquarium ParisOpenMQ Aquarium Paris
OpenMQ Aquarium Paris
 
Joomla! Performance on Steroids
Joomla! Performance on SteroidsJoomla! Performance on Steroids
Joomla! Performance on Steroids
 
Mastering VMware Datacenter Part-1
Mastering VMware Datacenter Part-1Mastering VMware Datacenter Part-1
Mastering VMware Datacenter Part-1
 
Optimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp HoustonOptimizing WordPress for Performance - WordCamp Houston
Optimizing WordPress for Performance - WordCamp Houston
 
MySQL Database Architectures - 2020-10
MySQL Database Architectures -  2020-10MySQL Database Architectures -  2020-10
MySQL Database Architectures - 2020-10
 
GlassFish v3 Prelude Aquarium Paris
GlassFish v3 Prelude Aquarium ParisGlassFish v3 Prelude Aquarium Paris
GlassFish v3 Prelude Aquarium Paris
 
Ye Olde Cluster Curiosity Shoppe
Ye Olde Cluster Curiosity ShoppeYe Olde Cluster Curiosity Shoppe
Ye Olde Cluster Curiosity Shoppe
 
Rabbit mq簡介(上)
Rabbit mq簡介(上)Rabbit mq簡介(上)
Rabbit mq簡介(上)
 
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
Ceph Day Shanghai - Hyper Converged PLCloud with Ceph
 
[NYC Meetup] Docker at Nuxeo
[NYC Meetup] Docker at Nuxeo[NYC Meetup] Docker at Nuxeo
[NYC Meetup] Docker at Nuxeo
 
20100918 android cache
20100918 android cache20100918 android cache
20100918 android cache
 
cache concepts and varnish-cache
cache concepts and varnish-cachecache concepts and varnish-cache
cache concepts and varnish-cache
 
Jurijs Velikanovs - RAC Attack 101 - How to install 12c RAC on your laptop
Jurijs Velikanovs -  RAC Attack 101 - How to install 12c RAC on your laptop  Jurijs Velikanovs -  RAC Attack 101 - How to install 12c RAC on your laptop
Jurijs Velikanovs - RAC Attack 101 - How to install 12c RAC on your laptop
 
OpenCSW - What is the project about?
OpenCSW - What is the project about?OpenCSW - What is the project about?
OpenCSW - What is the project about?
 
GlassFish v2.1
GlassFish v2.1GlassFish v2.1
GlassFish v2.1
 
MySQL 8.0.19 - New Features Summary
MySQL 8.0.19 - New Features SummaryMySQL 8.0.19 - New Features Summary
MySQL 8.0.19 - New Features Summary
 
Power of Open SDN- The Vendor Neutral Approach to Optimizing Your Network 09...
Power of Open SDN- The Vendor Neutral Approach to Optimizing Your Network  09...Power of Open SDN- The Vendor Neutral Approach to Optimizing Your Network  09...
Power of Open SDN- The Vendor Neutral Approach to Optimizing Your Network 09...
 

Viewers also liked

OpenSolaris Clusters And Clouds From Your Laptop
OpenSolaris Clusters And Clouds From Your LaptopOpenSolaris Clusters And Clouds From Your Laptop
OpenSolaris Clusters And Clouds From Your Laptopbogdanv
 
Open Solaris Introduction: How to make it feel like home
Open Solaris Introduction: How to make it feel like homeOpen Solaris Introduction: How to make it feel like home
Open Solaris Introduction: How to make it feel like homeAhmed Saeed
 
Introducción a OpenSolaris
Introducción a OpenSolarisIntroducción a OpenSolaris
Introducción a OpenSolarisjuandanielp
 
OpenSolaris On EeePc at Osc Spring
OpenSolaris On EeePc at Osc SpringOpenSolaris On EeePc at Osc Spring
OpenSolaris On EeePc at Osc SpringMasafumi Ohta
 
Illumos la-jan11
Illumos la-jan11Illumos la-jan11
Illumos la-jan11Evan Powell
 
Osol Netadmin Solaris Administrator
Osol Netadmin Solaris AdministratorOsol Netadmin Solaris Administrator
Osol Netadmin Solaris AdministratorOpeyemi Olakitan
 
OpenSolaris School OS Beginners Guide
OpenSolaris School OS Beginners GuideOpenSolaris School OS Beginners Guide
OpenSolaris School OS Beginners GuideAngad Singh
 
Solaris vs Linux
Solaris vs LinuxSolaris vs Linux
Solaris vs LinuxGrigale LTD
 
What Linux can learn from Solaris performance and vice-versa
What Linux can learn from Solaris performance and vice-versaWhat Linux can learn from Solaris performance and vice-versa
What Linux can learn from Solaris performance and vice-versaBrendan Gregg
 
Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Brendan Gregg
 

Viewers also liked (12)

OpenSolaris Clusters And Clouds From Your Laptop
OpenSolaris Clusters And Clouds From Your LaptopOpenSolaris Clusters And Clouds From Your Laptop
OpenSolaris Clusters And Clouds From Your Laptop
 
Open Solaris Introduction: How to make it feel like home
Open Solaris Introduction: How to make it feel like homeOpen Solaris Introduction: How to make it feel like home
Open Solaris Introduction: How to make it feel like home
 
XS Boston 2008 OpenSolaris
XS Boston 2008 OpenSolarisXS Boston 2008 OpenSolaris
XS Boston 2008 OpenSolaris
 
Introducción a OpenSolaris
Introducción a OpenSolarisIntroducción a OpenSolaris
Introducción a OpenSolaris
 
OpenSolaris On EeePc at Osc Spring
OpenSolaris On EeePc at Osc SpringOpenSolaris On EeePc at Osc Spring
OpenSolaris On EeePc at Osc Spring
 
Illumos la-jan11
Illumos la-jan11Illumos la-jan11
Illumos la-jan11
 
Osol Netadmin Solaris Administrator
Osol Netadmin Solaris AdministratorOsol Netadmin Solaris Administrator
Osol Netadmin Solaris Administrator
 
OpenSolaris School OS Beginners Guide
OpenSolaris School OS Beginners GuideOpenSolaris School OS Beginners Guide
OpenSolaris School OS Beginners Guide
 
OpenSolaris 2009.06 Workshop
OpenSolaris 2009.06 WorkshopOpenSolaris 2009.06 Workshop
OpenSolaris 2009.06 Workshop
 
Solaris vs Linux
Solaris vs LinuxSolaris vs Linux
Solaris vs Linux
 
What Linux can learn from Solaris performance and vice-versa
What Linux can learn from Solaris performance and vice-versaWhat Linux can learn from Solaris performance and vice-versa
What Linux can learn from Solaris performance and vice-versa
 
Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016Broken Linux Performance Tools 2016
Broken Linux Performance Tools 2016
 

Similar to OpenSolaris Web Stack MySQL BOF

Running your Java EE applications in the Cloud
Running your Java EE applications in the CloudRunning your Java EE applications in the Cloud
Running your Java EE applications in the CloudArun Gupta
 
Glassfish Web Stack Launch Jyri Virkki V2
Glassfish Web Stack Launch Jyri Virkki V2Glassfish Web Stack Launch Jyri Virkki V2
Glassfish Web Stack Launch Jyri Virkki V2Eduardo Pelegri-Llopart
 
Deploying And Monitoring Rails
Deploying And Monitoring RailsDeploying And Monitoring Rails
Deploying And Monitoring RailsJonathan Weiss
 
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010Arun Gupta
 
Deployment with Ruby on Rails
Deployment with Ruby on RailsDeployment with Ruby on Rails
Deployment with Ruby on RailsJonathan Weiss
 
Implementing High Availability Caching with Memcached
Implementing High Availability Caching with MemcachedImplementing High Availability Caching with Memcached
Implementing High Availability Caching with MemcachedGear6
 
Postgres the hardway
Postgres the hardwayPostgres the hardway
Postgres the hardwayDave Pitts
 
Running your Java EE 6 applications in the clouds
Running your Java EE 6 applications in the clouds Running your Java EE 6 applications in the clouds
Running your Java EE 6 applications in the clouds Arun Gupta
 
Introduction to node js - From "hello world" to deploying on azure
Introduction to node js - From "hello world" to deploying on azureIntroduction to node js - From "hello world" to deploying on azure
Introduction to node js - From "hello world" to deploying on azureColin Mackay
 
The Big Cloud native FaaS Lebowski
The Big Cloud native FaaS Lebowski The Big Cloud native FaaS Lebowski
The Big Cloud native FaaS Lebowski QAware GmbH
 
PHP Performance tuning for Drupal 8
PHP Performance tuning for Drupal 8PHP Performance tuning for Drupal 8
PHP Performance tuning for Drupal 8Acquia
 
Running your Java EE 6 applications in the Cloud (FISL 12)
Running your Java EE 6 applications in the Cloud (FISL 12)Running your Java EE 6 applications in the Cloud (FISL 12)
Running your Java EE 6 applications in the Cloud (FISL 12)Arun Gupta
 
Apache Apex & Bigtop
Apache Apex & BigtopApache Apex & Bigtop
Apache Apex & BigtopApache Apex
 
Dynamic Languages Web Frameworks Indicthreads 2009
Dynamic Languages Web Frameworks Indicthreads 2009Dynamic Languages Web Frameworks Indicthreads 2009
Dynamic Languages Web Frameworks Indicthreads 2009Arun Gupta
 
WordPress Performance & Scalability
WordPress Performance & ScalabilityWordPress Performance & Scalability
WordPress Performance & ScalabilityJoseph Scott
 
Rails hosting
Rails hostingRails hosting
Rails hostingwonko
 

Similar to OpenSolaris Web Stack MySQL BOF (20)

Running your Java EE applications in the Cloud
Running your Java EE applications in the CloudRunning your Java EE applications in the Cloud
Running your Java EE applications in the Cloud
 
Glassfish Web Stack Launch Jyri Virkki V2
Glassfish Web Stack Launch Jyri Virkki V2Glassfish Web Stack Launch Jyri Virkki V2
Glassfish Web Stack Launch Jyri Virkki V2
 
Web Space10 Overview
Web Space10 OverviewWeb Space10 Overview
Web Space10 Overview
 
Deploying And Monitoring Rails
Deploying And Monitoring RailsDeploying And Monitoring Rails
Deploying And Monitoring Rails
 
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
Running your Java EE 6 applications in the Cloud @ Silicon Valley Code Camp 2010
 
Deployment with Ruby on Rails
Deployment with Ruby on RailsDeployment with Ruby on Rails
Deployment with Ruby on Rails
 
Implementing High Availability Caching with Memcached
Implementing High Availability Caching with MemcachedImplementing High Availability Caching with Memcached
Implementing High Availability Caching with Memcached
 
Postgres the hardway
Postgres the hardwayPostgres the hardway
Postgres the hardway
 
Running your Java EE 6 applications in the clouds
Running your Java EE 6 applications in the clouds Running your Java EE 6 applications in the clouds
Running your Java EE 6 applications in the clouds
 
Introduction to node js - From "hello world" to deploying on azure
Introduction to node js - From "hello world" to deploying on azureIntroduction to node js - From "hello world" to deploying on azure
Introduction to node js - From "hello world" to deploying on azure
 
The Big Cloud native FaaS Lebowski
The Big Cloud native FaaS Lebowski The Big Cloud native FaaS Lebowski
The Big Cloud native FaaS Lebowski
 
PHP Performance tuning for Drupal 8
PHP Performance tuning for Drupal 8PHP Performance tuning for Drupal 8
PHP Performance tuning for Drupal 8
 
Running your Java EE 6 applications in the Cloud (FISL 12)
Running your Java EE 6 applications in the Cloud (FISL 12)Running your Java EE 6 applications in the Cloud (FISL 12)
Running your Java EE 6 applications in the Cloud (FISL 12)
 
Grizzly 20080925 V2
Grizzly 20080925 V2Grizzly 20080925 V2
Grizzly 20080925 V2
 
Apache Apex & Bigtop
Apache Apex & BigtopApache Apex & Bigtop
Apache Apex & Bigtop
 
MySQL Aquarium Paris
MySQL Aquarium ParisMySQL Aquarium Paris
MySQL Aquarium Paris
 
Dynamic Languages Web Frameworks Indicthreads 2009
Dynamic Languages Web Frameworks Indicthreads 2009Dynamic Languages Web Frameworks Indicthreads 2009
Dynamic Languages Web Frameworks Indicthreads 2009
 
WordPress Performance & Scalability
WordPress Performance & ScalabilityWordPress Performance & Scalability
WordPress Performance & Scalability
 
Glass Fish Portfolio Web Server Cvr
Glass Fish Portfolio Web Server CvrGlass Fish Portfolio Web Server Cvr
Glass Fish Portfolio Web Server Cvr
 
Rails hosting
Rails hostingRails hosting
Rails hosting
 

Recently uploaded

Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dashnarutouzumaki53779
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 

Recently uploaded (20)

Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dash
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 

OpenSolaris Web Stack MySQL BOF

  • 1. OpenSolaris Web Stack Where MySQL Meets the Next Generation OS. MySQL 2009 Conference & Expo Birds of A Feather Session Murthy Chintalapati (CVR) Jyri Virkki Sriram Natarajan, Brian Overstreet 1
  • 2. Agenda 1) Introducing the OpenSolaris Web Stack 2) OpenSolaris as cloud-ready, next generation web infrastructure platform 3) Support subscriptions via GlassFish Portfolio 4) Performance 5) Future Plus ... Demos & How to get involved. 2
  • 3. Brief Historical Background 1) OpenSolaris Web Stack project – Ongoing since August 2007 – Formally integrate all interesting web tier open source projects into OpenSolaris (via native IPS packages) 2) CoolStack project – Used to publish Solaris 10 packages of common web infrastructure open source components – Community effort, not a Sun product, no support 3
  • 4. Why Sun for your AMP stack? Sun has recognized experts on the virtual team ● standing behind the Web Stack Long-time committers and other contributors to Apache HTTP Server and PHP Core MySQL development The original author of lighttpd, as well as other contributors Memcached contributors Ruby (and JRuby), Python (and JPython) contributors Apache Tomcat was originally developed by Sun 4
  • 5. Why Sun for your AMP stack? Deep experience in product integration, ● performance, QA, and support of these features Delivering and supporting Apache HTTP Server, Tomcat, MySQL, and more in Solaris 10 Delivering a rich and up to date set of web components with CoolStack for Solaris 10 OpenSolaris Understanding of the entire lifecycle ● Improving the developer experience with support for web development from NetBeans Rich dynamic tracing capabilities 5
  • 6. What's Web Stack? A superset of 'AMP' (Apache + MySQL + PHP) stack • Provides the key web tier open source projects • integrated and tested for interoperability, as part of the OS distribution • Optimized for performance • Customized to leverage all the advanced OpenSolaris features. • Fully supported for production deployments (including cloud environments, viz., Amazon EC2, or network.com) 6
  • 7. OpenSolaris Web Stack The Complete Web Tier Sun Web Server Apache HTTPd GlassFish Lighttpd MySQL, Memcached Mod_jk, perl, PHP, Ruby, Python MediaWiki, Drupal, Wordpress, Squid, Tomcat Joomla — deploy in minutes! 7
  • 8. Web Stack components Web Stack component 1.4 1.5 Apache HTTP Server 2.2.9 2.2.11 GlassFish Enterprise v2 UR2 V2.1 lighttpd 1.4.19 1.4.21 memcached 1.2.5 1.2.5 mod_jk 1.2.25 1.2.27 mod_perl 2.0.2 2.0.4 MySQL 5.0.67 5.1.30 and 5.0.67 PHP 5.2.6 5.2.9 Python 2.5.2 2.6.1 Ruby Gems 0.9.4 1.3.1 Ruby 1.8.6 p287 1.8.7 p72 Squid 2.6.STABLE17 2.7 STABLE6 Tomcat 5.5.27 6.0.18 Hudson 1.2.x 8
  • 9. Sun GlassFish Web Stack? Sun Glassfish Web Stack unifies Sun product • offering under one umbrella – GlassFish Portfolio. • 24x7 production support available on both OpenSolaris and Solaris 10 Replaces CoolStack – – Available on Amazon EC2 cloud deployments. And also available on Red Hat Enterprise Linux 5 • • Same components; One product; Three platforms • Support pricing is based on per-server annual subscriptions – very similar to MySQL. 9
  • 10. GlassFish Portfolio: Easy to Acquire + MySQL Enterprise GlassFish Portfolio (per server per year in USD) (per server per year in USD) •Basic •Basic $599 $ 999 •Silver •Silver $1,999 $2,999 •Gold •Gold $2,999 $5,999 •Platinum •Platinum $4,999 $8,999 GlassFish Portfolio Unlimited Starting at $120,000 For the price of a single CPU of Oracle Enterprise Edition, companies with up to 1000 employees can deploy an unlimited number of GlassFish Enterprise Server, Web Stack, Web Server, Web Space, or ESB servers with full 24x7 production support. 10
  • 11. Some of the benefits of OpenSolaris. ZFS rocks! • – Data management made easy w/ lightweight snapshots Copy on write semantics; Support for native NFSv4 ACLs – DTrace • Improves observability of software stack – – Diagnose most crippling performance problems RBAC Security • Allows delegation of parts of system administration – tasks to users via roles. SMF • Self-healing for services. – Compatibility • Assurance of compatibility – 11
  • 12. Platform Notes: OpenSolaris 2008.11 Web Stack is available via native IPS • –No separate install required Install most components in one go: • pfexec pkg install amp •% Or handpick individual favorite components: • pfexec pkg install SUNWphp52 •% SUNWruby18 Fully integrated with SMF • pfexec svcadm enable apache22 •% • DTrace support included –In Apache httpd, PHP, and Ruby. 12
  • 13. Platform Notes: Solaris 10 Same components, same versions as OpenSolaris • • Available as SVR4 packages • Go to www.sun.com/software/webstack and click on “Get It!” Unpack the downloaded file into a new directory – •# ./install amp (installs typical components) Integrated with SMF • • DTrace support included –In Apache httpd, Ruby, PHP 13
  • 14. Platform Notes: RHEL 5 Again same components, same versions as • OpenSolaris. • Available as RPM packages • As with Solaris 10, download from www.sun.com/software/webstack –Unpack the downloaded file into a new directory •# ./install amp (installs typical components) •Full feature parity with OpenSolaris/Solaris10 –Except for features which are not available on Linux: –No smf, no DTrace support 14
  • 15. MySQL Performance Performance Issues with MySQL 5.0.67 • Data loads took 5-10 minutes – – Could only support 1450 concurrent users on Olio benchmark on X2250 server (16GB RAM, 2x quad core AMD 1.9GHz processors) Switched to MySQL 5.1.25 • Data loads now take seconds – – Concurrent users up to 1900 on the same h/w (+30%) – Master database handling 20,000 connections MySQL 5.4 (beta) even faster • (especially on multi-core systems) 15
  • 16. MySQL Performance Tuning MySQL Specific Tuning • innodb_flush_log_at_trx_commit = 2 – –> Relaxed requirements for Web 2.0 apps vs OLTP –> Flush log every second instead of every commit innodb_doublewrite_disabled – –> ZFS already provides consistency Increased join_buffer_size to 8M – –> Helps reduce join latency table_open_cache = 2048 – –> Increased to support large number of threads. Place the InnoDB write log on SSD's. – 16
  • 17. Apache & PHP Tuning Apache Specific Tuning • ListenBacklog 16384 – ServerLimit 8192 – MaxClients 8192 – MaxRequestsPerChild 0 – StartServers 128 – MinSpareServers 20 – MaxSpareServers 128 – PHP Specific Tuning • error_reporting = E_ALL & ~E_NOTICE – – upload_tmp_dir = /tmp – session.save_path = “/tmp/http_sessions” 17
  • 18. Web Stack Performance on Nehalem Workload – Apache Olio/PHP • • Servers based on Intel® Xeon® Processor 5500 • Web server + Memcached (1 system) 2 quad-core CPUs at 2.9 Ghz with 48GB main memory – (Sun Fire X2270 server configuration) – Hyper-threading is on – effectively 16 threads – Apache, PHP, memcached from OpenSolaris 2008.11 Database – (3 systems) • 2 quad-core CPUs at 2.5 Ghz (Sun Fire X4170) – – Using MySQL 5.1 Replication (1 master, 2 slaves) – Database on internal drives (ZFS) 18
  • 19. Web Stack Nehalem configuration Horizontal Scaling: With 2 web server, Web Stack scales to 10,000 users + 1 Million MySQL rows with 1 TB data 19
  • 20. Web Stack Performance Scaling on Nehalem Serv- ers 80 70 60 50 CPU Util. CPU 40 30 20 10 0 0 1000 2000 3000 4000 5000 6000 Users Blueprint: Deploying Web 2.0 Applications on Sun Servers and the OpenSolaris Operating System with Apache Olio/PHP Workload http://wikis.sun.com/display/BluePrints/Deploying+Web+2.0+Applications+on+Sun+Servers+and+the+OpenSolaris+Operating+System 20
  • 21. Future Directions Continue updating component versions to stay as • current as release cycle permits Releases are approximately aligned with OpenSolaris – releases Add selected components based on customer • value (feedback welcome!) Working towards fully relocatable stack via integration • with Glassfish Update Center Continuing on performance and scalability • improvements, and value adds for enterprise users. • And enhancing unique features... –e.g. much more DTrace support coming in 1.5. 21
  • 22. Future Directions – Enterprise Manager Dashboard • –Server/Runtimes listing w/ status –Message Console –Monitoring graphs –System-wide data –Server level data • Server management –Start/Stop –Richer monitoring at server level –Log viewer 22
  • 23. Future Directions – Web Stack Enterprise Manager 23
  • 24. Web Stack – More Information ... OpenSolaris Web Stack Project: • –http://opensolaris.org/os/project/webstack/ OpenSolaris Web Stack discussion: • –webstack-discuss@opensolaris.org Glassfish Web Stack product page: • –http://www.sun.com/software/webstack/ Solaris 10/RHEL download page: • http://www.sun.com/software/webstack/ and click on – “Get It!” Web Stack product forum: • –http://forums.sun.com/forum.jspa?forumID=980 24
  • 25. Demos – OpenSolaris Web Stack 1> Deploy Drupal CMS in seconds! 2> MySQL data restore via ZFS timeslider 3> End-to-end observability with DTrace (using NetBeans 6.7 PHP MS3) 25