Skip to content

simulation parameters

Thomas Rausch edited this page Sep 29, 2020 · 2 revisions

The simulation needs the following components, most of which are created by default:

Component Description
Topology (provided) The network topology
Benchmark (provided) The benchmark to run
Environment Simulation environment
Simulator factory Factory that creates FunctionSimulator instances
Container registry Registry that knows about existing container images
Metrics store Trace recording
Cluster context Used by the scheduler
Scheduler The Skippy scheduler instance

Scheduler

The Simulation class creates the skippy Scheduler through a factory method create_scheduler(env: Environment), which you can overwrite:

scheduler_params = {
    'percentage_of_nodes_to_score': 50,
    'priorities': [(1.0, BalancedResourcePriority())]
}

sim = Simulation(topology, benchmark)
sim.create_scheduler = lambda env: Scheduler(env.cluster, **scheduler_params)
sim.run()
Clone this wiki locally