psm MySQLCS scale
Scale the shape (OCPUs and memory) of a MySQL Cloud Service instance.
Syntax
In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.
psm MySQLCS scale -s|--service-name instance-name
-c|--config-payload path-to-json-file
[-wc|--wait-until-complete true|false]
[-of|--output-format json|html|short]
where the json file contains the following:
{"components":
{"mysql":
{"shape":"shape-name",
"hosts":["host-name"]
}
}
}
Parameters
Parameter | Description |
---|---|
|
Specifies the name of the MySQL Cloud Service instance. |
|
Specifies the shape to scale to. |
|
(Optional) If set to Waiting for the job to complete... (it cannot be cancelled) The default value is |
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
JSON Payload
The json payload has the following syntax:
{ "components":
{ "mysql":
{ "shape":"shape-name",
"hosts":["host-name"]
}
}
}
Parameter | Description |
---|---|
|
Container for the MySQL component (mysql), host, and shape information. |
|
The service type. For MySQL Cloud Service, this is always |
|
The required shape. Valid values for
|
|
The host name of the service. The host name is the fully qualified name of the Virtual Machine. For example, in a service named MySQL57–aas, the host name takes the format mysql57–aas-mysql-1. Valid values for |
Examples
The following example scales the MySQL57-aas
service to the oc5
shape.
Note:
$ psm MySQLCS scale -s MySQL57-aas -c ~/opc-json-files/scale-to-oc5.json
where the json file contains the following:
{ "components":
{ "mysql":
{ "shape":"oc5",
"hosts":["mysql57aas-mysql-1"]
}
}
}