Enable parallel predicate moves across Alpha groups to remove single-threaded constraint and accelerate cluster reorganization

オープン
#9,785 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 10 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
30/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
go

調査の方向性

まず PR #9747 と、この issue で説明されている Dgraph Zero の predicate-move 調整を確認します。並行性の設計を提案する前に、move がどのようにシリアライズされ、tablet の所有権と書き込みがどのように保護されるかを把握します。完了の条件は、複数の move を安全に並列実行でき、データの整合性を維持し、リバランシング時間を短縮できることです。

索引モデルが issue の本文から書いたものです。

説明

bug Stale

Problem Statement

Dgraph Zero currently enforces a strict global lock allowing only one predicate move at a time across the entire cluster. When rebalancing or reorganizing clusters containing dozens or hundreds of predicates, processing them in a strictly serial, non-concurrent fashion is prohibitively time-consuming, taking days or even weeks to complete.

Impact

  • Operational Bottlenecks: Cluster maintenance, node decommissioning, and rebalancing operations are blocked by single-file predicate transfers.
  • Prohibitive Execution Times: Even if individual predicate moves are optimized, transferring multiple predicates sequentially creates unacceptable operational overhead and unnecessarily long maintenance windows. Writes to the predicate are fully blocked until the predicate moves. In a schema with lots of interconnection, this block expands to large amounts of predicates, causing unknown transaction issues to users. Directly, this error is never surfaced to the client. (See PR starting to address this: https://github.com/dgraph-io/dgraph/pull/9747)

Desired Outcome

Dgraph Zero should support concurrent predicate moves across the cluster, allowing operators to move multiple predicates in parallel while maintaining cluster stability and data integrity.

Acceptance Criteria

  • Multiple predicate moves can execute concurrently across the cluster.
  • Total cluster rebalancing duration is significantly reduced compared to the single-threaded serial baseline.
  • Data integrity and tablet ownership state remain consistent during concurrent moves.
主要言語
Go
スター
21.8k
フォーク
1.6k
平均マージ
11日 7時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dgraph-io/dgraph のほかの issue

dgraph-io/dgraph の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。