Re: Swapping and datastore

Matthew Toseland <toad-EI5O+8PHWbJeeLb3ft/[email protected]>
Newsgroups gmane.network.freenet.technical
Message-ID <[email protected]>
On Thursday 20 September 2007 17:37, Jusa Saari wrote:
> What happens to the datastore when a node swaps its position? From what
> I've understood, the requests are routed based on node locations, which
> causes the contents of a node's datastore to reflect its position; if a
> node changes its position to the other side of the position ring, it will
> receive very few requests relevant to its datastore, which means that the
> store will effectively get wiped clean every time the node swaps.
> 
> I tried to look at freenetproject.org for this, but the documentation
> there (http://freenetproject.org/understand.html) seems to be describing
> the routing algorithm which predated NGRouting.
> 
> So, given this, would it make sense to simply delete from the store any
> keys not near the current location after a swap? They can't be accessed
> anyway except by pure luck, and will simply waste store space which could
> otherwise be used to fill the store up with relevant keys.

It's not necessary. They will be automatically deleted when new keys are 
added, in accordance with the Least Recently Used cache replacement 
algorithm. Until new data comes in we may as well keep the old data.

Also I'd expect *generally* that long range swaps occur mostly towards the 
beginning of a node's lifetime, rather than later on.

_______________________________________________
Tech mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/tech
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBG8sUHA9rUluQ9pFARAvhiAKCTm91PkV1GF4jTDl3KH98vDGcPqwCfVc3c
WeDKLjCzrMP2RICXXsxc8CM=
=c4+N
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.