'Connect to replica, migrate to master' operation mode also requires a secondary Amazon RDS Aurora cluster

Aperta
#1,295 0 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 10 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
aws, mysql

Direzione di ricerca

Esamina doc/cheatsheet.md e la documentazione collegata sulle modalità operative, iniziando dalla nota esistente su “migrate/test on replica”. Aggiorna la documentazione per indicare che “Connect to replica, migrate to master” richiede anch’esso un cluster Amazon RDS Aurora secondario separato, e verifica che l’esempio e i prerequisiti siano coerenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Suggesting a documentation update. Opening up for discussion before PR creation.

In the current documentation, only the 'migrate/test on replica' operation mode is mentioned to need a separate, secondary Amazon RDS Aurora cluster to act as the replica. But the 'Connect to replica, migrate to master' operation mode also requires a secondary cluster.

When testing the 'Connect to replica, migrate to master' mode with host=reader instance endpoint:

gh-ost \
  --user="useradmin" \
  --ask-pass \
  --host=xxxxxxxx.ca-central-1.rds.amazonaws.com \
  --database=dbtest \
  --table=persons \
  --verbose \
  --alter="engine=innodb" \
  --assume-rbr \
  --allow-master-master \
  --cut-over=default \
  --exact-rowcount \
  --concurrent-rowcount \
  --default-retries=120

The output is:

2023-08-15 13:04:23 INFO starting gh-ost 1.1.5
2023-08-15 13:04:23 INFO Migrating `dbtest`.`persons`
2023-08-15 13:04:24 INFO inspector connection validated on xxxxxxxxx.ca-central-1.rds.amazonaws.com:3306
2023-08-15 13:04:24 INFO User has REPLICATION CLIENT, REPLICATION SLAVE privileges, and has ALL privileges on `dbtest`.*
2023-08-15 13:04:24 INFO Tearing down inspector
2023-08-15 13:04:24 FATAL xxxxxxxxxxx.ca-central-1.rds.amazonaws.com:3306 must have binary logs enabled

This is the same error encountered when using 'Migrate/test on replica' mode with a reader instance in the same cluster as its writer instance.

Note: Binary logs have already been enabled on the cluster. From the AWS docs: “Binary logs are accessible only from the primary DB instance, not from the replicas.”

When a secondary Aurora cluster with a writer instance was created to act as the replica for the primary Aurora cluster, the 'Connect to replica, migrate to master' works as expected.

Happy to create a PR to update the documentation.

Lingua principale
Go
Stelle
13.6k
Fork
1.4k
Merge medio
9g 19h
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di github/gh-ost

Tutte le issue di github/gh-ost

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.