Skip to content
This repository was archived by the owner on Mar 17, 2020. It is now read-only.

Space reclaiming subprotocol #10

Open
diogohmcruz opened this issue Apr 10, 2017 · 0 comments
Open

Space reclaiming subprotocol #10

diogohmcruz opened this issue Apr 10, 2017 · 0 comments

Comments

@diogohmcruz
Copy link
Owner

The algorithm for managing the disk space reserved for the backup service is not specified. Each implementation can use its own. However, when a peer deletes a copy of a chunk it has backed up, it shall send to the MC channel the following message:
REMOVED <Version> <SenderId> <FileId> <ChunkNo> <CRLF><CRLF>
Upon receiving this message, a peer that has a local copy of the chunk shall update its local count of this chunk. If this count drops below the desired replication degree of that chunk, it shall initiate the chunk backup subprotocol after a random delay uniformly distributed between 0 and 400 ms. If during this delay, a peer receives a PUTCHUNK message for the same file chunk, it should back off and restrain from starting yet another backup subprotocol for that file chunk.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant