[PDB-1966] Puppetdb load testing doc needs to be updated Created: 2015/09/09  Updated: 2018/09/18  Resolved: 2015/09/22

Status: Closed
Project: PuppetDB
Component/s: None
Affects Version/s: None
Fix Version/s: PDB 3.2.0

Type: Bug Priority: Normal
Reporter: Laura Macchi Assignee: Ryan Senior
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Story Points: 1
Sprint: PuppetDB 2015-09-23

 Description   

I tried following this doc: https://docs.puppetlabs.com/puppetdb/2.3/load_testing_tool.html but no luck.

{{[root@master puppetdb-bak]# /opt/puppet/bin/java -jar /opt/puppet/share/puppetdb/puppetdb.jar benchmark -c /root/puppetdb-bak/config.ini --catalogs /root/puppetdb-bak/catalogs --runinterval 30 --numhosts 1000 --rand-perc 15
Error: Could not find or load main class com.puppetlabs.puppetdb.core}}

I managed to make it work, and I think it does what I intended to, but you should verify my command with an expert:

{{[root@master puppetdb-bak]# /opt/puppet/bin/java -cp /opt/puppet/share/puppetdb/puppetdb.jar clojure.main -m com.puppetlabs.puppetdb.core benchmark -c /root/puppetdb-bak/config.ini --catalogs /root/puppetdb-bak/catalogs --runinterval 30 --numhosts 1000 --rand-perc 15
2015-09-09 14:26:41,860 INFO [c.p.p.c.benchmark] No reports specified; skipping report submission
2015-09-09 14:26:43,769 INFO [c.p.p.c.benchmark] [host-300] submitted catalog
2015-09-09 14:26:46,329 INFO [c.p.p.c.benchmark] [host-284] submitted catalog
2015-09-09 14:26:46,480 INFO [c.p.p.c.benchmark] [host-7] submitted catalog
2015-09-09 14:26:50,082 INFO [c.p.p.c.benchmark] [host-202] submitted catalog}}

I also tested newer PuppetDB versions and ran into the same issue, so several docs need updated.



 Comments   
Comment by Nicholas Fagerlund [ 2015/09/14 ]

Hey Ken Barber, do you think you can get someone on your team to check this and confirm the command?

Generated at Thu Jun 20 03:24:08 PDT 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.