SimGrid 3.6.2
Scalable simulation of distributed systems
Master/slave Lua application

Simulation of a master-slave application using lua bindings

Code of the application

Master code

as described ine the C native master/Slave exmaple , this function has to be assigned to a m_process_t that will behave as the master.

Lua style arguments (...) in for the master are interpreted as:

Tasks are dumbly sent in a round-robin style.

Slave code

This function has to be assigned to a m_process_t that has to behave as a slave. This function keeps waiting for tasks and executes them as it receives them.

Simulation core

in this section the core of the simulation which start by including the simgrid lib for bindings : require "simgrid"

  1. Simulation settings : simgrid.platform creates a realistic environment
  2. Application deployment : create the agents on the right locations with simgrid.application
  3. The simulation is run with simgrid.run

Its arguments are:


Back to the main Simgrid Documentation page The version of Simgrid documented here is v3.6.2.
Documentation of other versions can be found in their respective archive files (directory doc/html).
Generated for SimGridAPI by doxygen