Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • lava lava
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 94
    • Issues 94
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 45
    • Merge requests 45
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • lava
  • lavalava
  • Merge requests
  • !1812

Open
Created Aug 03, 2022 by Igor Ponomarev@igo95862Contributor
  • Report abuse
Report abuse

Generator dummy database

  • Overview 2
  • Commits 40
  • Changes 12

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.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: generate-dummy-db