[Gluster-users] Hook into Change
Prashanth Pai
ppai at redhat.com
Wed Dec 31 03:26:03 UTC 2014
You can find the doc here:
https://github.com/gluster/glusterfs/blob/master/doc/features/geo-replication/libgfchangelog.md
Please have a look at the following examples (C and Python):
https://github.com/gluster/glusterfs/tree/master/xlators/features/changelog/lib/examples
Geo-replication is a consumer of changelog:
https://github.com/gluster/glusterfs/tree/master/geo-replication/syncdaemon
The swiftonfile project was exploring option of consuming changelog to get file change notifications. It was later abandoned. Here's sample code (Python):
https://github.com/prashanthpai/sof-object-listing/tree/master/changelog
Regards,
-Prashanth Pai
----- Original Message -----
From: "Jason M. Kiebzak" <jk3149 at cumc.columbia.edu>
To: gluster-users at gluster.org, gluster-users-request at gluster.org
Sent: Wednesday, December 31, 2014 1:07:06 AM
Subject: [Gluster-users] Hook into Change
Hello all,
I’d like to write something which will hook into the Change Log Translator. I’d like to write my own consumer.
http://gluster.org/community/documentation/index.php/Arch/Change_Logging_Translator_Design
Can anyone give me direction to an example and/or API of this? I did find this:
https://forge.gluster.org/glusterfs-quota/glusterfs-quota/commit/11f6c56f83b977a08f9d74563249cef59e22a05d/diffs
I also know that once you enable changelog for a volume, you can accesss the logs in .glusterfs/changelogs. But there is very little to explain format of these logs.
Thank you
Jason
_______________________________________________
Gluster-users mailing list
Gluster-users at gluster.org
http://www.gluster.org/mailman/listinfo/gluster-users
More information about the Gluster-users
mailing list