Modify an Aerospike Cloud database cluster
You can make many, complex configuration changes to tune the performance of your cluster. These options are available in the advanced configuration object that is part of an Aerospike Cloud database cluster specification. In the Cloud Console, you can find the advanced configuration section on the pencil icon on the Clusters page.
This page describes the simple modification paths available through the Cloud Console and Public APIs.
Resize a database cluster
-
Navigate to the clusters page.
Click the Resize icon: two arrows crossed. This will take you into the dialog to change the shape and size of your clusters.
-
Follow the prompts.
Choose your new cluster size. The size can only be changed in increments that balance evenly across the number of zones in the cluster.=
-
Review and submit the change
Finalize your selections and submit the modification. Scaling operations take time to implement and are done sequentially. It may take some time before your cluster matches the state you have requested. The Console will show the desired state and a status of
Updating
to reflect that a change is being made to reach the state you have requested.
-
Create a Cloud API Key and retrieve a bearer token
See Using Cloud APIs for how to create a key to use with the API
-
Make a POST request with the desired database spec.
This is a general command to modify your cluster; it will take effect if there are any changes to your clusters state included in the data field and be ignored if not.
Example:
Terminal window curl -X PATCH "https://api.aerospike.cloud/v2/databases/<database-id>" \-H "Authorization: Bearer <bearer-token>" \-H "Content-Type: application/merge-patch+json" \--data '{"aerospikeCloud":{"clusterSize":4}}'
Delete a database
-
Navigate to the clusters page.
Click Delete icon: a red trash can. The cluster will immediately disappear from active clusters. There is a toggle on the clusters page that will show decommissioned clusters; you will still be able to find it there
-
Create a Cloud API Key and retrieve a bearer token
See Using Cloud APIs for how to create a key to use with the API
-
Make a DELETE request with the desired database ID. Example:
Terminal window curl -X DELETE "https://api.aerospike.cloud/v2/databases/<database-id>" \-H "Authorization: Bearer <bearer-token>"
Next steps: