Page MenuHomePhabricator

Increase the default batch size of puppet.run()
Open, MediumPublic

Description

puppet.run() uses a batch_size of 10 by default, which seems very conservative. I would suggest raising it to 20 or 25.

https://doc.wikimedia.org/spicerack/v2.2.0/api/spicerack.puppet.html#spicerack.puppet.PuppetHosts.run

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
JMeybohm renamed this task from Increase the default batchsize of puppet.run() to Increase the default batch size of puppet.run().Jun 24 2025, 8:57 AM

Possible related task: T280622

The concern may be that cookbooks running in parallel at the same time could put some strain the puppetservers. Let's maybe not pass the 20 value.

@JMeybohm do you have a specific use case that cannot/is hard to solve simply changing the batch_size of the call to puppet.run()?
https://doc.wikimedia.org/spicerack/master/api/spicerack.puppet.html#spicerack.puppet.PuppetHosts.run

@JMeybohm do you have a specific use case that cannot/is hard to solve simply changing the batch_size of the call to puppet.run()?
https://doc.wikimedia.org/spicerack/master/api/spicerack.puppet.html#spicerack.puppet.PuppetHosts.run

Nope, I just thought a default of 10 is pretty conservative. Feel free to ignore me ofc. :)