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

add ability for named Changelog consumers

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.12.8, Lustre 2.15.0
    • None
    • None
    • 9223372036854775807

    Description

      Currently Lustre Changelog consumers are always named e.g. "cl1" or "cl14". It would be useful to be able to declare the changelog username (e.g. "cl-rbh" or "cl-audit") so that it is clear who the Changelog users are, and to avoid duplicate changelog registrations. Otherwise, it can happen that the original Changelog user registration can be lost, and the application registers a new user, and the old user causes the Changelog records to accumulate.

      Attachments

        Issue Links

          Activity

            [LU-13055] add ability for named Changelog consumers

            "Andreas Dilger <adilger@whamcloud.com>" merged in patch https://review.whamcloud.com/c/doc/manual/+/57435/
            Subject: LU-13055 doc: add changelog_register name/mask
            Project: doc/manual
            Branch: master
            Current Patch Set:
            Commit: 49a66627ea6fd91d0fe475a031b5ba9fa8e6f7bd

            gerrit Gerrit Updater added a comment - "Andreas Dilger <adilger@whamcloud.com>" merged in patch https://review.whamcloud.com/c/doc/manual/+/57435/ Subject: LU-13055 doc: add changelog_register name/mask Project: doc/manual Branch: master Current Patch Set: Commit: 49a66627ea6fd91d0fe475a031b5ba9fa8e6f7bd

            "Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/doc/manual/+/57435
            Subject: LU-13055 doc: add changelog_register name/mask
            Project: doc/manual
            Branch: master
            Current Patch Set: 1
            Commit: a19e58c24a1a194358b242eab35e00534556aa07

            gerrit Gerrit Updater added a comment - "Andreas Dilger <adilger@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/c/doc/manual/+/57435 Subject: LU-13055 doc: add changelog_register name/mask Project: doc/manual Branch: master Current Patch Set: 1 Commit: a19e58c24a1a194358b242eab35e00534556aa07

            For context, llapi_changelog_start() works by opening /dev/changelog-MDTnnnn and then llapi_changelog_recv() reads from the file descriptor. There is no obvious way to make the kernel side aware of which changelog user is reading the log, so some new mechanism would have to be added.

            olaf Olaf Weber (Inactive) added a comment - For context, llapi_changelog_start() works by opening /dev/changelog-MDT nnnn and then llapi_changelog_recv() reads from the file descriptor. There is no obvious way to make the kernel side aware of which changelog user is reading the log, so some new mechanism would have to be added.

            Andreas, right, mask is used to decide what record to write. As for processing case, if we know particular user doing that processing then I think it is possible to filter records

            tappro Mikhail Pershin added a comment - Andreas, right, mask is used to decide what record to write. As for processing case, if we know particular user doing that processing then I think it is possible to filter records

            Mike, one question that came to mind as I was describing this feature to someone - does the per-user changelog mask filter the records that are provided to the changelog user? I think it currently only affects the records that are recorded at the MDS, but it would possibly reduce some processing overhead (either at the MDS or the client) to skip records that are not in a user's mask.

            adilger Andreas Dilger added a comment - Mike, one question that came to mind as I was describing this feature to someone - does the per-user changelog mask filter the records that are provided to the changelog user? I think it currently only affects the records that are recorded at the MDS, but it would possibly reduce some processing overhead (either at the MDS or the client) to skip records that are not in a user's mask.

            There is nothing left to do here

            tappro Mikhail Pershin added a comment - There is nothing left to do here

            It appears that every change tracked under this issue is merged or abandoned.

            tappro is there anything left to do here?

            jhammond John Hammond added a comment - It appears that every change tracked under this issue is merged or abandoned. tappro is there anything left to do here?

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44404/
            Subject: LU-13055 changelog: use default mask if server has no mask
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: ffe259f81cda5b5cd9241362308ec26ebad194b8

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44404/ Subject: LU-13055 changelog: use default mask if server has no mask Project: fs/lustre-release Branch: master Current Patch Set: Commit: ffe259f81cda5b5cd9241362308ec26ebad194b8

            "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/43710/
            Subject: LU-13055 mdd: don't assert on unknown changelog lrh_type
            Project: fs/lustre-release
            Branch: b2_12
            Current Patch Set:
            Commit: 7759078c2be6df278bcdfab3eced738496f87331

            gerrit Gerrit Updater added a comment - "Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/43710/ Subject: LU-13055 mdd: don't assert on unknown changelog lrh_type Project: fs/lustre-release Branch: b2_12 Current Patch Set: Commit: 7759078c2be6df278bcdfab3eced738496f87331

            Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/44022/
            Subject: LU-13055 doc: update changelog manpages
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 393885c027793d27ec948fd4fccb47aa530d2bf8

            gerrit Gerrit Updater added a comment - Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/44022/ Subject: LU-13055 doc: update changelog manpages Project: fs/lustre-release Branch: master Current Patch Set: Commit: 393885c027793d27ec948fd4fccb47aa530d2bf8

            People

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

              Dates

                Created:
                Updated:
                Resolved: