New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 618827 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit > 30 days ago
Closed: Jun 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Adding or removing an ACL in AFE is very slow

Project Member Reported by haddowk@chromium.org, Jun 9 2016

Issue description

Example code:

>>> afe = frontend.AFE()
>>> hosts = afe.get_hosts(["chromeos4-row1-rack3-host7"])
>>> host = hosts[0]
>>> now = datetime.datetime.now()
>>> host.remove_acl("performance")
Removing ACL performance from host chromeos4-row1-rack3-host7
acl_time = datetime.datetime.now() - now
print "Timing: remove_acl %d secs" % acl_time.total_seconds()
>>> acl_time = datetime.datetime.now() - now
>>> print "Timing: remove_acl %d secs" % acl_time.total_seconds()

Timing: remove_acl 223 secs


Most operations take 1 or 2 seconds.

In a chat with Dan seems like there could be some DB optimizations to improve performance.
 

Comment 1 by autumn@chromium.org, Jun 13 2016

Are you still seeing this? DB changes were made over the weekend, so not sure if this was impacted. 
I can still reproduce the issue:

>>> afe = frontend.AFE()
>>> hosts = afe.get_hosts(["chromeos4-row2-rack9-host19"])
>>> host = hosts[0]
>>> now = datetime.datetime.now()
>>> host.add_acl("performance")
Adding ACL performance to host chromeos4-row2-rack9-host19
acl_time = datetime.datetime.now() - now
print "Timing: remove_acl %d secs" % acl_time.total_seconds()
>>> acl_time = datetime.datetime.now() - now
>>> print "Timing: remove_acl %d secs" % acl_time.total_seconds()
Timing: remove_acl 231 secs

Labels: -current-issue -Pri-2 Hotlist-Fixit Pri-3
Owner: dshi@chromium.org
Status: Available (was: Untriaged)
+dshi any idea why this might be slow? what sort of query / code path are we following?

Comment 4 by dshi@chromium.org, Jul 19 2016

Can't reproduce it now. Maybe some db load issue?
Status: WontFix (was: Available)

Sign in to add a comment