Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monitor cephfs for changed/added files/directories #478

Open
mzimmerman opened this issue Apr 13, 2021 · 4 comments
Open

monitor cephfs for changed/added files/directories #478

mzimmerman opened this issue Apr 13, 2021 · 4 comments
Labels
ceph-libs Fix or enhancement needed in ceph libraries

Comments

@mzimmerman
Copy link

Is there any API that allows me to monitor or poll cephfs for a list of the changed/added files since X time? Currently, I walk the file system looking for those things, but that's expensive to the MDS as we have a lot of files and since I'm polling often, the MDS constantly has to keep that information in memory.

@phlogistonjohn
Copy link
Collaborator

Oh, like a sort of inotify kind of interface in libcephfs? I don't currently know of such a thing, and looking over the list of functions in libcephfs.h I don't see anything clearly related to that topic. I know for sure we don't have something like that in go-ceph.

It's certainly an interesting idea, so I encourage you to bring it up with the core ceph team. If they can suggest a specific api to use we can look to wrapping it in the future. If this is something they'd need to add, we could wrap it after it's been implemented in the C libraries.

Thanks!

@phlogistonjohn phlogistonjohn added the ceph-libs Fix or enhancement needed in ceph libraries label Apr 13, 2021
@darthShadow
Copy link

Hi,

Just checking if there has been any progress on this or if there's an upstream ticket that I can check?

@phlogistonjohn
Copy link
Collaborator

I don't know if @mzimmerman ever contacted ceph upstream about this. I don't remember seeing a tracker ticket for it or list email, but Ceph is large enough to easily miss stuff.
If this is important to either of you please contact the cephfs dev team about it and feel free to CC me on the conversation - but since I'm pretty sure that no such API exists today so the conversation would need to start with Ceph.

@darthShadow
Copy link

Raised a feature request: https://tracker.ceph.com/issues/62215

Please feel free to add any details I may have missed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ceph-libs Fix or enhancement needed in ceph libraries
Projects
None yet
Development

No branches or pull requests

3 participants