GlassFish in the Virtual World
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

GlassFish in the Virtual World

on

  • 1,866 views

GlassFish in the Virtual World at JavaOne Latin America 2011

GlassFish in the Virtual World at JavaOne Latin America 2011

Statistics

Views

Total Views
1,866
Views on SlideShare
1,849
Embed Views
17

Actions

Likes
0
Downloads
36
Comments
0

1 Embed 17

http://blogs.oracle.com 17

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

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

GlassFish in the Virtual World Presentation Transcript

  • 1. 1 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 2. The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle s products remains at the sole discretion of Oracle.2 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 3. GlassFish in the Virtual WorldHow GlassFish turns into a PAAS provider 3 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 4. Agenda •  Introduction •  PaaS •  GlassFish as a PaaS provider •  IaaS Management Service •  Orchestration •  Elasticity4 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 5. Development and Deployment TimelineRequirements Development Hardware procurement Application Installation t0 t1 t2 t3Prototyping Testing Hardware installation Certification The I.T. rift 5 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 6. Introduction ([I|P|S]aas) Multi-tenant Java EE SAAS application Mutil-Services Java EE instances PAAS and Resources Elasticity Isolation Virtualization, IAAS Storage, Network6 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 7. Application Installation •  Install Java EE application server on all hardware •  Create a dedicated (static) cluster of Java EE server instances •  Map incoming traffic to Java EE server instances •  Resolve cluster dependencies (MQ, Database) •  Change Java EE application runtime descriptor to map to the deployment cluster (optional) •  Deploy the application7 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 8. Agenda •  Introduction •  PaaS •  GlassFish as a PaaS provider •  IaaS Management Service •  Orchestration •  Elasticity8 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 9. PaaS to the rescue •  I.T. departments can offer usual services through a private PaaS : –  No delay –  Secure –  Maximize hardware utilization –  Monitoring •  Developers –  Faster time to market. –  Easier deployment facilities9 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 10. What does PaaS mean for Java EE •  One Step deployment : –  Multi-services interdependencies resolution –  Cluster of Java EE server instances procurement –  Cluster elasticity : •  Metrics provided by application •  Application Server metrics (response time, etc..) •  Virtual Machine information (CPU, Memory usages) •  And one step un-deployment…10 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 11. Agenda •  Introduction •  PaaS •  GlassFish as a PaaS provider •  IaaS Management Service •  Orchestration •  Elasticity11 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 12. Requirements on GlassFish •  Capable of creating/starting/stopping/deleting Virtual Machines •  Capable of monitoring Virtual Machines •  Capable of self-shaping the cluster based on statistics •  Understands service definitions •  Understands service references •  Bind references to definitions using virtual machines12 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 13. GlassFish in the Cloud Monitor Service deployedDiscovery Applications Orchestration Elasticity Management Engine Service Service Adjust clusterAssociation shape Service Provisioning Engine Hypervisor Abstraction Iaas Management Template Template Service Management matching Cloud Resources ConfigurationVersioning VirtualBox OVM Plugin KVM Plugin plugin 13 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 14. GlassFish as a PaaS ProviderTimeline Application Virtual Cluster Association Deployment introspection Creation Virtual Machine Virtual Machine With Load with Database Balancer service Virtual Machine with Java EE 14 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 15. Agenda •  Introduction •  PaaS •  GlassFish as a PaaS provider •  IaaS Management Service •  Orchestration •  Elasticity15 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 16. IMS Architecture Common Common CLIs configuration Service Provisioning virt-core Engine KVM specific configuration VirtualBox KVM Specific OVM Plugin KVM Plugin CLIs plugin Libvirt interface layer16 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 17. Three virtualization implementations •  Laptop mode –  Runs processes on the bare metal operating system. –  All service types supported (not all variations) •  Local mode –  Locally installed hypervisor –  Best fidelity to deployment scenario •  Remote mode –  Connects to remote hypervisors17 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 18. Hypervisor plugin Hypervisor   Local  Mode   Remote  Mode   Laptop  mode   Yes   Soon   KVM   Yes   Yes   Xen   Yes   Yes   VirtualBox   Yes   No   OVM   Yes   Yes   Vmware   Yes   Yes  18 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 19. Topology IaaS Management Service Server Pool Server Pool Server Pool Europe Asia Oracle  Enterprise   IaaS  Provider   Oracle  VM  Machines  in   Machines  in   Manager   (Amazon)   Manager   Machines  in  U.K.   France   Germany   19 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 20. Agenda •  Introduction •  PaaS •  GlassFish as a PaaS provider •  IaaS Management Service •  Orchestration •  Elasticity20 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 21. Services •  It’s all about Services, how to provide them, how to resolve them and eventually how to inject them. –  Provisioned •  Application Scoped •  Global/Shared –  External •  Service Metadata –  Service Definition –  Service Reference (implicit and explicit)21 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 22. Service Reference •  glassfish-services.xml –  Explicit Service References definition •  Target template •  Characteristics matching •  Will be replaced with Java EE standard XML22 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 23. Service Reference Example<glassfish-services> <service-description name="MyDB”> <!-- Based on the characteristics specified below, the Orchestrator would match to a Template in the Template Repository and provision that Service --> <characteristics> <characteristic name="service-type" value="Database"/> <characteristic name="service-vendor" value="Oracle"/> <characteristic name="service-product-name" value="Oracle"/> <characteristic name="service-version" value="11g"/> <characteristic name="os-name" value="Linux"/> </characteristics> <configurations> <!-- Create initial schema --> <configuration name="init.sql" value="tbl-init.sql"/> </configurations> </service-description></glassfish-services>23 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 24. PaaS Application Deployment Service Reference Message Queue Configure Application LoadBalancer Extraction Service with procured services references Provision and Initialize Provision and InitializeDeploymentPipeline Provision and Initialize Provision and Initialize Deploy application Database Service Java EE Service 24 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 25. Redeployment •  Reuse existing services/cluster of Java EE instances •  Adapt shape to new application requirements •  Data migration –  Database schema upgrade –  Security •  Rolling upgrades still apply •  Lower stack software update (O.S. / Database)25 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 26. Undeployment •  Rule of thumb : undo what was done during deployment •  Application scoped services stopped and released •  Shared services released •  Cluster of Java EE instances deleted •  Virtual Machines released •  Virtual Disks deleted26 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 27. Agenda •  Introduction •  PaaS •  GlassFish as a PaaS provider •  IaaS Management Service •  Orchestration •  Elasticity27 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 28. How to Determine when to Autoscale •  Monitor Resources used by the system –  CPU •  Used and idle CPU times –  Memory •  Process memory: Allocated, Resident etc. •  JVM memory: Used, Committed and Max memory –  Disk •  Reads, Writes per seconds •  Bytes read, written etc.28 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 29. How to Determine when to Autoscale –  Java Objects •  HTTP Sessions created / destroyed per second •  Number of HTTP requests that arrived •  Connection Pools: Number of connections acquired / released etc. •  Database Queries executed •  Transaction status: Number of commits / rollbacks –  Application Specific Metrics •  Response time of a specific URL –  Many, many, many other metrics…29 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 30. Metric Sources •  JMX –  Example MXBean to gather memory statistics –  Operating environment may have JMX MBeans that provide some metrics •  Monitoring tools –  Virtual Machine Manager can provide cpu / memory usage metric •  Native tools –  Top, lsof, iostat etc.30 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 31. Want to try ? •  Source code and builds –  http://glassfish.java.net/ •  The aquarium –  http://blogs.oracle.com/theaquarium/ •  The specs –  http://javaee-spec.java.net/31 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8
  • 32. Latin America 2011 December 6–8, 2011 Tokyo 2012 April 4–6, 201232 Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 8