Set a number of tasks.

149 views
Skip to first unread message

Sara MAFTAH

unread,
Apr 6, 2021, 6:48:31 AM4/6/21
to EdgeCloudSim
Hello !
How can we set a fixed number of tasks to be executed ? and not generate them randomly.
I want to compare - using sample 3 - the execution of a fixed number of tasks.
Thank you.

Cagatay Sonmez

unread,
Aug 12, 2021, 4:34:44 AM8/12/21
to EdgeCloudSim
Hello,

We usually use a poisson process model for task generation.
Therefore, the default load generator model (IdleActiveLoadGenerator.java) uses exponentially distributed values.
You can use your own load generator model such as FixedLoadGenerator.java that extends the LoadGeneratorModel class.

In your load generation model, you can take advantage of some application properties defined in the applications.xml file.
I guess the following values can be used in your model.
But this is not mandatory, you can also use a completely different business logic.

double poissonMean = SimSettings.getInstance().getTaskLookUpTable()[TaskType][2];
double activePeriod = SimSettings.getInstance().getTaskLookUpTable()[TaskType][3];
double idlePeriod = SimSettings.getInstance().getTaskLookUpTable()[TaskType][4];

6 Nisan 2021 Salı tarihinde saat 13:48:31 UTC+3 itibarıyla sara....@gmail.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages