Fix Number of Lookups per FileID in FlatDocumentSet FileSharing Application

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

  • This topic has 2 replies, 1 voice, and was last updated 9 years ago by Yasin Yazgan.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #738
    Matthias Feldotto


    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


    That seems to be the relevant part in the code:


    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

    Yasin Yazgan


    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′?>






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


    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.