Upload
ed-burns
View
837
Download
6
Embed Size (px)
Citation preview
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle WebLogic Server 12.2.1Do More With Less
Ed Burns @edburnsslideshare.net/edburns/Java EE Specification TeamNovember 2015
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Safe Harbor StatementThe 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.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Software Stylist• JSF Spec Lead since 2003• Servlet Spec Lead since 2014Coder• Implemented lots of Mojarra JSF RIAuthor
Conference Speaker• JavaOne, GeekOut, ConFESS,
JavaLand, DevNexus, Devoxx, JavaZone, Jazoon, JAX, Herbstcampus, JUGs…
Trainer• Full day Java EE/HTML5 Training• JSF training
Speaker Qualifications: Ed Burns
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
My Plan for Your Time Investment
Opinion Piece on App Servers
Threats and Responses
WebLogic Server 12.2.1 Big Ticket New Features
Multi-Tenancy, Java EE 7, Zero Downtime Patching,Docker Support
Coherence 12.2.1 with Java SE 8 Features
1
2
3
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
20 Years of JavaGewinnspiel Mauspad
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
20 Years of JavaGewinnspiel Mauspad
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are Dead
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• Example: Eberhard Wolff, ex-Springhttp://www.slideshare.net/ewolff/java-application-servers-are-dead• Personally, I don’t buy into this
meme. Just as I am skeptical of “Tech Radars”.@Bodil
Meme: App Servers Are Dead MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• Example: Eberhard Wolff, ex-Springhttp://www.slideshare.net/ewolff/java-application-servers-are-dead• Puppies, however, are OK.
@puffnfresh
Meme: App Servers Are Dead MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are DeadOriginal Vision for App Servers
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are DeadOriginal Vision for App Servers
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are DeadOriginal Vision for App Servers
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are DeadOriginal Vision for App Servers
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are DeadOriginal Vision for App Servers
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are DeadOriginal Vision for App Servers
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are DeadOriginal Vision for App Servers
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are Dead MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are Dead MEIN
UN
G
Credit: Gilbert Mercier
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are Dead MEIN
UN
G
Credit: John W. Iwanski
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are Dead MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are Dead MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are Dead MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are DeadOne Response To This Supposedly Failed Vision
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Meme: App Servers Are Dead
.EXEM
EINU
NG
One Response To This Supposedly Failed Vision
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Opinionated Response
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Response: What Do You Mean By Dead?Standards Are an On-Ramp to the Cloud
STAND
ARDS
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Response: What Do You Mean By Dead?How Sticky Do You Want To Be?
MEIN
UN
G
Credit: Neil Tackaberry
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Response: What Do You Mean By Dead?Local to Remote
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Response: What Do You Mean By Dead?Injection Can Be Used for Good
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Response: What Do You Mean By Dead?The Importance of Being Portable: Your Mileage May Vary
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Response: What Do You Mean By Dead?Resource Usage and the Cloud
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Response: What Do You Mean By Dead?If You’ve Already Bought Into the App Server Lifestyle
MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• A Monolith is simply a full stack solution that no one wants to maintain any more.
“Full Stack Solution” or “Monolith” MEIN
UN
G
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
My Plan for Your Time Investment
Opinion Piece on App Servers
Threats and Responses
WebLogic Server 12.2.1 Big Ticket New Features
Multi-Tenancy, Java EE 7, Zero Downtime Patching,Docker Support
Coherence 12.2.1 with Java SE 8 Features
1
2
3
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
WebLogic Server 12.2.1 Big Ticket New Features• Multi-tenancy• Java EE 7• Zero Downtime Patching• RESTful access to all of configuration surface area• Docker Support• Redesigned Fusion Middleware Control (using ALTA experience)
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
WebLogic Server 12.2.1 Big Ticket New Features
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
WebLogic Server 12.2.1 Big Ticket New Features
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
WebLogic Server 12.2.1 Big Ticket New Features
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
WebLogic Server 12.2.1 Big Ticket New Features
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | WebLogic Multitenancy: Efficiency, Agility, and Lower Cost
41
WebLogic Multitenant: Solving Critical Business Challenges
MicrocontainerPortability for Devops
WebLogic MT
Java Cloud Service
3X Consolidation Ratio
WebLogic WebLogic WebLogic
Java Cloud Service
Secure/IsolatedMultitenant Java
WebLogic MT
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | WebLogic Multitenancy: Efficiency, Agility, and Lower Cost
42
Microcontainers and a Shared PlatformWebLogic Multitenant
WebLogic
Apps
Resources
WebLogic
Apps
Resources
Apps
Resources
Apps
Resources
Apps
Resources
WebLogic
Apps
Resources
WebLogic
Encapsulate applications into pluggable partitions
Run them on shared platforms
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | WebLogic Multitenancy: Efficiency, Agility, and Lower Cost
43
Key Technical Concepts
TrafficDirector
WebLogic Server
Partition 1
Virtual Target Ap
pApp JMS Data
Source
JNDI
Coherence
Service 1 Service 2 … Service N
Partition 1
Database
Partition 2
Virtual Target Ap
pApp JMS Data
Source
JNDIPartition 2
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | WebLogic Multitenancy: Efficiency, Agility, and Lower Cost
Microcontainers in WebLogic Server 12.2.1
Dev Env
• Maximum portability between environments
• Parity between dev and production
• Fast startup/shutdown – disposability
• Easy scale up
• Enable migration to the cloud
Oracle WebLogic Server
Apps
Resources
Apps
Resources
Java Cloud Service
Apps
Resources
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | WebLogic Multitenancy: Efficiency, Agility, and Lower Cost
45
Resource Consumption Managers
• Deep integration between WebLogic Server and the Oracle JDK
• Prevents resource hogging, protects applications in a shared JVM
• Managed resources– Retained heap, CPU time, open file descriptors
• Triggerable actions– Notify – inform administrator that a threshold has been crossed– Slow – reduce partition’s ability to consume resources– Fail – reject requests for the resource (file descriptors only)– Stop – initiate the shut down sequence for the offending partition
• “Boundaries” and Fair Share usage patterns
Runtime Isolation Within a JVM
Partition 1
Partition 2
JVM
Boundary Between Partitions
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 46
Declared BoundariesHeap Example
9 GB JVM
Partition 1 Partition 2 Partition 3 Partition 4 <name>heap-level-1</name> <heap> <trigger> <name>1.25GB</name> <value>1250</value> <action>notify</action> </trigger> <trigger> <name>1.5GB</name> <value>1500</value> <action>slow</action> </trigger> <trigger> <name>2GB</name> <value>2000</value> <action>stop</action> </trigger> </heap>
1.25
1.5
2.0
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 47
Declared BoundariesHeap Example
9 GB JVM
Partition 1 Partition 2 Partition 3 Partition 4 <name>heap-level-1</name> <heap> <trigger> <name>1.25GB</name> <value>1250</value> <action>notify</action> </trigger> <trigger> <name>1.5GB</name> <value>1500</value> <action>slow</action> </trigger> <trigger> <name>2GB</name> <value>2000</value> <action>stop</action> </trigger> </heap>
1 GB
0.5 GB
0.75 GB
0.5 GB
1.25
1.5
2.0
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 48
Declared BoundariesHeap Example
9 GB JVM
Partition 1 Partition 2 Partition 3 Partition 4 <name>heap-level-1</name> <heap> <trigger> <name>1.25GB</name> <value>1250</value> <action>notify</action> </trigger> <trigger> <name>1.5GB</name> <value>1500</value> <action>slow</action> </trigger> <trigger> <name>2GB</name> <value>2000</value> <action>stop</action> </trigger> </heap>
1.26 GB
0.5 GB
0.75 GB
0.5 GB
Crossing 1.25 GB triggers “notify” action
1.25
1.5
2.0
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 49
Declared BoundariesHeap Example
9 GB JVM
Partition 1 Partition 2 Partition 3 Partition 4 <name>heap-level-1</name> <heap> <trigger> <name>1.25GB</name> <value>1250</value> <action>notify</action> </trigger> <trigger> <name>1.5GB</name> <value>1500</value> <action>slow</action> </trigger> <trigger> <name>2GB</name> <value>2000</value> <action>stop</action> </trigger> </heap>
1.51 GB
0.5 GB
0.75 GB
0.5 GB
Crossing 1.5 GB triggers “slow” action
1.25
1.5
2.0
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 50
Declared BoundariesHeap Example
9 GB JVM
Partition 1 Partition 2 Partition 3 Partition 4 <name>heap-level-1</name> <heap> <trigger> <name>1.25GB</name> <value>1250</value> <action>notify</action> </trigger> <trigger> <name>1.5GB</name> <value>1500</value> <action>slow</action> </trigger> <trigger> <name>2GB</name> <value>2000</value> <action>stop</action> </trigger> </heap>
2.05 GB
0.5 GB
0.75 GB
0.5 GB
Crossing 2 GB triggers “stop” action
1.25
1.5
2.0
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 51
Declared BoundariesHeap Example
9 GB JVM
Partition 1 Partition 2 Partition 3 Partition 4 <name>heap-level-1</name> <heap> <trigger> <name>1.25GB</name> <value>1250</value> <action>notify</action> </trigger> <trigger> <name>1.5GB</name> <value>1500</value> <action>slow</action> </trigger> <trigger> <name>2GB</name> <value>2000</value> <action>stop</action> </trigger> </heap>
0.5 GB
0.75 GB
0.5 GB
1.25
1.5
2.0
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | WebLogic Multitenancy: Efficiency, Agility, and Lower Cost
High Density/Virtualization
• Lower Total Cost of Ownership of server-side Java Infrastructure– Reduce hardware footprint/CAPEX by 66%– Reduce OPEX costs by 25%– Consolidate domains by 10X
• Simplify with Java Cloud Infrastructure – Easy to adopt– Elasticity on demand– Promotes consistency, quality, and standardization
3X Density Improvement
Apps
ResourcesMicrocontainer
Apps
ResourcesMicrocontainer
Apps
ResourcesMicrocontainer
Apps
ResourcesMicrocontainer
Apps
ResourcesMicrocontainer
Apps
ResourcesMicrocontainer
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 53
WebLogic MT Value Prop
• Benchmark Data shows significant consolidation opportunities
• Running 10 partitions in shared JVMs shows no increase in response times, minimal increase in memory footprint
• CPU load per app is reduced
DensityNon-MT
= 1 VM + Guest OS + JVM
MT
= Partition within a JVM
AdminAdmin
Admin
Admin
Admin
Admin
Admin
Admin
Admin
Admin
Admin
WebLogic Multitenancy: Efficiency, Agility, and Lower Cost
Admin
Admin
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | WebLogic Multitenancy: Efficiency, Agility, and Lower Cost
54
MT Benchmark Data
MedRec
Non-MT:1 domainAdmin + 4 node cluster1 app/domain
Non-MT:Extrapolated for 10 domains
WLS-MT:1 domainAdmin + 4-node cluster
10 partitions/domain1 app/partition
Savings
JVM Heap Setting -Xms:512m –Xmx 2g -Xms:512m –Xmx 2g -Xms:512m –Xmx 2g
Concurrent users 400 4000 4000
TPS Transaction/Sec 2.37 23.7 23.45
Response Time (Sec)90% RT 0.47 0.239 0.057
Average RT 0.17 0.107 0.052
CPU Usage %CPU ( per VM )2% each on 4 CPUs
0.5% of total server CPU capacity
5% each on 16 CPUs5% of total server
CPU capacity
8% of 4 CPUs2% of total server CPU
capacity60%/2.5X less CPU usage
Process OS Memory Footprint (GB) Average 3.88 (0.97 each on 4
VMs)38.8 (0.97 each on 40
VMs)11.2 (2.8 each on 4
VMs) 71%/3.5X less memory usage
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | WebLogic Multitenancy: Efficiency, Agility, and Lower Cost
55
Multitenancy in WebLogic 12.2.1
• Agility/devops with lightweight pluggable partitions– Ultra-light container-like service packaging– Portability across environments
• High density with domain and JVM sharing– Consolidate/virtualize within domains and
JVMs
• Isolation between microcontainers– Runtime, administration, security, data
Summary
Oracle WebLogic Server
Apps
Resources
Apps
Resources
App Svr
Apps
Resources
App Svr
Apps
Resources
WebLogic
Apps
Resources
Apps
Resources
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Java EE 7 SupportMeet the Family
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Java EE 7 SupportMeet the Family
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Oracle WebLogic Server Continuous Availability
• Simplify multi data center operations of WebLogic Server and Coherence with Oracle Site Guard– From 1000’s of manual steps to complete
automation
• Enable zero planned downtime • Enable zero unplanned downtime
Multi Data Center Deployment
WebLogic &Coherence
WebLogic &Coherence
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
WebLogic Continuous Availability: Multi Data Center Resilience
Automated DataCenter Setup/Failover
Active ActiveContinuous Availability
WebLogic WebLogic
Coherence
Reduced Application Downtime
Database
Security Patch
WebLogic
WebLogic WebLogic
Coherence
XCoherence
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Zero Downtime PatchingContinuous Application Updates
through automated patch rollout w/ rollback on error
Recoverable Persistent Caching
Durable storage of cached data and metadata with automated recovery
Multitenant Live Partition Migration
Migrate Running Tenant Partitions without impacting users
Reduce Application Downtime
Cluster 1 Cluster 2
Node 1
OracleHome-P1
OracleHome
ManagedServer1
ManagedServer2
Node 3
OracleHome-P1
OracleHome
ManagedServer5
ManagedServer6
Node 2
OracleHome-P1
OracleHome
ManagedServer3
ManagedServer4
Repository
Application
Cohe
renc
e
WebLogic
WebLogic
WebLogic
WebLogic
Parti
tion
1
WebLogic
WebLogic
WebLogic
WebLogic
Parti
tion
1
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Configuration Accessible via REST
REST
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
ORACLE CLOUD PLATFORM
Oracle Cloud Platform: Application ServicesWebLogic Server 12cR2 Demonstration – WebLogic 12.2.1 on Docker Containers
Copyright © 2015 Oracle and/or its affiliates. All rights reserved. | 62
• Complete and Integrated
• Best-in-Class
• Open Standards
• On-Premise and Cloud
CloudOn-Premise
COHERENCEJAVA CLOUDDEVELOPER CLOUD TUXEO WEBLOGIC SERVER
APPLICATION SERVICES
WebLogic Server 12cR2 on
Docker Containers
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Certification of WebLogic running on DockerWLS Version JDK Version HOST OS Kernel Docker Version
12.2.1 8 Oracle Linux 6 UL 6 Unbreakable Enterprise Kernel Release 3 (3.8.13)
1.7+
12.2.1 8 Oracle Linux 7 Unbreakable Enterprise Kernel Release 3 (3.8.13) or
Red Hat Compatible Kernel (3.10)
1.7+
12.2.1 8 Red Hat Enterprise Linux 7 Red Hat Compatible Kernel (3.10)
1.7+
12.1.3 7/8 Oracle Linux 6 UL 5 Unbreakable Enterprise Kernel Release 3 (3.8.13)
1.3.3+
12.1.3 7/8 Oracle Linux 7 Unbreakable Enterprise Kernel Release 3 (3.8.13) or
Red Hat Compatible Kernel (3.10)
1.3.3+
12.1.3 7/8 Red Hat Enterprise Linux 7 Red Hat Enterprise Linux Kernel (3.10)
1.3.3+
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
WebLogic Docker Images
Oracle Linux 7
JDK 8 &WebLogic Server Installation
WebLogic Server Domain
Base Image
Install Image
Domain Image
• Base Image–Oracle Linux 7 or RedHat 7 (already available on Docker Hub)
• Install Image– Download WebLogic installers and JDK–WebLogic Dockerfiles to extend base image with Oracle
Linux 7, JDK 8, and the WebLogic Server 12.2.1 installation (Full or Developer installation)
• Domain Image– Edit sample Dockerfile posted on GitHub to extend WLS
install image to create a domain configuration. https://github.com/oracle/docker
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Running WebLogic Server Docker Container
65
• From the WebLogic Server image you can start two different container configurations
‒ Run Admin Server Container‒ Run Managed Server Container
• Using these containers you can create different topologies.‒ WebLogic Server Docker Topology‒ Containerized Oracle WebLogic Server Applications
Admin Server Container
AS
Managed Server Container
MS
App
NMJMS
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
My Plan for Your Time Investment
Opinion Piece on App Servers
Threats and Responses
WebLogic Server 12.2.1 Big Ticket New Features
Multi-Tenancy, Java EE 7, Zero Downtime Patching,Docker Support
Coherence 12.2.1 with Java SE 8 Features
1
2
3
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 67
Summary
• Lambdas are a defining feature of Java 8• Coherence 12.2.1 allows you to use lambdas– Like standard Java, but both locally & in a distributed manner– Allows in-place update without locking / synchronization–With existing Coherence features (like Entry Processors, Listeners…)– To perform stream-based operations
• Coherence adds support for serialization of standard functional interfaces• Coherence handles distributed stream & lambdas in a dynamic way– Supports multiple versions of clients seamlessly running side-by-side without restart
Distributed Lambdas Rock! Imagine the possibilities!
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 68
Summary
• Stream API provides functional API for query and aggregation • Collectors eliminate the need for custom code • Coherence provides Distributed Stream API – Allows parallel processing of data streams across a cluster “in-place”– Scales multiple threads in a single process to multiple threads in multiple processes
across machines across the Coherence cluster (with high-availablity)– Provides optimizations to avoid deserialization & use indexes– Stable results even during cluster failure / recovery
• Next generation? Real-time continuous stream processing
Distributed Streaming Rocks!
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Join the WebLogic Server CommunityTwitterhttps://twitter.com/WebLogicServer
Facebook https://www.facebook.com/WebLogicServer
Oracle’s WebLogic Server LinkedIn https://linkedin.com/WebLogic Server
YouTube http://www.youtube.com/OracleWebLogic
Oracle’s WebLogic Server blog https://blogs.oracle.com/WebLogicServer
Oracle.com/WebLogicServer
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Safe Harbor StatementThe preceding 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.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |