Scale Up or Scale Down a Service Instance
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/jaas/instances/{serviceId}/hosts/scale
You can scale hosts that contain the Administration Server node and Managed Server nodes in a WLS application cluster.
You cannot scale nodes in the caching (data grid) cluster.
For service instances provisioned after release 17.4.1, you can scale Oracle Traffic Director load balancer nodes.
Scaling is not supported by Oracle Java Cloud Service - Virtual Image instances (BASIC
service level).
For service instances in Oracle Cloud Infrastructure, scaling a node is only allowed within the same shape series and family. For example, you cannot scale up from VM.Standard1.1
to VM.Standard2.2
. However, you can scale up from VM.Standard1.1
to VM.Standard1.2.
Before scaling up a BYOL instance (service instance that was created with isBYOL
set to true
), verify that you have the required Oracle WebLogic Server licenses for the additional OCPUs provided by the shape that you intend to specify. For the processor conversion ratios and license requirements, refer to the document titled Oracle PaaS and IaaS Universal Credits Service Descriptions that is available from Frequently Asked Questions: Oracle BYOL to PaaS.
On Oracle Cloud Infrastructure and Oracle Cloud Infrastructure Classic: Many of the administration and lifecycle operations that you run for an Oracle Java Cloud Service instance affect the billing for the infrastructure resources that are used by the instance. See Effect of Lifecycle and Administration Operations on Billing.
Request
- application/json
-
identityDomainId: string
Identity domain ID for the Oracle Java Cloud Service account.
-
serviceId: string
Name of the Oracle Java Cloud Service instance.
-
Authorization: string
Base64 encoded user name and password separated by a colon or OAuth access token obtained from Oracle Identity Cloud Service. See Authenticate.
-
X-ID-TENANT-NAME: string
Identity domain ID for the Oracle Java Cloud Service account.
object
-
components:
object components
Groups properties for the Oracle WebLogic Server component (
WLS
) or the Oracle Traffic Director component (OTD
). Only one component type should be scaled at a time.
object
WLS
) or the Oracle Traffic Director component (OTD
). Only one component type should be scaled at a time.-
OTD(optional):
object OTD
Properties for the Oracle Traffic Director (OTD) component.
-
WLS(optional):
object WLS
Properties for the Oracle WebLogic Server (WLS) component.
object
-
hosts:
array hosts
Name of the host that contains the secondary or primary node.
-
shape:
string
Desired compute shape for the target host.
On Oracle Cloud Infrastructure, VM.Standard and BM.Standard shapes, and VM.Standard.E3.Flex, VM.Standard.E4.Flex, and VM.Standard3.Flex shapes are supported.
You can specify the number of OCPUs for the flex shapes. The maximum number of OCPUs for VM.Standard.E3.Flex and VM.Standard.E4.Flex is 64 OCPUs, and the maximum number of OCPUs for VM.Standard3.Flex is 32 OCPUs. The amount of memory is calculated based on the number of OCPUs as n*16, where n is the number of OCPUs.
Available shapes vary depending on your Oracle Cloud account and the region in which you provision a service instance.
See Compute Shapes in the Oracle Cloud Infrastructure documentation.
On Oracle Cloud Infrastructure Classic, valid shapes include:
- oc3: 1 OCPU, 7.5 GB memory
- oc4: 2 OCPUs, 15 GB memory
- oc5: 4 OCPUs, 30 GB memory
- oc6: 8 OCPUs, 60 GB memory
- oc7: 16 OCPUs, 120 GB memory
- oc8: 24 OCPUs, 180 GB memory
- oc9: 32 OCPUs, 240 GB memory
- oc1m: 1 OCPU, 15 GB memory
- oc2m: 2 OCPUs, 30 GB memory
- oc3m: 4 OCPUs, 60 GB memory
- oc4m: 8 OCPUs, 120 GB memory
- oc5m: 16 OCPUs, 240 GB memory
- oc8m: 24 OCPUs, 360 GB memory
- oc9m: 32 OCPUs, 480 GB memory
Note: Some shapes might not be available in a region.
object
-
hosts:
array hosts
A single host name. Only application cluster hosts can be specified.
-
ignoreManagedServerHeapError(optional):
boolean
Flag that indicates whether to ignore Managed Server heap validation (
true
) or perform heap validation (false
) before a scale down request is accepted. Default isfalse
.When the flag is not set or is
false
, heap validation is performed before scaling. If a validation error is not generated, the Managed Server JVM is restarted with the new shape after scaling down.When the flag is
true
, heap validation is not performed. Before you set the flag totrue
, make sure the-Xms
value is low enough for the Managed Server JVM to restart on the new shape after scaling down. The-Xms
value should be lower than one-fourth the size of the memory associated with the shape. Use the WebLogic Server Administration Console to edit the value in the server start arguments, if necessary. -
shape:
string
Desired compute shape for the target host.
On Oracle Cloud Infrastructure, VM.Standard and BM.Standard shapes, and VM.Standard.E3.Flex, VM.Standard.E4.Flex, and VM.Standard3.Flex shapes are supported.
You can specify the number of OCPUs for the flex shapes. The maximum number of OCPUs for VM.Standard.E3.Flex and VM.Standard.E4.Flex is 64 OCPUs, and the maximum number of OCPUs for VM.Standard3.Flex is 32 OCPUs. The amount of memory is calculated based on the number of OCPUs as n*16, where n is the number of OCPUs.
Available shapes vary depending on your Oracle Cloud account and the region in which you provision a service instance.
See Compute Shapes in the Oracle Cloud Infrastructure documentation.
On Oracle Cloud Infrastructure Classic, valid shapes include:
- oc3: 1 OCPU, 7.5 GB memory
- oc4: 2 OCPUs, 15 GB memory
- oc5: 4 OCPUs, 30 GB memory
- oc6: 8 OCPUs, 60 GB memory
- oc7: 16 OCPUs, 120 GB memory
- oc8: 24 OCPUs, 180 GB memory
- oc9: 32 OCPUs, 240 GB memory
- oc1m: 1 OCPU, 15 GB memory
- oc2m: 2 OCPUs, 30 GB memory
- oc3m: 4 OCPUs, 60 GB memory
- oc4m: 8 OCPUs, 120 GB memory
- oc5m: 16 OCPUs, 240 GB memory
- oc8m: 24 OCPUs, 360 GB memory
- oc9m: 32 OCPUs, 480 GB memory
Note: Some shapes might not be available in a region.
array
array
Response
- application/json
202 Response
Location
header returns a URI that can be used to view the job status. See View the Status of an Operation by Job Id.object
issues
array for warning messages.-
details:
object details
Groups details of the operation.
object
-
issues(optional):
array issues
Groups strings of warning messages, if any.
-
jobId:
string
Job ID for the operation. Not available if the response status code is 400.
-
message:
string
System message that describes the operation.
400 Response
See Status Codes for information about other possible HTTP status codes.
object
issues
array for validation error messages.-
details(optional):
object details
Groups details of the request.
object
-
issues(optional):
array issues
Groups strings of validation error messages, if any.
-
message(optional):
string
System message that describes the request.
Examples
The following example shows how to scale up or scale down an Oracle Java Cloud Service instance by submitting a POST request on the REST resource using cURL.
Note: The command in this example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the REST server to contact for your identity domain (or Cloud Account). See Send Requests.
cURL Command
curl -i -X POST -u username:password -d @scaleup.json -H "Content-Type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/hosts/scale
Example of Request Body
The following shows an example of the request body for scaling up a host.
{
"components": {
"WLS": {
"hosts": ["exampleinstance-wls-2"],
"shape": "oc5",
"ignoreManagedServerHeapError": true
}
}
}
Example of Response Header
The following shows an example of the response header. The Location
header returns the URI that can be used to view the job status. See View the Status of an Operation by Job Id.
HTTP/1.1 202 Accepted
Date: Tue, 23 May 2017 18:37:36 GMT
Location: https://rest_server_url/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/24048717
Content-Type: application/json
Example of Response Body
The following shows an example of a 202 response returned in JSON format.
{
"details":{
"message":"Submitted job to scaling job in service [ExampleInstance] in domain [ExampleIdentityDomain].",
"jobId":"24048717"
}
}
The following shows an example of a 400 response.
{
"details": {
"message": "PSM-LCM-00012 The node [example2instance-wls-2] doesn't exist in component [WLS] for service [ExampleInstance]. You can only specify host names that are provisioned using the component parameter hosts."
}
}
The following shows an example of a 400 response that includes the issues
array.
{
"details": {
"message": "Unable to submit the scaling request. Check additional validation errors for details.",
"issues": [
"[Value for parameter shape [oc33] is not a valid shape for the service]"
]
}
}