Commit Graph

58 Commits

Author SHA1 Message Date
Victor Marmol
239f4bad11 Added parent prefix to all Docker containers. 2014-07-23 13:23:27 -07:00
Victor Marmol
2e9176ae64 Fix Docker container slice in systemd systems.
It should be in /system.slice/docker-*.
2014-07-23 07:46:46 -07:00
monnand
99da79b0a9 Merge pull request #104 from vmarmol/fix
Remove lmctfy driver in favor of the raw driver
2014-07-22 21:18:01 -04:00
Victor Marmol
eef8c01e4e Better handle nested containers and libcontainer. 2014-07-22 18:04:08 -07:00
Victor Marmol
07b9ed3244 Remove lmctfy driver in favor of the raw driver 2014-07-22 14:09:42 -07:00
Victor Marmol
e951d03be6 Implement GeSpec() in the simple raw driver. 2014-07-22 13:51:24 -07:00
Vishnu Kannan
a748b53743 Docker ListContainers will work only for the '/docker' container. 2014-07-22 19:55:14 +00:00
Vishnu Kannan
f147996e9d Ignore non '/docker' containers in the docker driver. 2014-07-22 19:55:14 +00:00
Vishnu Kannan
5dfa7b64ba Removed NotActive error message from container package.
Imporved error messages.
2014-07-22 19:55:14 +00:00
Vishnu Kannan
ef13440034 Addressed comments. Another series of bug fixes.
Modified the docker driver and lmctfy driver to skip containers they cannot handle.
2014-07-22 19:55:14 +00:00
Vishnu Kannan
5aae36726f Fixed bugs introduced in previous patches. 2014-07-22 18:58:16 +00:00
Vishnu Kannan
7f96c90c72 Fix raw cgroups handler. 2014-07-22 18:58:16 +00:00
Vishnu Kannan
1edb798de5 Features:
Added Network Stats to Container Info. It still not exposed via the HTTP UI.
Bug fixes:
1. Modified docker handler to use libcontainer.GetStats instead of quering the fs package.
2. cAdvisor will not stall if any of its core operations fail.
3. cAdvisor will safely ignore any inactive or leaked docker containers. When containers are leaked cgroup state exists but docker is not aware of them.
2014-07-22 18:58:16 +00:00
Victor Marmol
a187d74e5b Enable the simple raw driver.
It doesn't yet get the spec, but it is functional enough to use.
This removed the registration of lmctfy, the code will be removed in a
future PR once raw GetSpec() is complete.
2014-07-21 19:02:07 -07:00
Victor Marmol
3854ea6970 Remove cpuset cgroup for listing on raw driver.
Also a couple of fixes/simplifications.
2014-07-21 18:00:55 -07:00
Victor Marmol
4c52e2ea1c Implement ListContainers and no-op GetSpec(). 2014-07-17 14:22:37 -07:00
Victor Marmol
a8863e6367 Initial version of the raw container driver. 2014-07-17 10:45:59 -07:00
Victor Marmol
1636c3e759 Change ContainerHandlerFactories to decide what containers they support.
This allows a ContainerHandlerFactory to register a CanHandle() function
which is called to determine whether the factory can handle a particular
container.

This commit disables being able to run cAdvisor without lmctfy. This
should be enabled again with a "no-op" global factory which I would like
to do in a separate PR.
2014-07-16 16:48:45 -07:00
Victor Marmol
c4c604c278 Handle systemd when it is present. 2014-07-14 10:00:21 -07:00
Nan Deng
018d514981 mock container 2014-07-03 21:03:04 -07:00
Nan Deng
0ade2f1c23 mock container handler 2014-07-03 23:39:08 +00:00
Nan Monnand Deng
304a166d7a working set = usage - inactive 2014-06-27 14:47:02 -04:00
Nan Monnand Deng
875146e396 calculate working set based on #. pages in active LRU. 2014-06-27 13:03:05 -04:00
Victor Marmol
dcedfe3c9d Rename libcontainer.Container -> libcontainer.Config 2014-06-24 14:54:30 -07:00
Nan Deng
3718b139b3 remove StatsPercentiles in container handler 2014-06-17 12:55:51 -07:00
Nan Deng
51eabfcfa7 unit test 2014-06-16 20:49:40 -07:00
Nan Deng
626e2aba09 unit test 2014-06-16 18:06:23 -07:00
Nan Deng
6e98c92693 changing info package to work with storage drivers. 2014-06-16 18:03:01 -07:00
Victor Marmol
fbf6e85fc7 Renaming StatsSummary to StatsPercentiles 2014-06-16 17:49:37 -07:00
Rohit Jnagal
54fbc922a5 Merge remote-tracking branch 'upstream/master'
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-06-16 17:22:48 +00:00
Rohit Jnagal
26a5cdabca Add version information for components we depend on.
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-06-16 17:20:09 +00:00
Victor Marmol
9315d3f690 Adding Apache license to all files missing it 2014-06-15 20:39:22 -07:00
Victor Marmol
410c27a84f Track a container by all of its aliases 2014-06-13 18:24:59 -07:00
Nan Monnand Deng
6250bf3d0f Add ContainerReference() to ContainerHandler(). 2014-06-13 18:18:26 -04:00
Victor Marmol
b9738e6ee6 Switching from using Docker config to libcontainer config for ContainerSpec 2014-06-13 12:06:26 -07:00
Nan Deng
30baa98167 error when GetStats() return nil, nil 2014-06-12 17:37:49 -07:00
Nan Deng
312bcae2db gofmt -r "ContainerRef->ContainerReference" -w -l . 2014-06-12 17:32:46 -07:00
Nan Deng
163179a84e changed pages and manager. 2014-06-12 17:31:26 -07:00
Nan Deng
89b5484734 changed actual handlers 2014-06-12 17:31:26 -07:00
Nan Deng
5a8bceb43e passed unit test 2014-06-12 17:31:26 -07:00
monnand
bd4ecafad8 Merge pull request #32 from vmarmol/switch-libcontainer
Move to using the libcontainer repo directly.
2014-06-12 20:20:44 -04:00
Victor Marmol
e9ed0bfea5 Move to using the libcontainer repo directly.
Return empty stats for / and /docker in the docker driver
2014-06-12 17:11:01 -07:00
Pascal Borreli
8e8b992294 Fixed typos 2014-06-13 00:46:16 +01:00
Nan Deng
39f20bc6a2 remove dontSetTimestamp 2014-06-12 14:37:21 -07:00
Nan Deng
9eeb1c9fc2 static values in unit test 2014-06-12 14:34:36 -07:00
Nan Deng
33b2167434 remove random 2014-06-12 14:33:10 -07:00
Nan Deng
caafb0d7e3 rename 2014-06-12 14:30:44 -07:00
Nan Deng
4728ee80fa incomplete stats is an error 2014-06-12 14:24:04 -07:00
Nan Deng
694f538c7b zero timestamp is an error 2014-06-12 14:21:04 -07:00
Nan Deng
e91283c262 use memory/cpu trace instead of random numbers 2014-06-12 13:43:31 -07:00