Prysm: Multiple ETH1 endpoints

Created on 26 Nov 2020  路  10Comments  路  Source: prysmaticlabs/prysm

馃殌 Feature Request

Description

Currently the beacon node accepts a single URL for ETH1 endpoint. Due to the recent AWS outage, its important to have multiple endpoint support just incase if the primary ETH1 fails, beacon node will then fallback to the secondary URL. Then if the primary endpoint recovers then start to switch from secondary to primary

Describe the solution you'd like

Modify the beacon node code to accept multiple endpoints, and if the first URL fails, fallback to the second one.. Maintain a polling call to all endpoints for health checks. If they are healthy then recover to the first URL.

Describe alternatives you've considered

As of now this is handled outside the application level which can be on NGINX / proxies. But its best to move this to application code.

Enhancement Needs Design Medium

Most helpful comment

Alright PR is up in #8062, if everything goes well you guys can expect it in v1.0.5

All 10 comments

Lighthouse has this now 馃憤

An optional for those looking is dshackle. However, the eth_chainId function is broken in the latest release (v0.8.3) and a fix is pending release.

Lighthouse recently added this feature on v.1.0.1. Would be really nice to have :D

I've really considered moving to lighthous because of that. that's a really useful and easy and reasonable feature.
thanks for the community.

I agree it would be a good thing, but you have several of options

  • move to lighthouse as you said
  • use nginx as proxy to do this
  • wait

NGINX and/or HAProxy won't fail over unless the node is completely unavailable, it doesn't do any real health check on the state of the node. dshackle is a better option, but that's relying on a 3rd party dependency and it has it's own issues here and there, but it's probably the best option for now.

I'll wait. I believe the next release will include this MR.

Oh wait, is it @rkapka ?

I will be working on this today, should be ready by v1.05. With mainnet launch last week, there were other more pressing issues to deal with but I am now free to pursue this today.

I will be working on this today, should be ready by v1.05. With mainnet launch last week, there were other more pressing issues to deal with but I am now free to pursue this today.

new hero

Alright PR is up in #8062, if everything goes well you guys can expect it in v1.0.5

Alright feature has been merged in, so you all will see this in v1.05 next week.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SpyderChristian picture SpyderChristian  路  5Comments

prestonvanloon picture prestonvanloon  路  4Comments

prestonvanloon picture prestonvanloon  路  3Comments

mshean picture mshean  路  4Comments

nisdas picture nisdas  路  4Comments