Generator dummy database
Related issue: #521
Currently the lava_db_generator
python module is a part of lava-server
debian package. It should probably be moved to lava-dev
debian package?
The lava_db_generator
module provides two commands: generatedb
and runsimulation
generatedb
can either generate a specific entity like TestJob
with parameters or a specific set of entities under a scenario. For example, there is a scenario for testing scheduler scheduler_test
which generates test jobs that have specific health set to be schedulable.
runsimulation
runs a specific set of commands that can test performance. Currently there is only one simulation: scheduler
. It runs the scheduler code to schedule all the test jobs eligible. This can be used to test scheduler performance. The simulation also patches some of the calls that can affect the state of the system.
Extra generators, scenarios and simulations can be added in the future.