Skip to content
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

Failover on RPC node maintenance #25

Open
mschneider opened this issue Mar 5, 2021 · 0 comments
Open

Failover on RPC node maintenance #25

mschneider opened this issue Mar 5, 2021 · 0 comments

Comments

@mschneider
Copy link

We noticed an issue while running the aggregator, that keeps causing maintenance on our end. Basically the websocket might get locked in a weird state, when the RPC endpoint goes down for maintenance. The error looked like this:

ws error: connect ECONNREFUSED xxx:443
ws error: connect ECONNREFUSED xxx:443
ws error: connect ECONNREFUSED xxx:443

At some point the socket stopped trying to reconnect and I had to manually restart the oracle to make it work again.

Ideally the code would just allow us to specify a preference of rpc nodes and switch to a different one, in case the primary one becomes unavailable. Also it should switch back, when the primary one becomes available and is ready to accept transactions Could you look into that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant