Improve working with IR control service #787

Closed
opened 2023-11-07 10:21:33 +00:00 by fyrchik · 1 comment

Currently we use a tricky formula to generate VUB for the transactions. This means, that there will be unfortunate situations when half of the nodes send the tx with one VUB, and other half with a different one.
The suggestion is to:

  1. Make ir control service return calculated VUB for sent transactions (we currently send many, but they all have the same vub)
  2. Allow to override generation with a constant.

So on the first node we do

$ frostfs-cli control ir ...
...
VUB is 12345

And on all other nodes just frostfs-cli control ir --vub 12345 ...

Currently we use a tricky formula to generate VUB for the transactions. This means, that there _will_ be unfortunate situations when half of the nodes send the tx with one VUB, and other half with a different one. The suggestion is to: 1. Make ir control service return calculated VUB for sent transactions (we currently send many, but they all have the same vub) 2. Allow to override generation with a constant. So on the first node we do ``` $ frostfs-cli control ir ... ... VUB is 12345 ``` And on all other nodes just `frostfs-cli control ir --vub 12345 ...`
fyrchik added the
enhancement
frostfs-cli
frostfs-ir
labels 2023-11-07 10:21:33 +00:00
Poster
Owner

This is not backwards compatible, maybe we could use --generate-vub explicitly, it will pick the best possible VUB then (just current height + MaxValidUntilBlockIncrement, without rounding formula)

This is not backwards compatible, maybe we could use `--generate-vub` explicitly, it will pick the best possible VUB then (just current height + MaxValidUntilBlockIncrement, without rounding formula)
fyrchik added this to the v0.38.0 milestone 2023-11-07 10:22:50 +00:00
dstepanov-yadro self-assigned this 2023-11-07 10:23:52 +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#787
There is no content yet.