HOWTO
- Weblogic dynamic clusters https://blogs.oracle.com/weblogicserver/post/weblogic-dynamic-clusters-on-kubernetes
- Dynamic clusters https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-server/12.2.1.4/clust/dynamic_clusters.html#GUID-DA7F7FAD-49AA-4F3D-8A05-0D9921B96971
- server template https://docs.oracle.com/en/middleware/fusion-middleware/weblogic-server/12.2.1.4/tasks/servertemplates.html#GUID-AC5A3D4B-1D19-4AE7-AA42-F48AA8E16933
- domain creation scripts https://github.com/oracle/weblogic-kubernetes-operator/tree/main/kubernetes/samples/scripts/create-weblogic-domain
Previously, the WebLogic Kubernetes Operator supported configured clusters only. That is, the operator could only manage and scale Managed Servers defined for a configured cluster. Now, this limitation has been removed. By supporting dynamic clusters, the operator can easily scale the number of Managed Server instances based on a server template instead of requiring that you first manually configure them.
Creating a Dynamic Cluster in a WebLogic Domain in Kubernetes
The WebLogic Server team has been actively working to integrate WebLogic Server in Kubernetes, WebLogic Server Certification on Kubernetes. The Oracle WebLogic Kubernetes Operator provides a mechanism for creating and managing any number of WebLogic domains, automates domain startup, allows scaling of WebLogic clusters, manages load balancing for web applications deployed in WebLogic clusters, and provides integration with Elasticsearch, Logstash, and Kibana. The operator is currently available as an open source project at https://oracle.github.io/weblogic-kubernetes-operator.
To create a WebLogic domain, see scripts
The following parameters of the input file are used when creating a dynamic cluster:
Parameter | Definition | Default |
clusterName | The name of the WebLogic cluster instance to generate for the domain. | cluster-1 |
clusterType | The type of WebLogic cluster. Legal values are "CONFIGURED" or "DYNAMIC". | CONFIGURED |
configuredManagedServerCount
| The number of Managed Server instances to generate for the domain. | 2 |
initialManagedServerReplicas | The number of Managed Servers to start initially for the domain. | 2 |
managedServerNameBase | Base string used to generate Managed Server names. Used as the server name prefix in a server template for dynamic clusters. | managed-server
|
The following example configuration will create a dynamic cluster named ‘cluster-1’ with four defined Managed Servers (managed-server1 … managed-server4) in which the operator will initially start up two Managed Servers instances, managed-server1and managed-server2:
# Type of WebLogic Cluster
# Legal values are "CONFIGURED" or "DYNAMIC"
clusterType: DYNAMIC
# Cluster name
clusterName: cluster-1
# Number of Managed Servers to generate for the domain
configuredManagedServerCount: 4
# Number of Managed Servers to initially start for the domain
initialManagedServerReplicas: 2
# Base string used to generate Managed Server names
managedServerNameBase: managed-server