Speed up NeoFS chain deployment from scratch with set_roles_in_genesis
option
#409
Labels
enhancement
Improving existing functionality
I3
Minimal impact
performance
More of something per second
S3
Minimally significant
U2
Seriously planned
Is your feature request related to a problem? Please describe.
IR launched in auto-deployment mode always deploys NNS first when starting from scratch. This requires some time to wait blocks so so that the deployer (now it's always committee member Az) has enough GAS
when option
https://github.com/nspcc-dev/neofs-node/blob/5c66479ee4bbd727c74abab8e635eb74aea4cf9d/config/example/ir.yaml#L86-L88
is enabled, IR is able to fill committee accounts with GAS insta cuz Notary system is completely ready for work starting from the genesis block
Describe the solution you'd like
in auto-deployment procedure, 1st of all check the Notary service's readiness for consumption by the committee. If roles are unset, continue as always (deploy NNS and so on), otherwise, make GAS transfer stage 1st, and then perform all other stages with ready-to-go GAS. Taking into account how much GAS is required for the NNS deployment, this approach should speed up the whole procedure for deploying the network
Describe alternatives you've considered
leave anything untouched: everything works now but takes a bit more time (depending on
https://github.com/nspcc-dev/neofs-node/blob/5c66479ee4bbd727c74abab8e635eb74aea4cf9d/config/example/ir.yaml#L37-L38
to be more precise). Need to see how much we win with proposed solution
The text was updated successfully, but these errors were encountered: