This patch fixes the interaction of Senlin with the database.
The standard model_query (joinload_all('*')) has been removed
in favor of using more distinctive join statements.
Additionally this patch removes the DB calls that were baked into the
to_dict() method for the Senlin objects and instead retrieves that
data with joins/single database calls. This allows cluster action
show to actually return within an appropriate amount of time.
This patch improves performance all around with considerably less CPU
usage.
Reviewed: https:/ /review. openstack. org/639420 /git.openstack. org/cgit/ openstack/ senlin/ commit/ ?id=9f49cfdfb21 a51f479fe2d548d 67b039ebc217bd
Committed: https:/
Submitter: Zuul
Branch: master
commit 9f49cfdfb21a51f 479fe2d548d67b0 39ebc217bd
Author: Jude Cross <email address hidden>
Date: Tue Feb 26 11:20:21 2019 -0800
Fix Senlin performance issues
This patch fixes the interaction of Senlin with the database.
The standard model_query (joinload_all('*')) has been removed
in favor of using more distinctive join statements.
Additionally this patch removes the DB calls that were baked into the
to_dict() method for the Senlin objects and instead retrieves that
data with joins/single database calls. This allows cluster action
show to actually return within an appropriate amount of time.
This patch improves performance all around with considerably less CPU
usage.
Closes-Bug: #1817604 33941edc130568e 76701ce394c
Change-Id: Ie5c1fca080c828