| Summary: | Improve ListenOnCandlepinEvents throughput | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Mike McCune <mmccune> | ||||
| Component: | Candlepin | Assignee: | Eric Helms <ehelms> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Roman Plevka <rplevka> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.2.0 | CC: | bbuckingham, bkearney, chrobert, jcallaha, jsherril, mmccune, oshtaier, pmoravec, rplevka | ||||
| Target Milestone: | Unspecified | Keywords: | PrioBumpField, Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | rubygem-katello-3.0.0.91-1 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1405526 (view as bug list) | Environment: | |||||
| Last Closed: | 2017-01-26 10:46:27 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1405526 | ||||||
| Attachments: |
|
||||||
|
Description
Mike McCune
2016-11-30 00:45:02 UTC
Created from redmine issue http://projects.theforeman.org/issues/17498 Upstream bug component is Candlepin Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17498 has been resolved. Created attachment 1243776 [details]
Patch
To reproduce: 1. edit /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.*/lib/katello/engine.rb comment out this line: ::Actions::Candlepin::ListenOnCandlepinEvents.ensure_running(world) (around line 118), so it look like: #::Actions::Candlepin::ListenOnCandlepinEvents.ensure_running(world) 2. restart foreman-tasks 3. Register a bunch of clients, checking: qpid-stat -q --ssl-certificate=/etc/pki/katello/qpid_client_striped.crt -b amqps://localhost:5671 | grep katello_event_queue and you should see the queue message count going up. When it gets up to 1-2 thousand: 4. Uncomment the same line in engine.rb 5. Restart foreman-tasks 6. monitor the qpid-stat command again, you see the count decrease fairly quickly. 1000 messages should be processed in ~10-20 seconds. VERIFIED on sat6.2.7-1 message count in katello_event_queue queue managed to drop from about 2.79k to 27 in about 30seconds. No complications detected Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0197 |