[LU-13338] add changelog mask per registered user Created: 05/Mar/20  Updated: 05/May/22  Resolved: 14/Sep/21

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

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Mikhail Pershin
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
duplicates LU-13055 add ability for named Changelog consu... Closed
Related
is related to LU-13055 add ability for named Changelog consu... Closed
Rank (Obsolete): 9223372036854775807

 Description   

Currently, the changelog mask is a global value configured on the MDD device. If changelog users are configured, by default all operation types are logged excluding OPEN, ATIME, and GXATTR (see CHANGELOG_DEFMASK). This adds overhead on the MDT to log a lot of records that may not be interesting for any of the currently-registered users. While it is possible to disable specific record types globally, it is difficult to determine which Changelog users need which record types, and removing records that an administrator thinks are not needed may break the application.

It would be more useful for Changelog users to register the mask of record types that they are interested in, and the union of all registered user masks would determine which records are stored in the changelog. That way, if there is only one changelog user and it is only interested in OPEN and CLOSE records, those would be the only records logged. If a second changelog user is only interested in CREAT and UNLINK then those would also be logged for the duration that changelog user exists, but would stop being logged if the user is deregistered (explicitly or due to lack of record consumption).

This will reduce Changelog overhead in many cases, and avoid potential errors from the configuration of the global flag.



 Comments   
Comment by Mikhail Pershin [ 14/May/21 ]

Initial per-user mask is implemented under LU-13055 in patch: https://review.whamcloud.com/43380

Comment by Andreas Dilger [ 14/Sep/21 ]

This was landed via patch https://review.whamcloud.com/43380 "LU-13055 mdd: per-user changelog names and mask"

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