It is not written to be pleasant to read, but instead to resist the aggressions of the monkey:
- Workers keep going until after a global variable `todo` reaches 0.
- The master is a daemon that just sends infinitely tasks
- (simgrid simulations stop as soon as all non-daemon actors are done).
+ (SimGrid simulations stop as soon as all non-daemon actors are done).
- The platform is created programmatically to remove path issues and control the problem size.
See the simgrid-monkey script for more information.
for i in range(1, host_count):
link = rootzone.create_split_duplex_link(f"link {i}", "1MBps").set_latency("24us")
host = rootzone.create_host(f"lilibeth {i}", 1e9)
- rootzone.add_route(main.netpoint, host.netpoint, None, None, [LinkInRoute(link, LinkInRoute.Direction.UP)], True)
+ rootzone.add_route(main, host, [link])
Actor.create("worker", host, worker, i).set_auto_restart(True)
e.netzone_root.seal()