Thursday, February 9, 2017

Cluster File Syncing

When a Miranda node connects to a cluster, it checks to see if its cluster file is up to date.  If the remote file is more "up to date" than the local file, the new node downloads the remote file and updates itself.  The new node gets the other cluster nodes and connects to them.

The problem is that the system depends on file modification times to decide which version is more recent.  What if a new node's cluster file was edited more recently than the remote cluster file?  This is not an unreasonable situation since the new nodes's files were probably modified so that the node could "see" at least one other node in the cluster,

What is needed is for the system to have some way to determine the "newness" of a file that doesn't depend on its modification time.

No comments:

Post a Comment