RDS Operations
Last updated
Last updated
What is it?
It enables user to modify the capacity of the cluster by changing the count of instances and/or the type of the instance that are already part of the cluster.
When to use?
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.
Options
writer
json
The instance type required for the writer to be passed as a parameter to the json.
"writer": { "instance_type": "db.t4g.medium" }
reader
json
The instance type required along with instance count for the reader to be passed as a parameter to the json. Multiple instance types and their counts can be passed as comma separated values.
"readers": [{ "instance_type": "db.t4g.medium", "instance_count":2, }, { "instance_type": "db.t4g.small", "instance_count":1, }
Command
What is it?
Reboot operation can be used by the user in case of changes in parameter, pushing new changes or even in case of observed higher latency.
When to use?
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.
Options
instance_name
text
This is a reader identifier and value can be found as instance identifier in AWS RDS console. The same value will be used as input.
--options '{"
instance_name": "
INSTANCE_NAME_TO_REBOOT"}'
Command
What is it?
Failover operation can be used by the users to failover the writer to any available reader. This is done in case writer is observing high latency or similar situation.
In this operation, Writer is failed over to a reader instance.
When to use?
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.
Options
failover_instance
text
This is a reader identifier and value can be found as instance identifier in AWS RDS console. The same value will be used as input.
--options '{"failover_instance": "INSTANCE_ID_TO_FAILOVER_TO"}'
Command
What is it?
Adding a reader is a subset of the operation "Scale". Using this operation a user can scale up the cluster.
When to use?
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.
Insert the instance count to be added for the cluster in number_of_reader
. E.g: If you have 5 instances and you want to add 5 more, the value of number_of_reader
will be 5.
Options
instance_type
text
Instance type that you want to add
--options '{"instance_type": "db.t4g.medium", "number_of_reader": 12}
number_of_reader
integer
Number of readers that you want to add for the said instance type
--options '{"instance_type": "db.t4g.medium", "number_of_reader": 12}
Command
Example:
What is it?
Removing a reader is a subset of the operation "Scale". Using this operation a user can scale down the cluster.
When to use?
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.
How to use ?
The user can provide either the number of readers to be removed or the instance id that the user wants to remove as a parameter for remove reader operation.
Options
reader_instance_name
Text
This is a reader identifier and value can be found as instance identifier in AWS RDS console. The same value will be used as input.
--options '{"reader_instance_name": "INSTANCE_ID_TO_FAILOVER_TO"}'
number_of_readers
Integer
Number of readers that you want to remove
--options '{"number_of_readers": 12}'
Command
Example: