manage get-scale-config

Get the current scaling configuration for the specified components.

Required role
Instance administrator You must be an administrator of the projects that are associated with an instance to run this command.

Extended description

You have several methods for getting the scaling configuration of Cloud Pak for Data components:

Get the scaling configuration of a one or more components
You can get the scaling configuration of one or more components by specifying the following options:
  • --cpd_instance_ns
  • --components
Get the scaling configuration of all of the components in the operands project
You can get the scaling configuration of all of the components in the operands project by specifying the following options:
  • --cpd_instance_ns
The command returns output in the following formats:
  • Custom columns that show the standard scaling configuration and the value that is specified in the service custom resource
  • A JSON string that you can modify and provide as input to the --config option for the cpd-cli manage apply-scale-config command.

For example:

------------------------------------------------------------------------------------------
Components   Spec scaling config                    Current scaling status
zen          level_4 (large)                        Completed
ws           level_3/level_4 (medium)               In Progress
------------------------------------------------------------------------------------------
Resources config details in json:
{"zen":"level_4","ws":"level_3"}
------------------------------------------------------------------------------------------ 

Syntax

cpd-cli manage get-scale-config \
--cpd_instance_ns=<project-name> \
--components=<comma-separated-list-of-component-names>

Arguments

The get-scale-config command has no arguments.

Options

Table 1: Command options
Option Description
--components The component or components for which you want to see the current scaling configuration.
Status
Optional.
Syntax
--components=<comma-separated-list-of-component-names>
Default value
There is no default value. The list depends on which components you want to see the current scaling configuration for.
Valid values
For the list of components, see Component IDs.

You can specify individual components or a comma-separated list of components.

--cpd_instance_ns The project (namespace) where the components are installed.
Status
Required.
Syntax
--cpd_instance_ns=<project-name>
Default value
No default. User-defined.
Valid values
The name of an existing project on the Red Hat® OpenShift® Container Platform cluster.

Examples

Note: The following example uses the recommended installation environment variables.

It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For details, see Setting up installation environment variables.

Get the scaling configuration of the specified components
cpd-cli manage get-scale-config \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
--components=analyticsengine,wkc
Get the scaling configuration of all of the components in the operands project
cpd-cli manage get-scale-config \
--cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS}