update
Update a MongoDB Cluster
Usage
ionosctl dbaas mongo cluster update [flags]Aliases
For mongo command:
[m mdb mongodb mg]For cluster command:
[c]For update command:
[u]Description
Use this command to update attributes of a MongoDB Cluster. To specify the cluster to update, use the --cluster-id flag and the cluster's unique ID you can get from the list command.
Every cluster can update:
Maintenance window (day and time). To change any of these, you must specify both together (
--maintenance-dayand--maintenance-time).The display name of the cluster (
--name).The MongoDB major version (
--version). This can trigger a major upgrade of the cluster, so be sure to check the compatibility of your applications with the new version. Also see the notes in the API Documentation.The backup storage location (
--backup-location).
Replicaset clusters can update:
The number of instances in the replicaset (
--instances).
For enterprise edition clusters, you can also update:
The memory for each MongoDB host system (
--ram)The CPU Cores for each MongoDB host system (
--cores)Storage size for each MongoDB instance (
--storage-size)Storage type used for the Database (
--storage-type)The number of shards (
--shards). This is only possible for sharded clusters and requires a sharded_cluster type.The MongoDB Connector for Business Intelligence host and port (
--biconnector) and whether it is enabled (--biconnector-enabled).
Business edition clusters currently cannot update their template size (which defines cores, RAM and storage size) this way. This can be done via DCD or API.
Fields which can only be updated under specific conditions:
Network connection (CIDR, LAN, Datacenter) can only be updated if the amount of shards or instances changes and must be specified together with the new values. LAN and Datacenter must stay the same but need to be specified.
Options
Examples
Last updated
