Three main ways you can scale the number of OCPUs in Exadata Cloud Service or Cloud at Customer:
- OCI Console
- REST api
- OCI Command Line Interface.
- "Auto Scaling" Script
- OCI CLI
1. "Auto Scaling" Script
This script can be download from Oracle Support via Scale-up and Scale-down automation utility for OCI DB System (ExaCS/ExaCC) (Doc ID 2719916.1)
Oracle DynamicScaling utility can be executed as standalone executable or as daemon on one or more ExaCS compute nodes or ExaC@C vmcluster nodes. By default DynamicScaling is monitoring the CPUs with very limited host impact and if the load goes over the Maximum CPU threshold ("--maxthreshold") for an interval of time ("--interval"), it will automatically will scale-up the OCPU by a factor ("--ocpu") till a maximum limit ("--maxocpu"). If the load goes under the Minimum CPU threshold ("--minthreshold") for an interval of time ("--interval") scale down will be executed util the minimum limit ("--minocpu") of ocpu. If a valid cluster filesystem (ACFS) is provided, DynamicScaling will consider the load of all nodes (where DynamicScaling is running) and it will perform a scale-UP/DOWN based on the cluster node load (average/max). There are several examples in this doc.
2. Curl bash script
Here is a curl script example for a "HTTP PUT". This script changes the number of OCPUs (cores) at the VM cluster level.
"cpuCoreCount" : 6
3. OCI Command Line Interface (OCI CLI)
- Install OCI CLI or use the cloud shell which has the cli already installed
- Setup instance principal — instead of using an instance principal you may need to use a userid and token
- Create the script — here is the oci cli command reference manual for cloud-vm-cluster update