clusterx migrate support data synchronization mode

Aperta
#3,222 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp

Direzione di ricerca

Inizia dal punto di ingresso del comando clusterx migrate e segui il modo in cui il completamento della migrazione imposta lo stato migrato e gestisce le scritture successive. Esamina il flusso di migrazione esistente prima di definire i tre sottocomandi richiesti: dtsmode, cancel e dtscomplete; completato significa che la sincronizzazione incrementale, l’annullamento e l’allineamento degli offset supportano il workflow di upgrade a fasi.

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

Descrizione

enhancement
Search before asking
  • I had searched in the issues and found no similar issues.
Motivation

After the kvrocks migrate command completes the migration of existing and incremental data, it sets the migrated_slots_ variable and responds to subsequent write requests with the MOVED command, ensuring that subsequent requests are executed only on the migration target node.

In a scenario where we use the migration function to upgrade Kvrocks, we need to observe the data migration to the new kvrocks node for a period of time to ensure that the new node is functioning properly before returning the MOVED command to subsequent write requests. During this observation period, the incremental data synchronization operation is ongoing, meaning that the data is available on both the old and new primary nodes.

Solution

This approach effectively implements phased verification of the new kvrocks program and enables rapid, lossless rollbacks.
To implement the above features, three subcommands need to be added to the clusterx migrate command:
clusterx migrate dtsmode: Data migration mode, continuously synchronizing incremental data
clusterx migrate cancel: Cancels the data migration
clusterx migrate dtscomplete: Completes the migration task, aligning the new primary with the old primary's offset

We will implement this feature. If you have better suggestions, please let us know.

Are you willing to submit a PR?
  • I'm willing to submit a PR!
Lingua principale
C++
Stelle
4.5k
Fork
686
Merge medio
2g 1h
PR unite (30g)
35

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 apache/kvrocks

Tutte le issue di apache/kvrocks

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.