Add ability to force several new epochs at once in frostfs-adm #1372

Closed
opened 2024-09-12 14:20:01 +00:00 by alexvanin · 0 comments
Owner

With introduction of S3 Lifecycles, we need a way to fast forward several epochs (for days or even weeks of running), not just one epoch. While it is possible to run consecutive frostfs-adm morph force-new-epoch commands, it might be quite slow when block duration is longer than one second.

Describe the solution you'd like

Add a flag to force-new-epoch command to specify delta between current and next epochs (1 by default).

Describe alternatives you've considered

Add a flag to force-new-epoch to set specific epoch, but I am not sure if it is good, because it may allow to set epoch from the past.

Additional context

It will simplify some E2E tests for S3 lifecycles because it uses days as duration, not minutes or hours.

## Is your feature request related to a problem? Please describe. With introduction of S3 Lifecycles, we need a way to fast forward several epochs (for days or even weeks of running), not just one epoch. While it is possible to run consecutive `frostfs-adm morph force-new-epoch` commands, it might be quite slow when block duration is longer than one second. ## Describe the solution you'd like Add a flag to `force-new-epoch` command to specify delta between current and next epochs (1 by default). ## Describe alternatives you've considered Add a flag to `force-new-epoch` to set specific epoch, but I am not sure if it is good, because it may allow to set epoch from the past. ## Additional context It will simplify some E2E tests for S3 lifecycles because it uses days as duration, not minutes or hours.
alexvanin added the
frostfs-adm
triage
labels 2024-09-12 14:20:01 +00:00
achuprov was assigned by fyrchik 2024-09-13 09:44:41 +00:00
fyrchik added this to the v0.43.0 milestone 2024-09-13 09:44:43 +00:00
fyrchik removed the
triage
label 2024-09-13 09:44:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#1372
No description provided.