4. 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
5. 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
6. 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
7. 7
Server templates
• Specify common attributes for a group
of server instances
• Used with dynamic clusters and
configured managed servers
• Macros can be used for any string attribute
8. 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
9. 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}
10. 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}"
11. 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 !
12. 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
15. 15
JMS
Before 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
16. 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
17. 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
18. 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
20. 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
21. 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
Automatic Service Migration (ASM) is not supported for cluster targeted JMS servers or stores.
Unit-of-Order (UOO) and Unit-of-Work (UOW) are not supported by cluster targeted JMS servers. UOO is supported in a Configured cluster or stand-alone WebLogic Server instance when all JMS servers that host the UOO's destination are directly targeted to a server instance or migratable target. UOO is not supported with destinations that are fully or partially hosted on Clustered JMS servers.
Store-and-Forward (SAF) Agents cannot be targeted to a Dynamic or Mixed cluster. You can target SAF Agents to Configured clusters using the default store.
There are special considerations when a SAF Agent imported destination with an Exactly-Once QOS Level forwards messages to a distributed destination that is hosted on a Mixed or Dynamic cluster. See Store-and-Forward to Cluster Targeted JMS Servers.
WLST Offline does not support the assign command to target JMS servers to a dynamic cluster. Use the get and set command.
Singleton destinations (queues and topics) are not directly supported on cluster targeted JMS servers.
If a singleton destination is required, configure and use a non-cluster targeted JMS server, or apply one of the following workarounds:
Directly reference a member of a distributed destination using one of the methods described in See "How to Lookup a Destination" in Developing JMS Applications for Oracle WebLogic Server.
Use a foreign JMS server and destination to indirectly reference a distributed destination member.
Weighted distributed destinations (a type of distributed destination composed of a group of singleton destinations), are not supported on cluster targeted JMS servers.
Replicated distributed topics (RDTs) are not supported when any member destination is hosted on a cluster targeted JMS server.
AQ-JMS integration is not supported in a mixed or dynamic cluster. No exception is thrown when this is attempted. See Interoperating with Oracle AQ JMS.
Targeting a messaging bridge to a mixed or dynamic cluster is not supported. No exception is thrown when this is attempted (see "JMS Issues and Workarounds" in Release Notes for Oracle WebLogic Server Release Notes).
Don’t forget to select WebLogic Plug-In Enabled in the server template, before testing!