psm analytics scale-in

Scale in an Oracle Analytics Cloud - Classic cluster by removing nodes.


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>]


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:
  • json—output is formatted as a JSON array.

  • html—output is formatted as HTML

  • short—output is formatted as a brief summary.

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

-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.


For example, to scale in one host, that is, remove one node in the cluster:

	      "BI":{ "hosts":["ExampleHost-2"] 


$ psm analytics scale-in -s MyAnalyticsCloudClassicService -c  -c c://home/templates/scale-in-payload.json -of json
        "message":"ANALYTICS-SCALING-044: Scaling in Job (ID: 34206) server name [Examp_server_2] submitted for service [MyAnalyticsCloudClassicService]"
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:


the service was successfully scaled-in.