nspcc-dev / neofs-dev-env

NeoFS local Development and Testing environment
https://fs.neo.org
GNU General Public License v3.0
9 stars 25 forks source link

Remove predefined network map from chains #84

Closed alexvanin closed 3 years ago

alexvanin commented 3 years ago

Predefined network map was introduced to decrease startup time of environment. We have 5 minute long epochs and there should be at least one epoch tick for storage nodes to bootstrap. It works great for 4 node environment until I you want to change some bootstrap parameters of the node.

With single alphabet node (https://github.com/nspcc-dev/neofs-dev-env/pull/60) and introduction of scripts to change global values (https://github.com/nspcc-dev/neofs-dev-env/pull/64) and exepct for password input (https://github.com/nspcc-dev/neofs-dev-env/issues/70) we can decrease startup time without predefined network map.

To do that we need to add make tick.epoch target in neofs_config.mk. This target will call the script to get current epoch and send tx with invocation of netmap.Epoch(current+1). It is already done for make update.* targets, see bin/config.sh.

alexvanin commented 3 years ago

Closed too soon. To remove predefined network map we should remove it from chains and then tick new epoch at the make up. This should be enough, however if inner ring won't be ready before storage nodes goes up, this won't work. Need some healthcheck here?