timeouts while benchmarking by rally

Bug #1494440 reported by Sergey Skripnick
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ceilometer
Fix Released
High
Liusheng

Bug Description

Tags: db sqlalchemy
Revision history for this message
gordon chung (chungg) wrote :

what event are you trying to query for? the basic idea is that you will only be returned events which are scoped to your project (if admin)

Changed in ceilometer:
status: New → Incomplete
Revision history for this message
Chris Dent (cdent) wrote :

Sergey, one more piece of information (in addition to gordon's request) that might be useful in figuring out what the problem is here: How many events are already stored when the query that is timing out is made?

Gordon, how likely is it that the additional filtering is making the query slow down a significant amount?

Revision history for this message
gordon chung (chungg) wrote :

i don't think it's slowing it down. i think their querying on an event that is probably now restricted.

Changed in ceilometer:
assignee: nobody → Liusheng (liusheng)
status: Incomplete → In Progress
gordon chung (chungg)
Changed in ceilometer:
importance: Undecided → High
milestone: none → liberty-rc1
Revision history for this message
Sergey Skripnick (eyerediskin) wrote :

Here is part of mysql_slow.log:

(Query_time: 153.982554 Lock_time: 0.000407 Rows_sent: 1 Rows_examined: 1224979432)

http://dpaste.com/0FGKW8C

Here is explain:

http://dpaste.com/2S7DHAT

Here can be seen a lot of missing indexes. Also I believe this query may be optimized.

Revision history for this message
Liusheng (liusheng) wrote :
Changed in ceilometer:
assignee: Liusheng (liusheng) → Sergey Skripnick (eyerediskin)
Changed in ceilometer:
assignee: Sergey Skripnick (eyerediskin) → nobody
gordon chung (chungg)
Changed in ceilometer:
assignee: nobody → Liusheng (liusheng)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ceilometer (master)

Reviewed: https://review.openstack.org/222991
Committed: https://git.openstack.org/cgit/openstack/ceilometer/commit/?id=d5860a70720eecb7393f5b3183f898a9b14e0e00
Submitter: Jenkins
Branch: master

commit d5860a70720eecb7393f5b3183f898a9b14e0e00
Author: unknown <email address hidden>
Date: Mon Sep 14 15:16:52 2015 +0800

    Fix the heavy time cost of event-list

    Acorrding the current event-list API, an admin user is allowed to query
    all events which have traits.project_id value that match it's own project
    OR any event without any project_id trait. In get_events() in
    impl_sqlalchemy.py, this current query clause is implemented in a
    inefficient way. This change make it more efficient.

    Co-Authored-By: gordon chung<email address hidden>
    Change-Id: I645a7def0552e2574da540e180b4f57d8770e96e
    Closes-Bug: #1494440

Changed in ceilometer:
status: In Progress → Fix Committed
Revision history for this message
gordon chung (chungg) wrote :

@Sergey, can we confirm the above patched resolved issue? thanks!

Thierry Carrez (ttx)
Changed in ceilometer:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in ceilometer:
milestone: liberty-rc1 → 5.0.0
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.