Call of "nodeLookup" instead of "valueLookup" with standard file sharing configu

Home Forums PeerfactSim Forum Call of "nodeLookup" instead of "valueLookup" with standard file sharing configu

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #777
    Yasin Yazgan
    Guest

    Hi,

    when using the standard “FileSharing.xml” configuration the method “nodeLookup” of each node is called instead of the method “valueLookup”.
    The reason is “all 180m FileSharingApplication:lookupResourceFromSetPeriodically files 10m” in “FileSharing.dat” which calls “downloadResource” in “DHTHandler.java” and “downloadResource” calls “nodeLookup”.
    Is this desired? I think after initiating store RPCs with “all 120m-180m FileSharingApplication:publishResourcesFromSet files 100” a “valueLookup” should be initiated and not a node lookup.

    #778
    Matthias Feldotto
    Guest

    Hey,

    as you correctly state, the DHT layer offers two methods: nodeLookup and valueLookup. While valueLookup returns a saved value, etc. (depends on the implementation of the DHT storage), nodeLookup returns the responsible node for a key.

    In the file sharing application, we only want to get the responsible node for a key. In the second step we use a content distribution layer to get the saved content from the responsible node. Therefore, the nodeLookup method ist used. Of course, you can imagine an implementation where the value is used for storage, but in this application we have chosen the described way.

    Regards,
    Matthias

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed.