Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
AMIS 25 - Beyond the Horizon
Jaap Poot, juni 3rd 2016
High density deployments using Weblogic
Multitenancy
Jaap Poot
Principal Oracle Consultant
Since feb 2013 @
Fusion Middleware
Exalogic
ODA
OVM
Linux
DBA
2
Introduction
jaap.po...
3
Weblogic Multitenancy
4
Weblogic Multitenancy
Key concepts
• Tenants
• Domain partition
• Resource Groups
• Resource Group Template
• Virtual Ta...
5
Weblogic Multitenancy
Components
Oracle Weblogic ServerOracle
Traffic Director
Oracle
Coherence
Oracle
Database
Partitio...
6
Weblogic Multitenancy
Components Specified
• Oracle Traffic Director
– Optional
– Provides Load balancing
– Installed in...
7
Weblogic Multitenancy
Components Specified
• Resource Groups
– Separate group of deployable applications, libraries, jms...
8
Weblogic Multitenancy
9
Weblogic Multitenancy
Consolidation
10
Weblogic Multitenancy
Consolidation
• Move from dedicated domains to Multitenant domains
• Less management of
– Hardwar...
Domain
Admin
Server
MS1
MS2
MSxx
App
Domain
Admin
Server
MS1
MS2
MSxx
App
Domain
Admin
Server
MS1
MS2
MSxx
App
11
Weblogic...
12
Weblogic Multitenancy
Isolation
13
Weblogic Multitenancy
Isolation
• Memory and CPU isolation at the JVM level
– Resource Consumption Management (RCM)
– O...
14
Weblogic Multitenancy
Isolation
JVM (JDK 8u40+)
Partition 1
App App JMS
Data
Source
Resource Group JNDI
Partition 2
App...
15
Resource Consumption Management
• Resource Consumption Management is introduced in JDK 8u40
– Only with G1 Garbage coll...
16
Resource Consumption Management –
Policy Types
• Triggers
– Notify
• Notify system administrator that a threshold has b...
17
Resource Consumption Management -
example
18
Weblogic Multitenancy
Portability for DevOps
19
Weblogic Multitenancy
Portability for DevOps
• Transition apps from Dev to Production environments
• No application cha...
20
Weblogic Multitenancy
Portability for DevOps
• Export and Import Partitions
• Via FMW Control, Console, WLST or REST
• ...
Domain
Admin
Server
MS1
MS2
MSxx
Partition
App
Partition
App
Partition
App
Dev
• Transition apps from Dev to Production en...
22
Weblogic Multitenancy
Portability for DevOps
Domain
Admin
Server
MS1
MS2
MSxx
Partition
App
Partition
App
Partition
App...
23
Weblogic Multitenancy
Java Cloud Service
24
Java Cloud Service
Weblogic Multitenancy
• Weblogic 12.2.1 now available in the Java Cloud Service
25
Java Cloud Service
Weblogic Multitenancy
• Weblogic Multitenancy needs minimal Enterprise Edition
26
Java Cloud Service
Weblogic Multitenancy
27
Java Cloud Service
Weblogic Multitenancy
28
Java Cloud Service
Weblogic Multitenancy
29
Weblogic Multitenancy
Java Cloud Service
• Single node cluster
• OTD is not available for 12.2.1
• Lifecycle manager no...
30
Domain to Partition Conversion Tool –
DPCT
• Migrates a WebLogic Server Domain to a Domain Partition
• Supports version...
31
Weblogic Multitenancy
Live Migration
• Part of Continuous availability (separate license required)
• Move running parti...
32
Weblogic Multitenancy
Live Migration
Oracle
Traffic Director
Partition 1
Cluster 1
Partition 1
App App JMS
Data
Source
...
33
Weblogic Multitenancy
License information
• Oracle WebLogic Server Enterprise Edition and WebLogic Suite Options
– Orac...
34
WebLogic Multitenancy
Limitations
• WebLogic Multitenancy does not support
– Oracle Web Service Manager
– SOA Suite
– A...
35
Roadmap
36
Weblogic Multitenancy
Demo
(If time permits)
37
Questions
?
38
Thank you for being here
39
Nächste SlideShare
Wird geladen in …5
×

AMIS Beyond the Horizon - High density deployments using weblogic multitenancy

768 Aufrufe

Veröffentlicht am

Slides from the presentation during the AMIS Conference 'Beyond the Horizon' on jun 3rd 2016

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

AMIS Beyond the Horizon - High density deployments using weblogic multitenancy

  1. 1. AMIS 25 - Beyond the Horizon Jaap Poot, juni 3rd 2016 High density deployments using Weblogic Multitenancy
  2. 2. Jaap Poot Principal Oracle Consultant Since feb 2013 @ Fusion Middleware Exalogic ODA OVM Linux DBA 2 Introduction jaap.poot@amis.nl https://nl.linkedin.com/in/jpoot https://technology.amis.nl/ http://www.fmwadmin.com/
  3. 3. 3 Weblogic Multitenancy
  4. 4. 4 Weblogic Multitenancy Key concepts • Tenants • Domain partition • Resource Groups • Resource Group Template • Virtual Targets • Deployment Scope Oracle Traffic Director Virtual Server 1 Managed Server/Cluster Partition 1 Virtual Target 1 Resource Group App App JMS Data Source JNDI Partition 2 Virtual Target 2 Resource Group App App JMS Data Source JNDI Container Database PDB 1 PDB 2 Virtual Server 2
  5. 5. 5 Weblogic Multitenancy Components Oracle Weblogic ServerOracle Traffic Director Oracle Coherence Oracle Database Partition 1 Virtual Target 1 App App JMS Data Source Partition 1 Pluggable database 1 Resource Group JNDI Partition 2 Virtual Target 2 App App JMS Data Source Partition 2 Pluggable database 2 Resource Group JNDI
  6. 6. 6 Weblogic Multitenancy Components Specified • Oracle Traffic Director – Optional – Provides Load balancing – Installed in separate or with WebLogic in single domain – Creating a WebLogic MT Partition automatically creates a OTD Partition • Virtual Target – A virtual target can be used by only one partition or domain – One or more virtual targets per resource group – A virtual target can be used by many resource groups within a partition – Route by host name and/or URI prefix and/or port number • Domain Partition – Portion of a WebLogic domain – Dedicated to running application instances and resources – Can be separately managed
  7. 7. 7 Weblogic Multitenancy Components Specified • Resource Groups – Separate group of deployable applications, libraries, jms servers and queues, data sources – Can be derived from a Resource Group Template (See below) – Override resource settings as needed when derived – Create at Domain or Partition level • Resource Group Templates – Provides a collection of deployable resources – Don’t have targets – Can be referenced by multiple Resource Groups
  8. 8. 8 Weblogic Multitenancy
  9. 9. 9 Weblogic Multitenancy Consolidation
  10. 10. 10 Weblogic Multitenancy Consolidation • Move from dedicated domains to Multitenant domains • Less management of – Hardware/VM’s – OS – JVM – Domains • Optimal use of resources • No increase in response times (According to Oracle) Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App
  11. 11. Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App 11 Weblogic Multitenancy Consolidation Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx App Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App
  12. 12. 12 Weblogic Multitenancy Isolation
  13. 13. 13 Weblogic Multitenancy Isolation • Memory and CPU isolation at the JVM level – Resource Consumption Management (RCM) – Oracle JDK 8u40 • Virtual Target per partition for application access • Dedicated JNDI tree for resource isolation • Workmanager per partition for thread management • Security realm per partition possible • Data can be segregated with PDB’s – PDB’s are not required! • Per-partition management Oracle Traffic Director Virtual Server 1 Managed Server/Cluster Partition 1 Virtual Target 1 Resource Group App App JMS Data Source JNDI Partition 2 Virtual Target 2 Resource Group App App JMS Data Source JNDI Container Database PDB 1 PDB 2 Virtual Server 2
  14. 14. 14 Weblogic Multitenancy Isolation JVM (JDK 8u40+) Partition 1 App App JMS Data Source Resource Group JNDI Partition 2 App App JMS Data Source Resource Group JNDI Partition 3 App App JMS Data Source Resource Group JNDI Partition 4 App App JMS Data Source Resource Group JNDI
  15. 15. 15 Resource Consumption Management • Resource Consumption Management is introduced in JDK 8u40 – Only with G1 Garbage collector • Enable Resource Consumption Management – $DOMAIN_HOME/bin/startWeblogic.sh – #JAVA_OPTIONS="-XX:+UnlockCommercialFeatures -XX:+ResourceManagement -XX:+UseG1GC ${SAVE_JAVA_OPTIONS}" • Supported resources – FileOpen: The number of open file descriptors in use by a partition – HeapRetained: The amount of heap (in MB) retained/in use by a partition – CpuUtilization: The percentage of CPU time utilized by a partition with respect to the available CPU time of the WebLogic process
  16. 16. 16 Resource Consumption Management – Policy Types • Triggers – Notify • Notify system administrator that a threshold has been reached – Slow • Reducing the thread-usage time for the partition – Fail • Fails resource consumption requests – Only applicable for Open Files – Shutdown • Inititate shutdown of a partition • Fair Share – Allocate a percentage of the available resource for the partition – All resources available when there is no contention
  17. 17. 17 Resource Consumption Management - example
  18. 18. 18 Weblogic Multitenancy Portability for DevOps
  19. 19. 19 Weblogic Multitenancy Portability for DevOps • Transition apps from Dev to Production environments • No application changes needed • Fast startup/shutdown • Container like packaging • Load balancer integration Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App Production Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App Dev
  20. 20. 20 Weblogic Multitenancy Portability for DevOps • Export and Import Partitions • Via FMW Control, Console, WLST or REST • Sample WLST command – exportPartition(partitionName, expArchPath, [includeAppsNLibs], [keyFile]) – Provide replacement attributes • <partitionName>-attributes.json in the same directory as Partition Archive file • Replace partition properties, JDBC, JMS, and other resources in resource groups – importPartition(archiveFileName, [partitionName], [createNew], [keyFile])
  21. 21. Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App Dev • Transition apps from Dev to Production environments • Without any application change or redeployment 21 Weblogic Multitenancy Portability for DevOps Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App Export Import Export Import Export Import Test Acceptance Production Change attributes as needed
  22. 22. 22 Weblogic Multitenancy Portability for DevOps Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App On premise Domain Admin Server MS1 MS2 MSxx Partition App Partition App Partition App Cloud Export -> Import to the Cloud
  23. 23. 23 Weblogic Multitenancy Java Cloud Service
  24. 24. 24 Java Cloud Service Weblogic Multitenancy • Weblogic 12.2.1 now available in the Java Cloud Service
  25. 25. 25 Java Cloud Service Weblogic Multitenancy • Weblogic Multitenancy needs minimal Enterprise Edition
  26. 26. 26 Java Cloud Service Weblogic Multitenancy
  27. 27. 27 Java Cloud Service Weblogic Multitenancy
  28. 28. 28 Java Cloud Service Weblogic Multitenancy
  29. 29. 29 Weblogic Multitenancy Java Cloud Service • Single node cluster • OTD is not available for 12.2.1 • Lifecycle manager not enabled by default • Create and delete Domain Partition via Weblogic console – NOT em • Migrate On-premise -> Cloud • Advanced migration possibilities using on-premises OTD or own loadbalancer • VPN possible to JCS through GRE tunnel
  30. 30. 30 Domain to Partition Conversion Tool – DPCT • Migrates a WebLogic Server Domain to a Domain Partition • Supports version 10.3.6, 12.1.2, 12.1.3 or 12.2.1 • Archive containing the resources can be used as input for importPartition • Create your own overrides file to adjust attributes • DPCT is available for download from OTN • Video demonstration by Steve Button – https://youtu.be/D1vQJrFfz9Q
  31. 31. 31 Weblogic Multitenancy Live Migration • Part of Continuous availability (separate license required) • Move running partition Resource Groups • Eliminates application downtime for planned events • Targets are automatically transferred by OTD
  32. 32. 32 Weblogic Multitenancy Live Migration Oracle Traffic Director Partition 1 Cluster 1 Partition 1 App App JMS Data Source Resource Group JNDI Cluster 2 Partition 1 App App JMS Data Source Resource Group JNDI 1. Migrate API is called 2. Partition/Resource Group starts on new hosts 3. Sessions are replicated to new hosts 4. New origin server pool added to OTD configuration – Old pool used for sticky requests to old pool only – New pool used for all new requests 5. Graceful shutdown called on partition/resource group on original hosts 6. Virtual Target configuration updated with new cluster only
  33. 33. 33 Weblogic Multitenancy License information • Oracle WebLogic Server Enterprise Edition and WebLogic Suite Options – Oracle WebLogic Server Multitenant includes the following components: • Oracle Traffic Director • Oracle WebLogic Server Multitenant Domain Partitions and integrated constructs including Virtual Targets, Resource Groups, Resource Consumption Managers • Oracle WebLogic Coherence Grid Edition Option – Oracle WebLogic Server Continuous Availability includes the following components: • Oracle Traffic Director • Oracle WebLogic Server Zero Downtime Patching • Oracle WebLogic Server Cross Domain XA Transaction Recovery • Oracle WebLogic Server Domain Partition Live Migration • Oracle WebLogic Coherence Grid Edition Option • Oracle Enterprise Manager Site Guard • Oracle Traffic Director is NOT a separate licensed product! http://docs.oracle.com/cd/E55108_01/doc.1213/e56762/wlsuite_options.htm#CJAIADEI
  34. 34. 34 WebLogic Multitenancy Limitations • WebLogic Multitenancy does not support – Oracle Web Service Manager – SOA Suite – Application Development Framework (ADF) – WebCenter – Oracle Service Bus – Oracle Enterprise Scheduler – WebLogic SCA
  35. 35. 35 Roadmap
  36. 36. 36 Weblogic Multitenancy Demo (If time permits)
  37. 37. 37 Questions ?
  38. 38. 38 Thank you for being here
  39. 39. 39

×