Fix Number of Lookups per FileID in FlatDocumentSet FileSharing Application

Home Forums PeerfactSim Forum Fix Number of Lookups per FileID in FlatDocumentSet FileSharing Application

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #738
    Matthias Feldotto
    Guest

    Hello,

    is there any possibility to configure a fix number of lookups per FileID? The FlatDocumentSet has to parameter the files and the size of files, can I adjust it to start exact 20 lookups per published file. At the moment the amount of lookups is not flat as expected. For example File 1 has 60 lookups and File 60 18 lookups during the whole simulation.

    Thank you in advance.

    — Yasin

    #739
    Kalman
    Guest

    That seems to be the relevant part in the code:

    org.peerfact.impl.application.filesharing.documents.FlatDocumentSet

    public int getIdForLookup() { return startRank + rand.nextInt(size); }
    So for your observation following questions occur:
    – What is your action file? Your observation may happen when you have an overlap of store and lookup operations. (which should not be) –> please paste your action file.
    – How is your configuration of the FlatDocumentSet?

    Have you experimented with the getIdForLookup() method, is this the specific point in the code.
    – Can you verify that your DocumentSet is not growing after a storage-time?

    See you

    #740
    Yasin Yazgan
    Guest

    Hello,

    my action file:

    # action file for FileSharing

    all 1s-120m FileSharingApplication:join

    all 120m-180m FileSharingApplication:publishResourcesFromSet files 100

    all 180m FileSharingApplication:lookupResourceFromSetPeriodically files 10m

    Configuration of FlatDocumentFileSet:

    <?xml version=’1.0′ encoding=’utf-8′?>

    <ResourceSpace

    class=”org.peerfact.impl.application.filesharing.documents.DocumentSpace”

    static=”getInstance”>

    <ResourceSet

    class=”org.peerfact.impl.application.filesharing.documents.FlatDocumentSet”

    name=”files” size=”100″ />

    </ResourceSpace>

    I debugged my code and can verify that my document set is not growing during time.

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

Comments are closed.