Skip to content

Instantly share code, notes, and snippets.

@ehelms
Created March 17, 2017 18:49
Show Gist options
  • Save ehelms/dbd2cf12b6bdd98c15d5487bbcbbd9fa to your computer and use it in GitHub Desktop.
Save ehelms/dbd2cf12b6bdd98c15d5487bbcbbd9fa to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
def upload_package_profile
puts `rm /var/lib/rhsm/packages/packages.json`
puts `katello-package-upload`
end
100.times do
threads = []
threads << Thread.new { 45.times { upload_package_profile } }
threads << Thread.new { 10.times { upload_package_profile } }
threads.each { |thr| thr.join }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment