Giter Site home page Giter Site logo

Comments (6)

hongzimao avatar hongzimao commented on July 20, 2024

So for Poisson process (https://www.probabilitycourse.com/chapter11/11_1_2_basic_concepts_of_the_poisson_process.php), the interarrival time of a job is drawn from an exponential distribution. In our example, the mean of this distribution is 45 seconds.

If you asked about the code, the interarrival time is passed through a global parameter: https://github.com/hongzimao/decima-sim/blob/master/param.py#L34-L35. It's used in the job generation process here:

# poisson process
t += int(np_random.exponential(args.stream_interval))

Hope this helps!

from decima-sim.

larissayukimiz avatar larissayukimiz commented on July 20, 2024

I see. So it doesn't generate automatically when I execute the code?

from decima-sim.

hongzimao avatar hongzimao commented on July 20, 2024

Sorry I don't get your question --- what doesn't generate automatically? The job generator is called in the beginning to generate a set of jobs (initial jobs and streaming jobs) in a batch. It just generates the job size and assigns an interarrival time for each of them. The job generator is called here:

decima-sim/spark_env/env.py

Lines 371 to 373 in c010dd7

# generate a set of new jobs
self.job_dags = generate_jobs(
self.np_random, self.timeline, self.wall_time)

from decima-sim.

larissayukimiz avatar larissayukimiz commented on July 20, 2024

Sorry, Mao. I was talking about how you calculated the average interarrival time (where you got the values).

from decima-sim.

hongzimao avatar hongzimao commented on July 20, 2024

It's just a hyperparameter. You can try different values to generate different loads. We just use an interarrival average so that the system load is ~80%. You can calculate the average load using the job distribution (so that you know the average job size) and the average interarrival time (so that you know the total work in a window). The work arrived in a window / server capacity will be the load in percentage.

from decima-sim.

larissayukimiz avatar larissayukimiz commented on July 20, 2024

Ohhh I get it now. So it was on default down here. Sorry for the misunderstanding! And thank you for the explanation!

from decima-sim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.