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

max number of shards for genesis config #2521

Merged
merged 7 commits into from Dec 4, 2020

Conversation

AdoAdoAdo
Copy link
Contributor

@AdoAdoAdo AdoAdoAdo commented Nov 27, 2020

Add maximum number of shards for genesis nodes config

This will allow more flexible initial test-net nodes config.
Should be backwards compatible, as long as the set maximum number of shards >= with the legacy end result (3 shards without MetaChain)

Legacy implementation would have split the nodes into maximum number of shards allowed by the constraints (number of eligible nodes per shard + minimum hysteresis for waiting nodes), now even if more shards could be created, the given maximum number of shards is kept as a hard limit, the remaining nodes being distributed to the shards waiting lists.

@AdoAdoAdo AdoAdoAdo changed the title cmd, config, sharding, testscommon: add max number of shards for genesis config max number of shards for genesis config Nov 27, 2020
@sasurobert sasurobert self-requested a review November 27, 2020 13:39
sasurobert
sasurobert previously approved these changes Nov 27, 2020
@iulianpascalau iulianpascalau added the type:feature New feature or request label Nov 30, 2020
Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial tests passed. More stress-testing follows. 👍

@LucianMincu LucianMincu merged commit 298ecd8 into development Dec 4, 2020
@LucianMincu LucianMincu deleted the genesis-nodes-config-max-shards branch December 29, 2020 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants