- Newest
- Most votes
- Most comments
Hello AWS can I get a little love on this? My replication is down and the normal things I would do to fix this are not available to me. The first would be to re-generate a new UUID by deleting the auto.cnf, not really possible with RDS. This needs to be looked at by the RDS team.
The forums are for community discussion and do not function well for individualized technical support. Occasionally AWS personnel will respond to things here, but most of the time you need to open a support case.
Edited by: HalTemp on Jun 20, 2019 5:32 AM
It looks like you are running self-managed read replicas to "have 'extra' schemas that are not replicated from the host." Are you aware that with RDS managed read replicas you can change the read-only flag to false in order to write data to replica slave and have 'extra' schema objects that do not conflict with the schema objects being replicated from the master?
I don't know how to answer the server-id question. Is it possible that you created duplicate UUID from restoring the same snapshot to different read replicas?
Perhaps you can consider using RDS managed read replicas. If you do you will need to be careful to avoid creating any conflicts that break replication.
-Phil
The UUID's are all unique and posted in the orig note. Gathered by connecting to each database and using the "show variables like '%server%' " command. We are sharding data across multiple databases with a common part of the database coming from a common (master) database. In fact they start out as read-replicas briefly and then I promote them add the new schema and make them a slave of the original database. Since the new schemas are not part of that database the only data that gets replicated is the orig common schemas.
I was not aware that you could continue to be a 'read replica' and set the read-only flag off. An interesting option. Any other side effects from doing this around backups etc? The data is important so can I schedule back-ups separately on each read replica? Need to be able to recover them individually.
All the options for AWS support models that I know of for RDS are too expensive for our startup.
It still makes no sense that the database is getting connected with a blank UUID from the masters perspective, and it works for 2 of the for databases but not the other 2.
Thanks for the feedback and any help/advice you can give is appreciated.
Edited by: jeffwrule on Jun 21, 2019 12:01 PM
Yes, you can backup read replicas just as with any other RDS database. You can even convert them to multi-az and/or create chained read replicas from them.
But as I said, be careful when turning off read-only, you need to avoid changes on the read replica that conflict with the source master. As long as you only write to schema objects that do not exist on the source master you should be fine.
-Phil
This was fixed by rebooting the master server. The master had been up for 300+ days. I was not getting any specific error message, but something went wrong internally.
Rebooting the master and then restarting the slaves restored the correct UUID in the 'show slave hosts' from the master, and allowed the multiple slaves to run again in parallel. That is the master no longer saw all 4 slaves as having the same UUID (blank). They each have a unique UUID and things work as expected.
Relevant content
- asked 15 days ago
- asked a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago