fengshao0907 / weed-fs

Automatically exported from code.google.com/p/weed-fs
0 stars 0 forks source link

Make Volume Fully Managed and Optional (enhancement) #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the masterless node environment I should be able to add and get a file by 
it's key only without having to supply a volume.

I believe this falls under the category of routing.  If I don't supply a volume 
weed-fs should just be able to "figure it out".

Original issue reported on code.google.com by kevinste...@gmail.com on 27 Nov 2013 at 12:03

GoogleCodeExporter commented 9 years ago
This is possible, but could be slower since all volume servers need to be 
queried for the file key minus the volume id.

What's the most likely use case for it?

Original comment by chris...@gmail.com on 27 Nov 2013 at 12:54

GoogleCodeExporter commented 9 years ago
It's a feature aimed more towards adoption than anything else.  

For many of the scale-out storage projects such as memcache, redis, 
elasticsearch, routing like this is not required, but rather, optional.  Simply 
ask a node in the cluster for the document and you get it.

I hear you on the performance side and would not want to lose any.  Optional is 
good!

Original comment by kevinste...@gmail.com on 27 Nov 2013 at 2:22

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
If hitting any server, for example, if the volume is not on that server, it 
will be redirected.
 curl -L http://localhost:8080/4,2710c2192410

Works for any master server also:
 curl -L http://localhost:9333/4,2710c2192410

Original comment by chris...@gmail.com on 3 Mar 2014 at 4:24