Fix Number of Lookups per FileID in FlatDocumentSet FileSharing Application

28 views
Skip to first unread message

Yasin Yazgan

unread,
Feb 2, 2014, 10:55:06 AM2/2/14
to peerfac...@googlegroups.com
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

Kalman

unread,
Feb 2, 2014, 3:08:45 PM2/2/14
to peerfac...@googlegroups.com

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 

Yasin Yazgan

unread,
Feb 2, 2014, 6:22:33 PM2/2/14
to peerfac...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages