Created
March 17, 2017 18:49
-
-
Save ehelms/dbd2cf12b6bdd98c15d5487bbcbbd9fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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