graphprotocol / graphprotocol/graph-node
Add exponentional back-off algorithm and addtional error reporting for firehose/stubstreams connections
Personne n'a encore pris cette issue.
- Langage dominant
- Rust
- Étoiles
- 3.2k
- Forks
- 1.1k
- Merge moyen
- 4 j 1 h
- PR mergées (30 j)
- 1
Description
Do you want to request a feature or report a bug?
bug
What is the current behavior?
When there is an error (eg timeout) on firehose, graph-node waits 2 minutes and then tries again. If the error happens again, it again waits 2 minutes, and so on. If the error is due to software, then this just keeps load on the firehose server forever.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
There was error in firehose code that demonstrates this problem. The problem has since been fixed in firehose, but can reproduced using the old version. Basically can reproduced by simply having firehose never return any data and drop the connection after a while.
What is the expected behavior?
graph-node to have an exponential retry algorithm (eg 30s, 1m, 2m, 4m, 8m, 16m) instead of the hard-coded 2min.
Additionally there the prometheus exporter in graph-node should be improved to report connections retry interval (so alerts can be generated on problem connections)
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par la gestion des tentatives de reconnexion de graph-node vers firehose/stubstreams et par le Prometheus exporter. Reproduisez le cas décrit d’une connexion interrompue sans données, puis suivez l’attente fixe actuelle de deux minutes et les métriques de connexion existantes. Le travail est terminé lorsque les tentatives utilisent des intervalles croissants et que l’exporter expose des informations sur l’intervalle entre les tentatives, adaptées aux alertes.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- prometheus, rust
- Domaine
- backend, networking, observability
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 38/100