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

Issue 772142 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Feature

Blocking:
issue 720219
issue 790844



Sign in to add a comment

Add metrics to container pool

Project Member Reported by kenobi@chromium.org, Oct 5 2017

Issue description

Metrics are needed in order to tune parameters, e.g. 
- max number of concurrent container creations
- size of the container pool


 

Comment 1 by jkop@chromium.org, Dec 5 2017

Owner: jkop@chromium.org
Status: Assigned (was: Untriaged)
Cc: pprabhu@chromium.org dshi@chromium.org kenobi@chromium.org
Labels: -Pri-3 Pri-1
I think this needs to be among the first things we do in rollout. Possibly even before we try to roll out to prod. I got here because I did some sniffing around and was unpleasantly surprised to see that we don't have any metrics instrumentation from the container_pool service. We cannot maintain services or daemons that are not instrumented.

Step 1 of this is to add a SetupTsMonGlobalState context setup in the entry point for container_pool. I believe that is in the lxc_pool_service script. And a tick increment counter in container_pool/service.py 's tick loop.
Labels: -Type-Bug Type-Feature
Cc: jkop@chromium.org
Owner: kenobi@chromium.org
-> kenobi is going to get the ball rolling
Project Member

Comment 5 by bugdroid1@chromium.org, Dec 15 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/9b18c715f9b5b617495ca409cc8c073698307ef7

commit 9b18c715f9b5b617495ca409cc8c073698307ef7
Author: Ben Kwa <kenobi@google.com>
Date: Fri Dec 15 07:57:29 2017

[autotest] Enable container pool metrics.

Step 0: Set up a metrics context, and add a basic tick counter for
checking service aliveness.

BUG= chromium:772142 
TEST=service_unittest.py
TEST=Run lxc_pool_service.py locally; verify that the service starts,
     runs, and shuts down normally.

Change-Id: I528b89385efc608b2ff33a306bd20d49e3360c15
Reviewed-on: https://chromium-review.googlesource.com/825954
Commit-Ready: Jacob Kopczynski <jkop@chromium.org>
Tested-by: Ben Kwa <kenobi@chromium.org>
Reviewed-by: Paul Hobbs <phobbs@google.com>
Reviewed-by: Jacob Kopczynski <jkop@chromium.org>

[modify] https://crrev.com/9b18c715f9b5b617495ca409cc8c073698307ef7/site_utils/lxc/container_pool/service.py
[modify] https://crrev.com/9b18c715f9b5b617495ca409cc8c073698307ef7/site_utils/lxc_pool_service.py

Project Member

Comment 6 by bugdroid1@chromium.org, Dec 20 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/18577ae28c8b4d5e9b279fd597eace3191a26f61

commit 18577ae28c8b4d5e9b279fd597eace3191a26f61
Author: Jacob Kopczynski <jkop@google.com>
Date: Wed Dec 20 20:53:54 2017

container_pool: Add metrics for service

BUG= chromium:772142 
TEST=None

Change-Id: Ifcb22ac279da77126e027ec966da23d362a81c19

[modify] https://crrev.com/18577ae28c8b4d5e9b279fd597eace3191a26f61/site_utils/lxc/container_pool/service.py

Project Member

Comment 7 by bugdroid1@chromium.org, Dec 20 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/4647712c1694e6d98fc1c8eddb228a3ee0c74ccf

commit 4647712c1694e6d98fc1c8eddb228a3ee0c74ccf
Author: Jacob Kopczynski <jkop@google.com>
Date: Wed Dec 20 20:53:49 2017

container_pool: Add metrics for pool itself

BUG= chromium:772142 
TEST=pool_unittest

Change-Id: I83ddf6d6a6890b66e160316193d49cf1ad32fe29

[modify] https://crrev.com/4647712c1694e6d98fc1c8eddb228a3ee0c74ccf/site_utils/lxc/constants.py
[modify] https://crrev.com/4647712c1694e6d98fc1c8eddb228a3ee0c74ccf/site_utils/lxc/container_pool/pool.py

Project Member

Comment 8 by bugdroid1@chromium.org, Dec 21 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/c0be8249c92994acefd2461dd0eb848e7d1b1d67

commit c0be8249c92994acefd2461dd0eb848e7d1b1d67
Author: Jacob Kopczynski <jkop@google.com>
Date: Thu Dec 21 21:14:25 2017

container_pool: Add metrics for container_bucket

BUG= chromium:772142 
TEST=None

Change-Id: I755540c7b41d6e5ac92f9da2f4b7cdbc5387f60c

[modify] https://crrev.com/c0be8249c92994acefd2461dd0eb848e7d1b1d67/site_utils/lxc/container_bucket.py

Comment 9 by kenobi@chromium.org, Dec 22 2017

Cc: -jkop@chromium.org
Owner: jkop@chromium.org

Comment 10 by jkop@chromium.org, Jan 18 2018

Status: Fixed (was: Assigned)

Comment 11 by jkop@chromium.org, Mar 22 2018

Blocking: 790844

Sign in to add a comment