Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.
This repository was archived by the owner on May 6, 2020. It is now read-only.

Docker "stats" under CC run doesn't work properly #200

Open

Description

@bktan8

The only stat that updates is the NET I/O. All other stats (CPU %, MEM USAGE, MEM %, BLOCK I/O, PIDS) are 0.

Activity

  1. dlespiau commented on Jun 13, 2017

    @dlespiau
    Contributor

    Indeed. Those stats depend on having cgroups for the containerized workload, which CC replaces by a VM. Note that, in the future, we'll probably add crgoups inside the VM and will be then able to obtain those stats. It's still a bit far out though.

  2. vinay-y commented on Aug 30, 2017

    @vinay-y

    Hi, I am using cc-oci-runtime version: 2.2.4.
    As there are no cgroups, we are unable to monitor cpu/memory utilization of the containers from host machine. Is there any way of monitoring this? One way is to run a daemon within the container which the host can request to give stats. But, can we do it somehow from the host directly? Using cc-shim or something? Can we do this in runtime 3.0?

    Thanks.

  3. grahamwhaley commented on Sep 1, 2017

    @grahamwhaley
    Contributor

    Hi @vinay-y
    If you are looking for just the overall total CPU and memory usage of the container, then you can examine the values for the VM that is holding the container (qemu), and that will give you the total cpu and memory that that container is consuming.
    Using the top command host side (or any other host side memory and cpu analysis tools) should give you a similar set of data to docker stats.
    We are adding feature support to CC3 (such as the 'docker ps' pull request currently pending), but we are in a stabilisation phase heading for release right now, so are pretty much in feature freeze at present.
    Of course, any pull requests adding new features are always more than welcome ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions