16.1 Prerequisite Configurations
In order to use HPA, Oracle Access Management (OAM) must have been created with the
required resources
parameter. For OAM domains created with WLST scripts, this
is as per Setting the OAM Server Memory Parameters. For OAM domains created
with WDT models, the values should be set by default. For example:
For example:
serverPod:
env:
- name: USER_MEM_ARGS
value: "-XX:+UseContainerSupport -Djava.security.egd=file:/dev/./urandom -Xms8192m -Xmx8192m"
resources:
limits:
cpu: "2"
memory: "8Gi"
requests:
cpu: "1000m"
memory: "4Gi"
If you created the OAM domain without setting these parameters, then you can update the
domain using the following steps:
- Run the following command to edit the
cluster:
kubectl edit cluster <cluster> -n <namespace>
kubectl edit cluster accessdomain-oam-cluster -n oamns
Note:
This opens an edit session for the cluster where parameters can be changed using standard vi commands. - In the edit session, search for
spec:
, and then look for the replicas parameter underclusterName: oam_cluster
. Change the entry so it looks as follows:spec: clusterName: oam_cluster replicas: 1 serverPod: env: - name: USER_MEM_ARGS value: -XX:+UseContainerSupport -Djava.security.egd=file:/dev/./urandom -Xms8192m -Xmx8192m resources: limits: cpu: "2" memory: 8Gi requests: cpu: 1000m memory: 4Gi serverService: precreateService: true ...
- Save the file and exit (
:wq!
).The output will look similar to the following:cluster.weblogic.oracle/accessdomain-oam-cluster edited
The OAM managed server pods will then automatically be restarted.