-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
policies: implement asc/desc modifier for sort order
When defining parameter "lru_sort_attr" or "default_lru_sort_attr", a modifier 'asc' or 'desc' can now be specified, e.g. lru_sort_attr = size(desc); lru_sort_attr = mtime(asc); Default if no modifier is specified is 'asc' i.e. from smallest to largest for sizes, and from oldest to newest for times. Change-Id: I674eaf5062e9b69d544a80b6f38f477302b40215 Signed-off-by: Gael Delbary <[email protected]> Signed-off-by: Thomas Leibovici <[email protected]> Reviewed-on: https://review.gerrithub.io/c/cea-hpc/robinhood/+/523438 Reviewed-by: Sebastien Gougeaud <[email protected]>
- Loading branch information
1 parent
04412d9
commit 509584b
Showing
12 changed files
with
160 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
%include "common.conf" | ||
|
||
migration_rules | ||
{ | ||
policy default { condition { size >= 2M } } | ||
} | ||
|
||
migration_parameters { | ||
# serialize processing to make the check easy in test output | ||
nb_threads = 1; | ||
queue_size = 1; | ||
|
||
# set a small result size to check request continuation | ||
db_result_size_max = 3; | ||
|
||
max_action_count = 4; | ||
|
||
lru_sort_attr = size(desc); | ||
} |