12.2 Scaling Up OAM Servers
The number of Oracle Access Management (OAM) managed servers running, or policy managed
servers running, is dependent on the replicas parameter configured for the
oam-cluster and policy_cluster respectively.
To start more OAM servers perform the following steps:
- Run the following command to edit the cluster
- For OAM managed
servers:
For example:kubectl edit cluster accessdomain-oam-cluster -n <domain_namespace>kubectl edit cluster accessdomain-oam-cluster -n oamns - For OAM policy manager servers:
For example:kubectl edit cluster accessdomain-policy-cluster -n <domain_namespace>kubectl edit cluster accessdomain-policy-cluster -n oamns
Note:
This opens an edit session for the cluster, where parameters can be changed using standard vi commands. - For OAM managed
servers:
- In the edit session, search for
spec:, and then look for thereplicasparameter underclusterName: <cluster>.By default the replicas parameter, for both OAM managed servers and policy manager servers, is set to “1” hence one OAM managed server and one policy manager server is started (oam_server1andoam-policy-mgr1respectively):- For
oam_cluster:... spec: clusterName: oam_cluster replicas: 1 serverPod: env: - name: USER_MEM_ARGS value: -XX:+UseContainerSupport -Djava.security.egd=file:/dev/./urandom -Xms8192m -Xmx8192m ... - For
policy_cluster:... spec: clusterName: policy_cluster replicas: 1 serverService: precreateService: true ...
- For
- To start more OAM managed servers or policy manager servers, increase the
replicasvalue as desired.In the example below, two more OAM managed servers (oam-server2andoam-server3) will be started by settingreplicasto “3” for theoam_cluster:... spec: clusterName: oam_cluster replicas: 3 serverPod: env: - name: USER_MEM_ARGS value: -XX:+UseContainerSupport -Djava.security.egd=file:/dev/./urandom -Xms8192m -Xmx8192m ... - Save the file and exit (:
wq!).The output will look similar to the following:cluster.weblogic.oracle/accessdomain-oam-cluster edited - Run the following command to view the
pods:
For example:kubectl get pods -n <domain_namespace>
The output will look similar to the following:kubectl get pods -n oamns
Two new pods (NAME READY STATUS RESTARTS AGE accessdomain-adminserver 1/1 Running 0 3h33m accessdomain-oam-policy-mgr1 1/1 Running 0 3h25m accessdomain-oam-server1 1/1 Running 0 3h25m accessdomain-oam-server2 0/1 Running 0 9s accessdomain-oam-server3 0/1 Pending 0 9saccessdomain-oam-server2andaccessdomain-oam-server3) are started, but currently have aREADYstatus of0/1. This meansoam_server2andoam_server3are not currently running but are in the process of starting.The servers will take several minutes to start so keep executing the command untilREADYshows1/1:Note:
Alternatively, you can add the watch flag,-w, which allows you watch the status of the pods as they change.
To check what is happening during server startup whenNAME READY STATUS RESTARTS AGE accessdomain-adminserver 1/1 Running 0 3h37m accessdomain-oam-policy-mgr1 1/1 Running 0 3h29m accessdomain-oam-server1 1/1 Running 0 3h29m accessdomain-oam-server2 1/1 Running 0 3m45s accessdomain-oam-server3 1/1 Running 0 3m45sREADYis0/1, run the following command to view the log of the pod that is starting:
For example:kubectl logs <pod> -n <domain_namespace>kubectl logs accessdomain-oam-server3 -n oamns