psm analytics scale-in
Scale in an Oracle Analytics Cloud - Classic cluster by removing nodes.
Syntax
In the following syntax, line breaks have been added for clarity. Don’t include them when entering the command.
psm analytics scale-in -s|--service-name serviceName
-n|--name name
-c|--config-payload pathToJson
[-of|-–output-format json|html|short]
[-wc, --wait-until-complete <value>]
Parameters
All parameters are required unless otherwise noted.
Parameter | Description |
---|---|
-s|--service-name serviceName |
Name of the service. |
-c|—config-payload |
Path to the JSON file containing payload for this command. |
-of|-–output-format json|html|short |
(Optional) Output format of the command’s response:
The default output format is the one you specified
when using the |
-wc, --wait-until-complete <value> |
(Optional) Wait until the command is complete.
Valid values are [true, false] . The default value
is false .
|
Sample Payload
Required properties are indicated as "required". Replace with real values in the actual payload.
{
"force":"",
"components":{
"BI":{
"hosts":["required"]
}
}
}
For example, to scale in one host, that is, remove one node in the cluster:
{
"components":{
"BI":{ "hosts":["ExampleHost-2"]
}
}
}
Examples
$ psm analytics scale-in -s MyAnalyticsCloudClassicService -c -c c://home/templates/scale-in-payload.json -of json
{
"details":{
"jobId":"34206",
"message":"ANALYTICS-SCALING-044: Scaling in Job (ID: 34206) server name [Examp_server_2] submitted for service [MyAnalyticsCloudClassicService]"
},
"status":"New"
}
Job ID : 34206
Note that
this command returned a job ID. To see the status of your scale-in
operation, use this ID with the psm analytics operation-status command:
$ psm analytics operation-status -j 34206 -of json
When you see the message:
"operationId":364,
"operationType":"SCALE_IN",
"resourceId":1073,
"resourceName":"example1instance-wls-2",
"resourceType":"VM",
"serverType":"WLS",
"serviceId":364,
"serviceName":"MyAnalyticsCloudClassicService",
"serviceType":"analytics",
"startDate":"2017-04-28T18:21:27.539+0000",
"status":"SUCCEED",
"summaryMessage":"Examp_server_2"
the service was successfully scaled-in.