Oracle Corporation · Solaris 11 for Developers Webinar Series. Oracle Corporation 3 ... – lower...
Transcript of Oracle Corporation · Solaris 11 for Developers Webinar Series. Oracle Corporation 3 ... – lower...
Oracle Corporation 1
2Oracle Corporation
Simplify your Development with Zones, ZFS and Crossbow (TCP/IP)
Eric Reid, Stefan SchneiderOracle Systems ISV Engineering
Solaris 11 for Developers Webinar Series
3Oracle Corporation
Webinar Series Topic Date Speaker
Modern Software Packaging for Enterprise Developers* 03-27-12 @ 9am PT
Eric Reid(Principal Software Engineer)
Simplify Your Development Environment with Zones, ZFS & Crossbow (Network Stack)
04-10-12 @ 9am PT
Eric Reid & Stefan Schneider(Chief Technologist, ISV Eng.)
Managing Application Services – Using SMF Manifests in Solaris 11*
04-24-12 @ 9am PT
Matthew Hosanee(Principal Software Engineer)
Optimize Your Applications on Solaris 11: The DTrace Advantage*
05-08-12 @ 9am PT
Angelo Rajadurai(Principal Software Engineer)
Maximize Application Performance and Reliability on Solaris 11*- Record breaking compilers, powerful analysis tools, remote development
05-22-12 @ 9am PT
Vijay Taktar(Senior Manager, Software Dev.)
Writing Solaris 11 Device Drivers* 06-05-12 @ 9am PT
Bill Knoche(Principal Software Engineer)
Solaris 11 for DevelopersWebinar Series
4Oracle Corporation
Objectives of this Presentation
• Share ideas to – architect a Solaris
development system– lower costs by smart
consolidation– react faster on changing
requirements– make SW developers
more productive– simplify internal
processes
• Turn technologies like ZFS, Zones, Crossbow into time saving solutions
5Oracle Corporation
Decision Tree for Lab SetupCategory Logical Domains Solaris Zones
Concept Full OS replication with hypervisor
Isolation and virtualization of APIs and services
HW resources assigned Assignment optional; shared with global zone
Resource mgmt. HW resources assigned
Optional (RBAC, zones, proj.)
Instance life time long (static) as needed (very dynamic)
Memory overhead
of a full OS... of a few daemons
Limitations Same shared kernel Focus:* Flexibility* Agility* Features
6Oracle Corporation
Challenges Faced by Development and QA Engineers
• Hardware resources are very limited
• Multiple test environments are required to deploy different software stacks
• Considerable amount of time required to install the OS and configure resources to test environments
• Restoring test environments repeatedly after regular testing due to changes while testing
7Oracle Corporation
Logical Domains (LDom)
• LDom provides virtualization based on the hypervisor
• LDom provides provides protection and isolation through SPARC hardware and hypervisor firmware
• Each virtual machine (logical domain) appears as an independent machine
• Each domain is a virtual machine with reconfigurable subset of machine resources and its own independent OS
• LDom is now known as Oracle VM Server for SPARC
8Oracle Corporation
Oracle Solaris Zones
• … provide a partitioning technology
• … are available on Oracle Solaris 10 and Oracle Solaris 11
• … isolate software applications and services by using software defined boundaries (based on Solaris kernel)
• … enable private execution environments within a single instance of the Solaris kernel
• … provide a virtualized Solaris OS image, including a unique root file system and a shared set of system executables, libraries and resources
9Oracle Corporation
Zone-Based Virtual Test Environments
• A local zone can be an ideal test environment
• Each local zone appears as an independent, isolated test system
• You can easily setup zone-based test environments
• You can establish separate test environments in different zones, for different applications, all within the same system
• You can easily restore and clone zones-based test environments
• The virtual environment guarantees sufficient CPU and memory resource allocation to applications while retaining the ability to use idle resources as required
10Oracle Corporation
ZFS
ZonesSolaris 11
TCP/IP
• Isolation• Minimal overhead• Organizational
independence• No license issues• Solaris 10 and Solaris
11 support (in a Solaris 11 system)
• Ease of application configuration through VNICs
• Complex internal network topologies
• Organizational independence
• Cloning on demand• Deduplication on demand• Snap shot on demand• Compression on demand
Solaris 11
Development
Environments
1+1+1 is greater than 3Things coming together in Solaris 11
11Oracle Corporation
Scenario 1: Application Support for Solaris 10 and Solaris 11
• Goal: Build cost efficient applications which support customer installations of the last ~8 years and the next 3 years– Support Oracle Solaris 10 and Oracle Solaris 11– Build on Solaris 10 and qualify for Solaris 10 and 11– Use the latest compiler (Sun Studio 12.3)
• Strategy: Use one Oracle Solaris 11 system and exploit the Solaris 10 infrastructure as well as the Solaris 11 infrastructure– Retire old, slow, energy inefficient V- and E-class servers and
consolidate on T4 servers
12Oracle Corporation
Scenario 1: The Architecture
• Solaris 11 Global Zone– Compiler and tools• Sharing through NFS
– General infrastructure– Version management• IPS• Highest version recommended
• Solaris 10 Zone (Build Server)– Solaris 10 SVR4 packages as
needed– General infrastructure imported
through NFS mounts– Version management• SVR4• Studio implicitly maintained
through IPS
13Oracle Corporation
Scenario 1: Comments
• Solaris 10 Branded zones require – an existing Solaris 10 image (Administration Guide) to be cloned– or a bootable Image to be attached– This is the way to upgrade and consolidate your build servers... :-)
• The cross mounts require NFS as sharing technology– LOFS mounts will not work for multiple mount points
• Solaris 10 patching will have to happen individually
14Oracle Corporation
Scenario 2: QA requires Developer to analyze Problem
• Solution:– Provide
independent copy of setup
– Use zones cloning to create a copy of the application (disk) state and Solaris zone
– Provide a live zone on demand for the developer
15Oracle Corporation
Scenario 2: How to get it done...
• Setup QA Env. in a zone
• Shutdown QA zone when needed
• Clone zone– Have template with system
configuration
• Restart QA zone
• Boot debug clone on demand
• Destroy debug clone zone when needed
• Impact– Disk: Minimal, zone clones
share unmodified disk blocks
– Memory: Extra application memory needed for parallel work. Halted zones don't need memory
– CPU: as needed
• Privileges required– Zones admin on target sys.– Access to IP addresses for
remote access (or use global zone as gateway)
• Resources: – Get Started creating zones
16Oracle Corporation
Scenario 3: Qualifying Applications for Solaris 10 and Solaris 11
• Option: Parallel QA– CPU, Memory, network
requirements will double– ...but not more than double!
• Option: Alternate QA– The halted zone will require disk
space for non deduplicated content
– Shutdown or reboot within seconds• Comment
– Solaris 11 zone can be patched in sync. with global zone
17Oracle Corporation
Scenario 4: QA in Complex Network Topologies
• Concept– Configure internal network– Keep network topology as private
network– Keep traffic inside the system
• Benefits– Load tests without side effects to
lab net– Test “network plumbing” of
application installation software– Configure multiple network
configurations (no costs as long as the zones are being shutdown)
18Oracle Corporation
Scenario 4: Comments
• Comments– New: Network Administration has been completely refurbished!– New: Virtual NICs allow applications to hard code against vnics
without knowledge of the physical interface!– Network Resource control is optional (… and recommended)
• Simulate extreme customer network configurations
19Oracle Corporation
Scenario 4: References
• References– Solaris 11 Network Virtualization Technology– How to Script … Network-In-a-Box– Oracle Solaris 11 … Network Virtualization and … Management
20Oracle Corporation
Example: “Eat you own Dog Food” Oracle Remote Solaris Lab
• A secure cloud environment built on Solaris 11 technologies– Use of Solaris network virtualization technologies to create a secure
VLAN per user and segregate network traffic– Zones technology segregates partner VMs– Secure Global Desktop provides segregated communications
channels– ZFS technology provides rapid deployment of images in partner
VMs and secures data
21Oracle Corporation
Example: “Eat you own Dog Food”Oracle Remote Solaris Lab
• An easy to use self-service secure cloud environment for testing
– Provides partner access to SPARC and x86 VMs in Oracle Solaris 11 environments
– Simplified cloud deployment can be up and running in minutes
– Self explanatory web UI reduces start up time to almost zero
– Partner can make use of Virtual Machine Images with software packages preinstalled (such as Sun Studio Compilers, Oracle Data Base, WebLogic) to create tailor made VMs
• Available to OPN Gold+ members
22Oracle Corporation
To Learn More…
• Solaris 10 Administration Guide: Branded Zones Migration– http://docs.oracle.com/cd/E23824_01/html/821-1460/gjfbq.html#scrolltoc
• Introduction to zones– http://www.oracle.com/technetwork/articles/servers-storage-admin/o11-092-s11-zones-intro-524494.html
• Solaris Trainings– http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=402&p_nl=ORSL
• Check out other Webinars in this series– http://www.oracle.com/technetwork/server-storage/solaris11/overview/webinar-series-1563626.html
23Oracle Corporation
Call To Action
• Save Costs– Consolidate your test lab with Oracle Solaris 11
• Invest in Solaris 11 Networking and Virtualization Skills
• Exploit the Developer Support Benefits for OPN Gold Members
• Get your hands dirty...– Everything is there, all features discussed are standard Solaris 11
features.
24Oracle Corporation
Webinar Series Topic Date Speaker
Modern Software Packaging for Enterprise Developers* 03-27-12 @ 9am PT
Eric Reid(Principal Software Engineer)
Simplify Your Development Environment with Zones, ZFS & Crossbow (Network Stack)
04-10-12 @ 9am PT
Eric Reid & Stefan Schneider(Chief Technologist, ISV Eng.)
Managing Application Services – Using SMF Manifests in Solaris 11*
04-24-12 @ 9am PT
Matthew Hosanee(Principal Software Engineer)
Optimize Your Applications on Solaris 11: The DTrace Advantage*
05-08-12 @ 9am PT
Angelo Rajadurai(Principal Software Engineer)
Maximize Application Performance and Reliability on Solaris 11*- Record breaking compilers, powerful analysis tools, remote development
05-22-12 @ 9am PT
Vijay Taktar(Senior Manager, Software Dev.)
Writing Solaris 11 Device Drivers* 06-05-12 @ 9am PT
Bill Knoche(Principal Software Engineer)
Solaris 11 for DevelopersWebinar Series
25Oracle Corporation
Resources for Solaris 11 Developers
Web address:
26Oracle Corporation
Q&A
27Oracle Corporation