-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display Currently-Used HTTP Connection to Eth1 Node via Healthz or an API Endpoint #9972
Comments
Hey Raul! This is something I would like to take a swing at. I wanted to run my plan by you before diving too deep in case there is something obvious I am missing (highly likely). This is how I am understanding the data flow of the URLs:
On the other end, we want to implement an RPC on the v1alpha1 node. From what I can tell:
Given this, my plan to extract the HTTP endpoints and connection statuses out of the powchain service is as follows.
I know that was a bit verbose, but since there is a good bit of plumbing I was hoping to get an overall sense of if this is a reasonable approach or if you had anything you would do significantly differently! Thanks in advance for taking a look! |
FYI I wrote up a little proof-of-concept in michaelneuder#1. I need to add tests and clean up obviously, but I am going to pause here before getting to invested in this implementation in case the approach needs to be adjusted. |
This is an excellent description that describes the code path perfectly. Your PR is great, as it accomplishes exactly what we wanted. I believe it is almost ready for a final review and merge into Prysm. Feel free to open a pull request. We use a build system called Bazel which can be a little difficult to deal with when adding new endpoints, but I can help fix those problems in your PR after you push |
🚀 Feature Request
Description
Prysm allows users to specify a connection to an eth1 node using the
--http-web3provider
flag. Additionally, users can provide a fallback URL to connect to if the first one goes down. This is important functionality that is used by many stakers today. However, for more advanced users running cloud infrastructures or those developing user interfaces to Prysm, it would be nice to expose an API that shows the current eth1 connection information including the currently connected endpoint, the fallback providers, and whether or not there is an active error in the connections.Describe the solution you'd like
Some API endpoint in the Prysm beacon node which returns the following data:
This endpoint should go under
proto/prysm/v1alpha1/node.proto
Describe alternatives you've considered
Today, the information about the currently connected endpoint is available in the prom metrics of the beacon node:
but there is no way to see the list of fallback providers or the currently connected URL.
The text was updated successfully, but these errors were encountered: