[chord] question about chord

Emil Sit sit at mit.edu
Wed Mar 31 23:00:05 EDT 2010


2010/3/26 侯婕 <houhou1983 at 163.com>:
> However, the input "923833ed20b09b7583ebbc25999602374dda00f3" is so long and
> unfriendly.
> Can I use the readable file name instead of the long string?

Not using the current filestore mapping.  And not using content hash blocks.
You could imagine perhaps using NOAUTH blocks (if they're working in
the current implementation) with some sort of namespace qualifier +
the filename as the key and the inode hash (9238333...) as the value
to have the DHT handle indirection.

> Recently, I have a task. The goal is to use DHT to store millions mappings,
> i.e. host name ~ ip address.
> So I want to get the corresponding ip address when I input the host name. If
> the the file fetching process can't use the file name,

You can use the approach I outlined above.

You might want to look at
http://www.cs.cornell.edu/People/egs/beehive/codons.php

Also, would a NoSQL system such as Redis or Cassandra better serve
whatever application you are trying to implement?

-- 
Emil Sit / http://www.emilsit.net/



More information about the chord mailing list