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

Support multiple chain nodes per miner node #9130

Open
Tracked by #5583
magik6k opened this issue Aug 5, 2022 · 2 comments
Open
Tracked by #5583

Support multiple chain nodes per miner node #9130

magik6k opened this issue Aug 5, 2022 · 2 comments
Assignees
Labels
area/mining Area: Mining kind/feature Kind: Feature

Comments

@magik6k
Copy link
Contributor

magik6k commented Aug 5, 2022

Currently each lotus-miner instance can only be backed by a single lotus chain node. This is obviously not ideal as there is no redundancy for chain operations - if the chain node dies, the miner node will become unusable until the chain node is fixed or switched.

This can be done in two ways:

The need for #9129 could be mitigated by requiring use of separate control addresses on each node, but that makes setup harder, and requires a lot of on-chain accounts, which is not ideal.

@magik6k magik6k added kind/feature Kind: Feature area/mining Area: Mining labels Aug 5, 2022
@magik6k
Copy link
Contributor Author

magik6k commented Aug 8, 2022

Whichever way we go, we likely want to start by writing a helper which takes multiple API connections - basically a method accepting multiple api interfaces and outputting one api proxy.

We already have some code doing similar transforms on the API interfaces:

Then we just need to make it possible to connect to multiple chain nodes in https://github.com/filecoin-project/lotus/blob/master/cmd/lotus-miner/run.go#L77 using that helper

@Fatman13
Copy link
Contributor

Venus team have a proposal to approach this problem too. Comments and questions are welcomed!

Proposal:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/mining Area: Mining kind/feature Kind: Feature
Projects
None yet
Development

No branches or pull requests

3 participants