Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-13338

add changelog mask per registered user

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • None
    • None
    • None
    • 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.

      Attachments

        Issue Links

          Activity

            People

              tappro Mikhail Pershin
              adilger Andreas Dilger
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: