Open artem-dronov opened 3 years ago
You should run RESET SLAVE ALL
on your current primary. This is assuming there's nothing in the relay logs that you need. that's the normal thing to do after promoting a new primary -- but that's just my suggestion, make sure you understand what you are doing.
You should run
RESET SLAVE ALL
on your current primary. This is assuming there's nothing in the relay logs that you need. that's the normal thing to do after promoting a new primary -- but that's just my suggestion, make sure you understand what you are doing.
Does this action not affect the health of the primary node?
right now your primary node thinks it's a replica. But if it's a primary, it probably shouldn't think so, it's risky. Because it may try to reconnect to whatever master_host
is listed right now.
Define "affect the health"? RESET SLAVE ALL
does not affect production traffic and is a non-blocking operation.
I'm sorry, I haven't done this before. I'm more worried about whether the execution of this command on the master node will affect the synchronization of other slave nodes connected to the master.
Running this command on the primary node (master) does not affect the synchronization of the replicas connected to the primary node.
Obviously do not run it on the replicas.
Good day! gh-ost cannot find the replication master, previously we promoted the slave to the master, that is, if we SHOW SLAVE STATUS on the master, it will show Slave_IO_Running: No, Slave_SQL_Running: No, what should we do in this case?
./gh-ost --host=master_host --user=test_user --password=????? \ --database=test_db --table=test --assume-rbr --allow-on-master \ --verbose --alter="add test SMALLINT NULL" --chunk-size=3000 --assume-rbr \ --max-load=Threads_connected=20 > gh.log &