[Feature] Add a `graphman database check`
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.
- [X] I have searched the issue tracker to make sure this issue is not a duplicate.
On second thought, I wonder if we shouldn't just do these checks every time graph-node starts and complain loudly if one of them fails. A problem in cross-shard comms will later show up as weird issues in other operations (e.g., copies not starting for seemingly no reason)
Looks like this issue has been open for 6 months with no activity. Is it still relevant? If not, please remember to close it.