Reduce stages number in the frostfs-adm #652

Open
opened 2023-08-25 11:17:51 +00:00 by fyrchik · 0 comments

frostfs-adm proceeds with initialization in stages, because, for example, to deploy alphabet contract deployer must have some funds.
It is currently 7 of them and some of them are not dependent to each other:
It seems that the last 4 stages can be done in parallel:

cmd.Println("Stage 4.1: Transfer GAS to proxy contract.")
cmd.Println("Stage 5: register candidates.")
cmd.Println("Stage 6: transfer NEO to alphabet contracts.")
cmd.Println("Stage 7: set addresses in NNS.")
  1. Validate that these stages don't have dependencies.
  2. Just send transactions and perform await separately.

This is not as straight forward as it seems -- we probably will need better error reporting (map tx hash to what is being done).

This may improve devenv startup time by 3 seconds.

frostfs-adm proceeds with initialization in stages, because, for example, to deploy alphabet contract deployer must have some funds. It is currently 7 of them and some of them are not dependent to each other: It seems that the last 4 stages can be done in parallel: ``` cmd.Println("Stage 4.1: Transfer GAS to proxy contract.") cmd.Println("Stage 5: register candidates.") cmd.Println("Stage 6: transfer NEO to alphabet contracts.") cmd.Println("Stage 7: set addresses in NNS.") ``` 1. Validate that these stages don't have dependencies. 2. Just send transactions and perform await separately. This is not as straight forward as it seems -- we probably will need better error reporting (map tx hash to what is being done). This may improve devenv startup time by 3 seconds.
fyrchik added the
enhancement
frostfs-adm
good first issue
triage
labels 2023-08-25 11:17:51 +00:00
fyrchik added this to the vNext milestone 2023-08-25 11:18:03 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#652
There is no content yet.