graphprotocol / graphprotocol/graph-node
[Feature] Add a `graphman database check`
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 3.2k
- Fork
- 1.1k
- Merge medio
- 4g 1h
- PR unite (30g)
- 1
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia individuando i comandi esistenti del database graphman e il codice che gestisce le connessioni agli shard. Determina come accedere a primary_public e alla tabella dei sottografi di ogni shard, quindi verifica che il comando segnali ogni errore di connessione e abbia esito positivo quando tutti i controlli vanno a buon fine.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- postgresql, rust
- Ambito
- cli, databases
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100