简体   繁体   English

删除RDS只读副本

[英]Deleting RDS Read Replicas

I recently had a RDS read replica crash, so needed to spin up a new read replica. 我最近有一个RDS读取副本崩溃,因此需要启动一个新的只读副本。

Now I have both read replicas there. 现在我在那里阅读了复制品。

I want to delete the one that failed. 我想删除失败的那个。

Is it just a case of terminating it? 这只是一个终止它的情况吗? Does it have any affect on the master or the other read replica? 它对主设备或其他只读副本有影响吗?

Have not ever had to do this before, so want to be sure I am doing this the right way 之前从未有过这样的事情,所以我想确保以正确的方式做到这一点

This should be a perfectly safe operation, but taking a last-minute snapshot of your master (or even the other replica, if it's on-line, replicating, and synched) wouldn't hurt. 这应该是一个非常安全的操作,但是拍摄主人(或者甚至是其他副本,如果它在线,复制和同步)的最后一刻快照不会受到伤害。

In MySQL replication, the connection between master and replica is initiated from the replica ("slave") server side -- if a replica goes offline, the master server just closes the connection and goes about its business; 在MySQL复制中,主服务器和副本服务器之间的连接是从副本服务器(“从服务器”)服务器端启动的 - 如果副本服务器脱机,主服务器只是关闭连接并继续其业务; there is essentially no risk to the master from a replica disappearing, even at random. 即使是随机的,复制品中的主人基本上没有风险消失。

Specifically, in RDS, replicas seem fairly clearly to be designed to be disposable, and RDS also provides the ability to "promote" a replica -- which is not a promotion to being "the" master (replacing the existing one), but rather a promotion to being "a" master, an independent standalone system of its own, fully disconnected from its former relationship with its former master. 具体来说,在RDS中,复制品看起来很明显被设计为一次性的,RDS还提供了“促进”复制品的能力 - 这不是促进成为“主”(取代现有的),而是促进成为“一个”主人,一个独立的独立系统,与以前与其前任主人的关系完全脱节。

If it made you more comfortable, you could "promote" the replica first, and then delete it once you see that process complete, though simply deleting the replica should be harmless. 如果它让您更舒服,您可以先“升级”副本,然后在看到该过程完成后将其删除,但只需删除副本应该是无害的。

http://aws.amazon.com/about-aws/whats-new/2012/10/11/amazon-rds-mysql-rr-promotion/ http://aws.amazon.com/about-aws/whats-new/2012/10/11/amazon-rds-mysql-rr-promotion/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM