Skip to content

Commit

Permalink
(PE-37114) benchmark: send independent queries (console, etc)
Browse files Browse the repository at this point in the history
Add a "--querier [N:]CATEGORY" option that can be repeated, and will
repeatedly select a random query from the CATEGORY send it to the
configured pdb, and discard the result.  The querier will currently
wait for (rand-int 6) seconds between queries.

When N is given it behaves exactly as if "--querier CATEGORY" had been
specified N times.

The categories and queries are read from the
puppetlabs.puppetdb.sample.queries resource, i.e. they're in
resources/puppetlabs/puppetdb/sample/queries.edn.
  • Loading branch information
rbrw committed Jan 31, 2024
1 parent f2d16c1 commit 797d50b
Show file tree
Hide file tree
Showing 4 changed files with 809 additions and 34 deletions.
Loading

0 comments on commit 797d50b

Please sign in to comment.