reduce logging in the scheduler to improve performance

Bug #1301515 reported by John Garbutt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
John Garbutt

Bug Description

The current debug logs in the scheduler are at critical points in the code, and are causing performance issues.

After the DB, the scheduler is spending more time doing logging, than anything else.

This was discovered using the test_performance_check_select_destination unit test, and modifying it to look at when there are around 200 hosts, which is still quite a modest size.

Tags: scheduler
Changed in nova:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/84806

Changed in nova:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/84806
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=93f29574c416aebcd1bd7527d3007664aa073766
Submitter: Jenkins
Branch: master

commit 93f29574c416aebcd1bd7527d3007664aa073766
Author: John Garbutt <email address hidden>
Date: Wed Apr 2 17:37:03 2014 +0100

    Reduce logging in scheduler

    The logging in the scheduler is what takes most of the time,
    once you are doing no DB calls.

    This ensures the servicegroup is_up and retry_filter only log
    on failures, which is more in line with the other filters.

    Using the test "test_performance_check_select_destination"
    modifying it to use 200 hosts, the request time went from
    70ms to under 10ms.

    We could reduce logging further, but this minimal change makes
    a massive impact. The next steps would require a config value
    to disable all debug logging in the scheduler.

    Closes-Bug: #1301515

    Change-Id: Ia4c7e506e8df9c560c349e2ebec3f5111aa0cb0d

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-1 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.