Redis cluster 查询优化

Offen
#3,586 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp, redis

Rechercherichtung

Start by reading RedisClusterChannel::CallMethodImpl and trace how it dispatches commands across Redis cluster slots. The issue proposes grouping keys by slot, issuing batched requests, and sending them concurrently; determine the relevant tests and benchmarks from the repository. Done means cluster queries use this approach and correctness and performance are verified.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Is your feature request related to a problem?
RedisClusterChannel::CallMethodImpl 看着是把redis命令折分出来一个个执行的. 每次一个完整 RTT 地串行发,没有任何 pipeline、也没有并发。

Describe the solution you'd like
是否可以对key先按 slot分组 + 每次发一个真正的批量请求 + 并发发送

Describe alternatives you've considered

N/A
Additional context/screenshots

N/A

Vorherrschende Sprache
C++
Sterne
17.6k
Forks
4.2k
Ø Merge
3 T. 17 Std.
Gemergte PRs (30 T.)
72

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus apache/brpc

Alle Issues in apache/brpc

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.