manage
apply-scale-config
Change the scaling configuration for one or more components associated with an instance of IBM Software Hub.
- Required role
- Instance administrator An instance administrator can run this command.
Before you begin
Before you change the scaling configuration of a component, run the cpd-cli
manage
get-scale-config command to check the current
configuration.
Extended description
You can scale IBM® Software Hub components to one of the following levels:
level_1level_2level_3level_4level_5
For more information about the resources that are required for each level, see Downloading the component scaling PDF from the IBM Entitled Registry.
You have several methods for changing the scaling configuration of IBM Software Hub components:
- Scaling a single component
- You can scale a single component by specifying the following options:
--cpd_instance_ns--components--scale
- Scaling multiple components to the same level
- You can scale multiple components to the same level by specifying the following options:
--cpd_instance_ns--components--scale
- Scaling multiple components to different levels
- You can scale multiple components to different levels by specifying the following options:
--cpd_instance_ns--config
When you specify the
--configoption, you must specify the scaling configuration as a JSON dictionary string.
Syntax
cpd-cli manage apply-scale-config \
--cpd_instance_ns=<project-name> \
[--tethered_instance_ns=<project-name>] \
[--config=<JSON-dictionary-string>] \
[--components=<comma-separated-list-of-component-names>] \
[--scale=<scaling-configuration-level>] \
[--wait=true|false] \
[--param-file=tmp/work/<file-name>.yml]
Arguments
The apply-scale-config command has no arguments.
Options
| Option | Description |
|---|---|
--components |
The component or components that you want to
scale.
|
--config |
The scaling configuration, specified as a JSON dictionary
string.
|
--cpd_instance_ns |
The project (namespace) where the components that you want to scale
are installed.
|
--scale |
The scaling configuration to apply to the specified component or
components.
|
--param-file |
The name of a YAML file that includes additional
parameters. The file must be in the
|
--tethered_instance_ns |
The tethered project where you want to change the scaling configuration of the specified component. This option applies only to the following components:
Important: If you specify this option, you must also specify the
--param-file option. The file must include the following
content:Replace
To
get the name of the custom resource,
run:
|
--wait |
Specify whether to wait for the custom resource to be
ready.
|
Examples
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.
- Scale the IBM Knowledge
Catalog service to
level_4 -
cpd-cli manage apply-scale-config \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=wkc \ --scale=level_3 - Scale multiple components to
level_3 -
cpd-cli manage apply-scale-config \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --scale=level_3 - Scale multiple components to different scaling configurations
-
cpd-cli manage apply-scale-config \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --config='{"wkc":"level_4","ws":"level_3","wml":"level_2"}'