Aerospike Operations
Last updated
Last updated
Please note, Aerospike scaling is currently supported only for new services. For existing services with Aerospike, migration will be needed to avail this capability.
What does it do
It enables user to modify the capacity of the cluster by changing the count of instances that are already part of the cluster. It uses AWS ASG to balance instances across AZs. It has idempotency to idendify duplicate requests.
This operation is to be performed only via the platform and restricts any actions explicitly done in order to ensure cluster SLAs.
This operation can be run only when the cluster is in running
state or when an existing operation is success
. User need to wait if any existing operation is already running on the same cluster and can check its status via odin provided Jenkins.
Vertical scaling is not supported.
Scale operation cannot be stopped.
Cluster must be created by or migrated to Odin and Optimus.
Cluster must be in a running state.
User must have the necessary permissions to perform the operation.
Insert the desired instance count for the cluster in num_instances
num_instances
integer
The number of EC2 instances needed in the cluster
--options=‘{“num_instances”: 9}’
odin operate component --name [YOUR_COMPONENT_NAME] --service [YOUR_SERVICE_NAME] --operation scale --options=‘{“num_instances”: [YOUR_DESIRED_INSTANCE_COUNT]}’ --env [YOUR_ENV_NAME]
odin operate component --name optimus-aerospike --service optimus-backend --operation scale --options=‘{“num_instances”: 9}’ --env dev1
The above command scales a cluster to 9
instances.
Post in Slack channel #dss_odin_feedback