- Notifications
You must be signed in to change notification settings - Fork104
speed up check_rabbitmq_objects: reduce amount of metadata requested#98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Parsing big JSON documents can take a long time, and we only wantthe number of objects. "name" is a valid attribute for allendpoints except bindings, so we ask for "vhost" instead for that case.On our OpenStack using RabbitMQ, CPU time for this check was reducedfrom 52 seconds to 2 seconds.
kjetilho commentedSep 2, 2019
Here are two runs with added instrumentation - the first is the original code. Notice how most time is spent after body was fetched ("is done" is emitted at end of for-loop). And with restricted columns: |
kjetilho commentedDec 4, 2019
I wonder if the Travis CI has been fixed and I could retry the job? I see from the logs that the previous successful test was done in 2017 on a worker running Ubuntu Trusty with RabbitMQ Version 3.6.14 The run above was done on an Ubuntu Xenial worker without RabbitMQ installed. |
Parsing big JSON documents can take a long time, and we only want
the number of objects. "name" is a valid attribute for all
endpoints except bindings, so we ask for "vhost" instead for that case.
On our OpenStack using RabbitMQ, CPU time for this check was reduced
from 52 seconds to 2 seconds.