[LU-13881] lower than (<) and greater than (>) compare operator support for PCC rule Created: 06/Aug/20  Updated: 11/Sep/21

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Qian Yingjin Assignee: Qian Yingjin
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Blocker
Duplicate
is duplicated by LU-13863 lower than (<) and greater than (>) o... Resolved
is duplicated by LU-13864 lower than (<) and greater than (>) o... Resolved
is duplicated by LU-13865 lower than (<) and greater than (>) o... Resolved
is duplicated by LU-13866 lower than and greater than compare ... Resolved
is duplicated by LU-13867 lower than and greater than compare ... Resolved
is duplicated by LU-13868 lower than and greater than compare ... Resolved
is duplicated by LU-13869 lower than and greater than compare ... Resolved
is duplicated by LU-13870 lower than and greater than compare ... Resolved
is duplicated by LU-13871 lower than and greater than compare ... Resolved
is duplicated by LU-13872 lower than and greater than compare ... Resolved
is duplicated by LU-13873 lower than and greater than compare ... Resolved
is duplicated by LU-13875 lower than and greater than compare ... Resolved
is duplicated by LU-13876 lower than and greater than compare ... Resolved
is duplicated by LU-13877 lower than and greater than compare ... Resolved
is duplicated by LU-13878 lower than and greater than compare ... Resolved
is duplicated by LU-13879 lower than and greater than compare ... Resolved
is duplicated by LU-13880 lower than and greater than compare ... Resolved
Related
Rank (Obsolete): 9223372036854775807

 Description   

There are increasing requirements to add lower than/greater than compare operator for the PCC rules:

  • File data that is larger than local disk capacity should not auto cache in PCC;
  • A range of UID/GID/ProjID could be auto cached on PCC;

The following rule expressions are supported:

lctl pcc add /mnt/lustre /mnt/pcc -p "projid=\{100}&size>\{1M}&size<\{500G} roid=5 ropcc=1"
lctl pcc add /mnt/lustre /mnt/pcc -p "projid>\{100}&projid<\{110} roid=5 ropcc=1"
lctl pcc add /mnt/lustre /mnt/pcc -p "uid<\{1500}&uid>\{1000} rwid=5"


 Comments   
Comment by Gerrit Updater [ 06/Aug/20 ]

Yingjin Qian (qian@ddn.com) uploaded a new patch: https://review.whamcloud.com/39585
Subject: LU-13881 pcc: comparator support for PCC rules
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8a5a2778af0877ec678ecdb0ed86ea7c97aa5913

Generated at Sat Feb 10 03:05:00 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.