psm accs scale
This command scales the specified Oracle Application Container Cloud Service application to increase or decrease its instance count or memory limit per instance.
Syntax
psm accs scale
-n|--app-name name
[-i|--instances N]
[-m|--memory NG]
[-o|--mode rolling]
[-of|--output-format json|html|short]
Parameters
All parameters are required unless otherwise noted.
Command Option | Description |
---|---|
-n , --app-name |
Name of the application. |
-i , --instances |
(Optional) Number of application instances. The default is 1. |
-m , --memory |
(Optional) Amount of memory in GB. The default is 1GB. |
-o , ––mode |
(Optional) Restart mode for application instances. The only allowed value is rolling for a rolling restart. Omit this parameter for a concurrent restart.
|
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
Example
$ psm accs scale -n employees-app -i 2 -m 2G -of json
{
"applicationDetails":"employees-app",
"identityDomain":"ExampleDomain",
"processes":[
{
"instances":[
{
"instanceURI":"https://psm.us.oraclecloud.com/paas/service/apaas/api/v1.1/apps/ExampleDomain/employees-app/instances/web.1",
"memory":"1G",
"name":"web.1",
"status":"RUNNING"
}
],
"processName":"web"
}
]
}
More Information
Exploring the Application Overview Page in Using Oracle Application Container Cloud Service