[LU-13875] lower than and greater than compare operator support for PCC rule Created: 06/Aug/20  Updated: 01/May/23  Resolved: 01/May/23

Status: Resolved
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: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates LU-13881 lower than (<) and greater than (>) ... Open
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}"
lctl pcc add /mnt/lustre /mnt/pcc -p "projid>\{100}&projid<\{110}"
lctl pcc add /mnt/lustre /mnt/pcc -p "uid<\{1500}&uid>\{1000}"

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