This thread looks kind of dead, but we have a desire to see some prioritization mechanism as well.
Some options:
1. FIFO (today)
2. Restore-first. All restore requests are prioritized over archive requests. (Except in-progress archives.)
3. Archive-first. All archives are prioritized.
4. Interleaved. Archive and Restore requests are alternated, as long as some of each are waiting.
5. Tunable. Adjustable ratio of archive:restore processing. Maybe this covers the above 2-4 as well.
6. Batched. Archives and Restores are grouped into separate batches, potentially resulting in fewer tape swaps.
7. Time-boxed. A variant of batched; batch ends after a fixed time period.
Many other options I'm sure...
Ultimately I'm in agreement with Robert Read's comment above that the prioritization should really be done outside of Lustre, but if the patch here implements #5 that might cover enough of the use cases to make most people happy...
Quentin Bouget (quentin.bouget@cea.fr) uploaded a new patch: https://review.whamcloud.com/34749
Subject: LU-8324 hsm: prioritize one RESTORE once in a while
Project: fs/lustre-release
Branch: b2_10
Current Patch Set: 1
Commit: 3fa2b1682755eeb988d10af53797a8d5e1a3679d