dynamicly scale weblogic in the private cloud clusters

25
Jaap Poot, 8 oktober 2015 Dynamically scale Weblogic in a private Cloud

Upload: amis-friends-of-oracle-and-java

Post on 12-Apr-2017

706 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Dynamicly Scale Weblogic in the private Cloud clusters

Jaap Poot, 8 oktober 2015

Dynamically scale Weblogic in a private Cloud

Page 2: Dynamicly Scale Weblogic in the private Cloud clusters

2

Jaap PootPrincipal Oracle ConsultantSince feb 2013 @

Fusion MiddlewareExalogicOVMLinuxDBA

Introduction

[email protected]

https://nl.linkedin.com/in/jpoot

https://technology.amis.nl/http://www.fmwadmin.com/

Page 3: Dynamicly Scale Weblogic in the private Cloud clusters

3

Agenda

• Dynamic Clusters– Server templates– Macros– Scaling– WLST– Roadmap

• Elastic JMS– JMS Servers– Persistent Stores– Scaling– Limitations

• Demo

Page 4: Dynamicly Scale Weblogic in the private Cloud clusters

4

Dynamic Clusters

• Introduced in Weblogic 12.1.2

• Consists of one or more servers instances

• Easy scaling of WebLogic clusters

• Preconfigured server instances

• Add additional server instances on demand

Page 5: Dynamicly Scale Weblogic in the private Cloud clusters

5

Dynamic Clusters (cont.)

• Based on a single shared server template

• Calculated server-specific attributes– Servername, listen ports, machines, etc

• Mixed cluster of dynamic and configured Server instances is possible

Page 6: Dynamicly Scale Weblogic in the private Cloud clusters

6

Dynamic cluster creation

• Create a new Server Template or clone an existing one

• Specify the number of preconfigured server instances

• Key attributes for the configuration– Server Name, Listen Ports, Machines, etc..

• Each server instance has the same configuration

• Add additional servers as needed, based on the same Server Template

Page 7: Dynamicly Scale Weblogic in the private Cloud clusters

7

Server templates

• Specify common attributes for a groupof server instances

• Used with dynamic clusters andconfigured managed servers

• Macros can be used for any string attribute

Page 8: Dynamicly Scale Weblogic in the private Cloud clusters

8

Server templates (cont.)

• Changes to the template are carried through to the dynamic server instances.

• No changes can be made to individual dynamic server instances

Page 9: Dynamicly Scale Weblogic in the private Cloud clusters

9

Server templates Macros

• Macros can be used for any string attribute.– Not for integers or referenced elements

• Available macros for server-specific configuration:– ${id}– ${serverName}– ${clusterName}– ${domainName}– ${system-property-name}

Page 10: Dynamicly Scale Weblogic in the private Cloud clusters

10

Server templates Macros

• Example of macro usage.

– Define your own system property name in setUserOverride.sh

HOSTNAME=`hostname`JAVA_OPTIONS="${JAVA_OPTIONS} -Dhostname=${HOSTNAME}"

Page 11: Dynamicly Scale Weblogic in the private Cloud clusters

11

Dynamic Clusters - Scaling

• Prerequisites– Weblogic installed on all available servers– Unpacked domain– Nodemanager running

• Scale out or in as required

• Start/stop preconfigured server instances

• Increase/lower the number of preconfigured servers

• Change only one number!

When decreasing.Servers above the maximum must be shutdown first !

Page 12: Dynamicly Scale Weblogic in the private Cloud clusters

12

Dynamic Clusters - WLST

• Script all aspects of dynamic clusters

• Create, modify, delete server templates, dynamic clusters

• Simple example of Cluster creation script in Oracle documentation

• Use standard monitoring tools to trigger scripts for scaling in and out

Page 13: Dynamicly Scale Weblogic in the private Cloud clusters

13

WLST scaling example

• wlst.sh scaleDynamicCluster.py clustername numberofservers

Page 14: Dynamicly Scale Weblogic in the private Cloud clusters

14

Roadmap Dynamic Clusters

12.2.1

Page 15: Dynamicly Scale Weblogic in the private Cloud clusters

15

JMSBefore Weblogic Server 12.1.2

• JMS Servers– Each individually configured– Targeted at a single Managed Server

• WebLogic Persistent Stores– Each individually configured– Targeted at a single Managed Server

• Subdeployments– Update the subdeployment for each new JMS Server– list each JMS Server in the cluster for a distributed queue

Page 16: Dynamicly Scale Weblogic in the private Cloud clusters

16

Elastic JMS

• Target JMS Server to a (Dynamic) Cluster

• Simplified configuration– Configure JMS only once for a cluster.– No need for individually configured JMS Servers and related items.

• Elastic scalability– Elastic JMS scales when you scale the cluster

• Support for Dynamic Clusters– Supported on configured, dynamic and mixed clusters

Page 17: Dynamicly Scale Weblogic in the private Cloud clusters

17

Elastic JMS – JMS Servers

• Configure one JMS Server for the cluster– No matter how many managed servers are in the cluster.

• Under the hood– A JMS server is created on each managed server

Page 18: Dynamicly Scale Weblogic in the private Cloud clusters

18

Elastic JMS – Persistent Store

• Configure one Persistent Store

• Under the hood– A Persistent Store is created for each managed Server– For JDBC stores, each instance gets its own underlying table in the same schema

Page 19: Dynamicly Scale Weblogic in the private Cloud clusters

19

Elastic JMS - Configuration

Page 20: Dynamicly Scale Weblogic in the private Cloud clusters

20

Elastic JMS - Scaling

• JMS Servers– Adding or removing server instances to/from the cluster automatically adds or

removes JMS Servers.

• WebLogic Persistent Stores– Like JMS Servers, adding or removing servers to/from the cluster automatically adds

or removes Persistent stores

• Subdeployments– When you scale the cluster, a distributed queue is automatically extended/decreased

to the new JMS Server instance without any changes to the subdeployment

Page 21: Dynamicly Scale Weblogic in the private Cloud clusters

21

Elastic JMS – Limitations

• Automatic Service Migration (ASM) is not supported

• Store-and-Forward (SAF) Agents cannot be targeted

• Singleton destinations are not directly supported

• Weighted distributed destinations are not supported

• Replicated distributed topics (RDTs) are not supported

• AQ-JMS integration is not supported

Page 22: Dynamicly Scale Weblogic in the private Cloud clusters

22

Demo

Domain: demo_domain Weblogic 12.1.3.0.2

wls01.domain.local192.168.100.41

Nodemanager

AdminServerPort 7001

wls03.domain.local192.168.100.43

Nodemanager

wls02.domain.local192.168.100.42

Nodemanager

wls04.domain.local192.168.100.44

Nodemanager

Page 23: Dynamicly Scale Weblogic in the private Cloud clusters

26

Demo Summary

Oracle HTTP Server 12.1.3WebLogic Proxy Plug-In

(mod_wl_ohs)

Domain: demo_domain Weblogic 12.1.3.0.2

wls01.domain.local192.168.100.41

Nodemanager

AdminServerPort 7001

wls03.domain.local192.168.100.43

Nodemanager

wls02.domain.local192.168.100.42

Nodemanager

wls04.domain.local192.168.100.44

Nodemanagerdyna-server-3Port 8003

dyna-server-4Port 8004

dyna-cluster

dyna-server-1Port 8001

dyna-server-2Port 8002

Page 24: Dynamicly Scale Weblogic in the private Cloud clusters

27

Questions

?

Page 25: Dynamicly Scale Weblogic in the private Cloud clusters

28