I want to change my reader instance to one that can write and delete the existing writer instance.

0

Currently, I am using MySql and DB synchronous replication with two instances of reader and writer (both are already standalone instances.). But I would like to remove the writer instance and set the reader instance to read/write. This is an attempt to reduce costs. Actually the usage is not high enough to require DB Replication. Due to circumstances, the DB connection address of the current reader instance must be maintained. Therefore, I would like to remove only the writer instance and set the reader instance to enable writing as well. I would like to know how to do this.

Do I just set read_only rds parameter to 0? ( current value is {TrueIfReplica} )

And then just delete my writer instance?

2 Answers
3

Hello, joeylover

It is fully understandable that you are trying to delete the writer instance, and allow the reader instance to perform both reader and writer roles for cutting costs. Unfortunately, RDS and Aurora clusters cannot replace one another once the role of reader and writer instances has been established at the first time. Since the reader instance has been given the role of reader, it has become impossible to write data internally, the reader instance cannot take over the role of the writer instance.

Additionally, when you are using Aurora cluster and have 1 writer instance and 1 reader instance, if you delete a writer instance, the reader instance is converted to a writer instance, resulting in only one writer instance remaining. Therefore, you cannot place only reader instances, or create instances that perform both reader and writer.


I understood the DB connection address of the reader instance that you inquired about as the endpoint of the reader instance. For endpoint of a reader instance, the value is maintained even if you modify the settings associated with the reader instances.


If I have missed anything or answered wrong, please feel free to ask me again. Also you have any questions, comment please!

profile picture
answered a year ago
0

It is not clear from the question whether the system is an RDS DB with a reader instance, or a DB cluster. Or, whether it is RDS MySQL or RDS Aurora MySQL.

In either case what you wish to achieve can be achieved but the steps would be different.

AWS
Aslan G
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions