graphprotocol / graphprotocol/graph-node

[Feature] Add a `graphman database check`

Offen
#4,938 2 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

area/graphman enhancement Stale
Vorherrschende Sprache
Rust
Sterne
3.2k
Forks
1.1k
Ø Merge
4 T. 1 Std.
Gemergte PRs (30 T.)
1

Beschreibung

Description

We should add a graphman command that checks that all shards can talk to each other in the way that we need. For each shard, it should access the primary_public (e.g., by running select count(*) from primary_public.chains) and the shard_.._subgraphs.subgraph tables for all the other shards and print any error it encounters.

This would be very useful to ensure that everything is in place for sharding to work as there are many ways in which this can go wrong (firewalls, pg_hba.conf, ..)

Are you aware of any blockers that must be resolved before implementing this feature? If so, which? Link to any relevant GitHub issues.

No response

Some information to help us out
  • Tick this box if you plan on implementing this feature yourself.
  • I have searched the issue tracker to make sure this issue is not a duplicate.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die vorhandenen graphman-Datenbankbefehle und den Code zu lokalisieren, der die Shard-Verbindungen verwaltet. Ermittle, wie auf primary_public und die Subgraph-Tabelle jedes Shards zugegriffen wird, und überprüfe anschließend, dass der Befehl jeden Verbindungsfehler meldet und erfolgreich ist, wenn alle Prüfungen bestanden werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
postgresql, rust
Bereich
cli, databases
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

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