Victor Marmol
86dd6cc99d
Merge pull request #706 from rjnagal/docker
...
Add 'bytes available' to fs info.
2015-05-11 15:12:37 -07:00
Rohit Jnagal
e43ada2e00
Add 'bytes available' to fs info.
...
The current capacity and usage numbers are insufficient to figure out
actual bytes available for a non-root user for the fs. Available is the
value used by df and the one we need to track to detect low diskspace
condition.
2015-05-11 19:27:40 +00:00
Victor Marmol
757ad9e1ae
WorkingSet should use inactive file
2015-05-11 09:49:29 -07:00
Victor Marmol
8928d487de
Min working set should be 0.
...
Fixes #685
2015-05-11 09:49:23 -07:00
Rohit Jnagal
4b4312b290
Improve approximation of container creation time.
...
Containers with subcontainers always report creation time to be same as the time
of creation of the latest subcontainer.
Still not an ideal solution, but accurate for most practical purposes.
2015-05-07 18:14:54 +00:00
Victor Marmol
1a1a1faa7e
Update inotify dependency.
2015-05-04 10:15:21 -07:00
Victor Marmol
a7a7aacebc
Add flags to customize the events StoragePolicy.
2015-05-01 12:04:11 -07:00
Victor Marmol
1e09f9012d
Adding container labels
2015-04-30 23:09:03 -07:00
Rohit Jnagal
d0424eca0f
Add --docker_only flag to enable tracking for only docker containers and root.
...
This reduces unnecessary load on the system and also cleans up the UI clutter.
Currently defaulted to false.
2015-04-30 23:34:44 +00:00
Victor Marmol
11462d80bc
Lowering log levels.
...
Reduce common logging using Kubernetes logging standards.
2015-04-13 15:05:41 -07:00
Rohit Jnagal
dfcc05a953
Fix networking stats by switching Tx and Rx stats.
...
A better fix is to directly use stats collected by libcontainer.
2015-04-13 17:01:06 +00:00
Victor Marmol
64c0d3d8c3
Migrating cAdvisor to new libcontainer.
...
Backwards compatability is maintained with older versions of
libcontainer.
2015-04-10 14:51:29 -07:00
Victor Marmol
e97e203d76
Adding translation layer for pre-API libcontainer configs.
2015-04-10 14:51:29 -07:00
Clayton Coleman
9ce178f707
Lazily init DBus only when it is needed
...
OpenShift has some cAdvisor packages in its import chain. The init() here
invokes Dbus start even when cAdvisor is not actively running or being
used (in our packages). This change makes the systemd check and dbus
initialization and connection lazy, occuring only the first time someone
invokes UseSystemd().
2015-03-19 16:35:48 -04:00
Rohit Jnagal
e685067a04
Merge pull request #579 from vmarmol/master
...
Start() exits gracefully when there are no factories.
2015-03-11 23:24:16 -07:00
Victor Marmol
ffdb6f5c7d
Start() exits gracefully when there are no factories.
...
This allows us to handle the case where there are no factories as
happens when testing in a non-container environment. We will still serve
the machine information that is available.
2015-03-11 21:22:16 -07:00
Rohit Jnagal
a0a419614f
Add /storage endpoint to 2.0 API.
...
/storage returns {device, mountpoint, capacity, usage} for all filesystems.
In addition, it also detect and applies label for each filesystem - currently two - "root", "docker-images".
/storage/<label> returns info about the filesystem with specific label. eg. /storage/root returns info for root filesystem.
2015-03-11 01:49:58 +00:00
Rohit Jnagal
872546ba3a
Bulk move current info api to info/v1. Making room for info/v2.
2015-03-04 00:47:28 +00:00
Rohit Jnagal
e09f9684e6
Fix cpuset returned in spec on a single core machine.
...
Switch from "0-0" to "0".
2015-02-19 18:54:23 +00:00
Victor Marmol
131a0c21ea
Detect Docker containers by asking the Docker.
...
No longer do deduction from the cgroup path (only to get the Docker
container ID).
Fixes #450 .
2015-02-06 09:15:59 -08:00
Victor Marmol
45ba276ae8
Add container creation time to ContainerSpec.
2015-02-05 09:52:10 -08:00
Victor Marmol
86238d0179
Allow partial success of GetStats().
...
This should make us more robust in the face of failure (at the cost of
making the failures less prominent). We allow GetStats() to return an
error and a partial result. We will process the result and report the
error.
Fixes #306 .
2015-02-03 15:26:31 -08:00
Victor Marmol
01b456c129
Fix detection of AUFS layers.
...
We were using the container name instead of the Docker ID which breaks
in systemd systems.
Fixes #475 .
2015-02-03 10:06:19 -08:00
Vishnu Kannan
aedf42ba8c
Adding 'HasDiskIo' to Container Spec to indicate if diskio stats are available for a given container.
2015-01-20 05:06:57 +00:00
Arkadi Shishlov
fe7df00aec
Add blkio cgroup to list of supported subsystems
2015-01-17 17:09:35 +02:00
Victor Marmol
909fa133e1
Merge pull request #445 from rjnagal/docker
...
Add task load stats to containers.
2015-01-16 16:00:50 -08:00
Rohit Jnagal
cbdd96a554
Add task load stats to containers.
...
The stats are only populated when cAdvisor is running outside network namespaces.
We'll add a different backend to retrieve the same data from within namespaces.
2015-01-16 23:25:22 +00:00
Rohit Jnagal
ed155019ac
Verify and fix error message nit :)
2015-01-14 01:15:13 +00:00
Rohit Jnagal
55fceed402
Add some more missing copyrights and script to verify copyright.
...
Add to travis next.
2015-01-09 19:31:25 +00:00
Victor Marmol
adfccb7c1c
Updating to latest libcontainer.
2015-01-08 12:15:03 -08:00
Rohit Jnagal
3df5d4f08d
Merge pull request #419 from vmarmol/cleanup
...
Cleanup of libcontainer state generation.
2015-01-05 14:25:20 -08:00
Victor Marmol
4e3629101d
Cleanup of libcontainer state generation.
2015-01-05 13:47:35 -08:00
Victor Marmol
643d647761
Gofmt all files.
2015-01-05 11:26:23 -08:00
Vish Kannan
54834156eb
Merge pull request #407 from rjnagal/diskinfo
...
Add network stats to root container.
2015-01-02 10:06:11 -08:00
Vish Kannan
5897f3e970
Merge pull request #410 from rjnagal/docker
...
Fix vet errors
2015-01-02 09:59:01 -08:00
Rohit Jnagal
aee5c36313
Fix vet errors
2015-01-01 22:41:55 +00:00
Rohit Jnagal
45334c6f71
Add network stats to root container. Provides machine-level networking stats.
2014-12-30 17:12:42 +00:00
Rohit Jnagal
cdd355421f
Add check for state directory to validator.
2014-12-28 18:04:32 +00:00
Rohit Jnagal
275b3ed653
Don't use state.json from libcontainer to get cgroup paths.
...
This confuses cadvisor on systems where cadvisor doesn't see cgroup mounts at the same place as root namespace view.
2014-12-24 00:25:11 +00:00
Victor Marmol
6ad13d126b
Check filesystem before accessing it in UI.
...
Fixes #377 .
2014-12-18 16:09:50 -08:00
Victor Marmol
7ca63db2c5
Handle old versions of the libcontainer config.
...
Libcontainer recently changed its config by changing the type of a
field. This commit tries parsing the config as the new and old types.
2014-12-16 17:52:44 -08:00
Rohit Jnagal
8eec529106
Merge pull request #358 from vmarmol/update-libcontainer
...
Update libcontainer dependency
2014-12-15 17:01:44 -08:00
Victor Marmol
91c974e913
Generate CgroupPaths when not available.
...
This happens always for non-Docker containers and sometimes with older Docker
containers.
2014-12-15 16:57:30 -08:00
Victor Marmol
084e809507
Merge pull request #356 from rjnagal/rename
...
Add systemd information to validate output.
2014-12-16 07:35:30 +08:00
Rohit Jnagal
4ec9894ea2
Add systemd information to validate output.
2014-12-15 23:26:30 +00:00
Victor Marmol
0123fe1d07
Merge pull request #355 from rjnagal/syst
...
Fix Docker handler for machines that use systemd just as a naming service
2014-12-16 07:07:42 +08:00
Eric Paris
b74d2c6296
update to support newest libcontainer update
2014-12-15 15:00:45 -08:00
Rohit Jnagal
f585e4bc5e
Fix Docker handler for machines that use systemd just as a naming service without controlling cgroups.
2014-12-15 22:58:44 +00:00
Rohit Jnagal
1953bd0e94
Bump minimum docker supported version to 1.0.
2014-12-15 16:57:22 +00:00
Victor Marmol
cb0387b41e
Try to detect systemd by checking for its named cgroup hierarchy.
...
Fixes #342
2014-12-11 17:30:33 -08:00
Victor Marmol
ff9a4995a1
Report error while fetching network stats.
2014-12-10 13:26:42 -08:00
Victor Marmol
18e9394dbc
Adding runtime options docs.
...
Also some cleanups of other docs.
2014-12-04 09:16:30 -08:00
Victor Marmol
e3ab15417c
Ignore update errors for dead containers.
...
This adds an Exists() interface to detect when the container is dead.
Before reporting an update error we check is Exists() is true.
Some documentation was added as well.
2014-11-22 05:31:11 +08:00
Vish Kannan
c005bc1722
Merge pull request #326 from vmarmol/integration
...
Register inotify watches on all cgroup hierarchies.
2014-11-21 09:11:10 -08:00
Victor Marmol
fa00344601
Register inotify watches on all cgroup hierarchies.
...
We used to only register them on the first hierarchy that was created (I
think this was unintentional). This caused some weird edgecases where
we'd try to delete a watch event we didn't create. It is an error we
ignore today (since we fix it in < 60s) but delays our destruction of
the container.
2014-11-21 20:05:50 +08:00
Rohit Jnagal
6885e0c8f2
Merge pull request #320 from vmarmol/docker-raw
...
Let the raw driver handle the /docker container.
2014-11-19 22:40:06 -08:00
Victor Marmol
0e603d2709
Let the raw driver handle the /docker container.
...
This will give us stats on this container and since the /docker UI
endpoint, it no longer serves the purpose it once did.
2014-11-20 06:44:35 +08:00
Victor Marmol
fc622a4b56
Fix raw driver's setting of CPU mask.
...
We used to include it with the trailing "\n" which gave us parsing
errors in the UI (and the reason why they didn't show up in any of those
containers).
2014-11-20 06:32:54 +08:00
Victor Marmol
f97e57df88
Simplify how the Docker containers are handled.
...
This is done by introducting the concept of "namespaces" of container
names. The aliases of a container are under this namespace. Namespace
names are of the form:
//<namespace>/<alias>
This allows us to (within cAdvisor) query all docker containers as
//docker regardless of whether this is a systemd or a non-systemd system.
This does break our ability to handle Docker aliases with the /container
endpoint. I think this is acceptable as our support there was not
consistent between system types.
2014-11-12 18:01:47 -08:00
Vish Kannan
4910466050
Merge pull request #296 from vmarmol/docker
...
Add /docker/ UI endpoint.
2014-11-12 09:48:52 -08:00
Victor Marmol
6e89bdef9f
Add /docker/ UI endpoint.
...
Fixes #294
2014-11-07 08:53:52 -08:00
Vish Kannan
26921c3643
Merge pull request #277 from vmarmol/flat
...
Flatten ContainerStats struct
2014-11-05 11:26:10 -08:00
Victor Marmol
e695c3820e
Only overwrite the Name and Parent in the libcontainer Cgroup.
...
Fixes #287
2014-10-29 11:41:23 -07:00
Abin Shahab
e6406ef6d0
Additional blkio stats
...
This adds blkio.io_wait_time, blkio.io_service_time, blkio.io_merged, and blkio.time to the api
2014-10-21 22:41:33 +00:00
Abin Shahab
7133ab0f7d
gofmt all files
2014-10-21 05:23:23 +00:00
Abin Shahab
48129c03d1
code review fixes
2014-10-21 05:19:24 +00:00
Victor Marmol
add5147769
Flatten ContainerStats struct
2014-10-20 11:17:20 -07:00
Abin Shahab
e8ea485a0d
Gofmt all files
2014-10-19 23:39:04 +00:00
Abin Shahab
e9d6289964
Added /proc/diskstats
...
Read disk io information from /proc/diskstats.
This will allow the user who provides partition container hints to get partition-specific io (blkio provides io for the container, but at the disk device level).
2014-10-19 23:36:08 +00:00
Rohit Jnagal
b1796da270
Merge pull request #278 from vmarmol/docker-api
...
Add API version v1.2 with /docker endpoint.
2014-10-21 09:58:32 -07:00
Victor Marmol
8aa05b0c39
Add API version v1.2 with /docker endpoint.
...
The /docker endpoint lists all Docker containers under one unified
namespace.
2014-10-20 22:24:01 -07:00
Abin Shahab
6b267575ad
Renamed mount and removed dead code
2014-10-17 16:26:33 +00:00
Abin Shahab
751de4a0c9
code review fixes
2014-10-16 02:55:39 +00:00
Abin Shahab
b8ed0bd0e3
Mounted partitions space usage metrics per container
...
This computes the space usage for mounted partitions. It takes in a list of mounted partitions from containerHints
and computes the device's disk usage(so each mount must be a separate partition). This is useful for users who
mount partitions on containers and store most of the container's persistent data on those partitions.
2014-10-15 19:01:38 +00:00
Abin Shahab
c4d663c6ab
minor fixes and gofmt
2014-10-15 11:10:54 +00:00
Abin Shahab
f170df0a76
Spec consistency
2014-10-15 07:58:58 +00:00
Abin Shahab
9264114895
some more renames
2014-10-14 23:19:46 +00:00
Abin Shahab
4c740cbc54
matches with the full path of the container
2014-10-14 20:01:44 +00:00
Abin Shahab
99d2c31f4d
Renamed container description types
2014-10-14 20:01:44 +00:00
Abin Shahab
07fbd1ddab
Fixed formatting
2014-10-14 20:01:44 +00:00
Abin Shahab
a02b7f1620
Added network stats to raw handler
...
Raw handler now parses an optional json file with the network interface information, and emits network stats.
2014-10-14 20:01:44 +00:00
Abin Shahab
e038729d67
Updated import and comments
2014-10-14 20:01:44 +00:00
Abin Shahab
808fd821ac
NetworkInterface now contains both VethHost and VethChild
2014-10-14 20:01:44 +00:00
Abin Shahab
d009264986
LXC Factory and Handler
...
This factory and handler can retrieve memory, cpu, diskio, and network information of lxc containers.
The handler can be passed additional container information(e.g. network interface) using a cdesc.json file
2014-10-14 20:01:44 +00:00
Vishnu Kannan
0699e7029d
Avoid storage usagge calculations when aufs driver is not being used.
2014-10-07 11:48:10 +00:00
Vishnu Kannan
5e8fecea6a
Adding filesystem usage calculation for docker containers. This patch also includes some internal refactoring.
...
'machine' api now exports a list of all existing 'ext*' filesystems along with the capacity.
2014-10-06 09:51:32 +00:00
Vishnu Kannan
c21ff1f166
Adding a disk usage progress bar.
2014-10-01 00:28:01 +00:00
Vishnu Kannan
b9e70f0240
Filesystem stats are now per container. As of now, fs stats are reported only for the
...
root cgroup.
To make cadvisor detect all the disks, the rootfs of host needs to mounted
inside cadvisor.
2014-09-30 23:48:34 +00:00
Vishnu Kannan
946b18f789
Adding filesystem usage information to MachineInfo.
2014-09-29 23:24:06 +00:00
Vish Kannan
1ed9d122c1
Merge pull request #220 from vmarmol/coreos
...
Fix name resolution in Systemd systems
2014-09-29 11:28:23 -07:00
Satnam Singh
7ddc75c41b
Squashed commit of the following:
...
commit 6bf9fe89f6
Author: Satnam Singh <satnam@google.com>
Date: Fri Sep 26 10:23:16 2014 -0700
Change error to warning during handling check.
commit c580907183
Author: Satnam Singh <satnam@google.com>
Date: Fri Sep 26 10:21:41 2014 -0700
Decapatalise fmt.Errorf error messages.
commit 3ecc5745d6
Author: Satnam Singh <satnam@google.com>
Date: Fri Sep 26 10:19:15 2014 -0700
Fix misunderstanding about when CanHandle fails.
commit adce0c5433
Author: Satnam Singh <satnam@google.com>
Date: Fri Sep 26 10:13:32 2014 -0700
Change the interface of CanHandle to return error information.
2014-09-26 18:06:58 -07:00
Satnam Singh
1a9d2298dc
And yet another if.
2014-09-24 11:07:48 -07:00
Satnam Singh
8551d376d8
Undo changes to if statements as requested by vmarmol. Fix typos in my changes.
2014-09-24 10:59:18 -07:00
Satnam Singh
bae82a583d
A few minor Go style suggestions.
2014-09-24 10:53:52 -07:00
Victor Marmol
ebf231e4df
Fix name resolution in Systemd systems
2014-09-23 20:01:35 -07:00
Rohit Jnagal
932d2a6959
Merge pull request #251 from vmarmol/shutdown
...
Supporting graceful signal shutdown.
2014-09-23 14:28:39 -07:00
Victor Marmol
6f35cf8e6c
Supporting graceful signal shutdown.
...
Adding a signal handler and gracefully shutting down all threads.
2014-09-23 14:13:58 -07:00
Victor Marmol
e929ffd846
Merge pull request #247 from rjnagal/diskio
...
Add diskio stats to cAdvisor.
2014-09-22 17:40:31 -07:00
Rohit Jnagal
6aee4c03b0
Flatten diskio stats and use struct key.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-09-22 23:24:34 +00:00
Rohit Jnagal
9a76da9993
Add diskio stats to cAdvisor.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-09-22 22:48:59 +00:00
Vish Kannan
195772a1bc
Merge pull request #245 from vmarmol/tests
...
Refactor and dependency inject containerData deps
2014-09-22 10:39:55 -07:00
Victor Marmol
e759059a09
Refactor and dependency inject containerData deps
2014-09-22 10:20:54 -07:00
Victor Marmol
e22831f1bd
Flatten ContainerSpec.
2014-09-19 10:14:22 -07:00
Victor Marmol
100170beca
Wording changes to SubcontainerEvent comments
2014-09-18 12:56:01 -07:00
Victor Marmol
c326475ede
Remove unused filter ContainerHandlers.
2014-09-18 12:52:09 -07:00
Victor Marmol
b63d61ca97
Use inotify to watch for new containers.
...
This reduces cAdvisor CPU usage below 1% in my CoreOS system.
We also reduce global housekeeping to every 60s as a fallback in case we
miss an event.
2014-09-18 12:52:09 -07:00
Victor Marmol
f9c45094ab
Only register the Docker driver in systems using libcontainer.
2014-09-05 13:37:18 -07:00
Victor Marmol
b75dea4021
Adding --docekr_root to customize where Docker stores state.
...
Fixes #199
2014-08-29 14:54:40 -07:00
Vishnu Kannan
3e390e0f33
Use glog instead of 'log' library.
...
Docker-DCO-1.1-Signed-off-by: Vishnu Kannan <vishnuk@google.com> (github: vishh)
2014-08-07 18:38:58 +00:00
Victor Marmol
00f4f840ea
Move from filepath -> path for Join.
2014-08-03 10:06:39 -07:00
Victor Marmol
56054e3e31
Remove SplitName().
...
This is possible thanks to the new libcontainer interface that allows
the use of absolute paths.
2014-08-02 11:36:10 -07:00
Victor Marmol
fe23ba6d60
Merge pull request #140 from monnand/test-libcontainer
...
unit test for SplitName()
2014-07-29 08:32:03 -07:00
Nan Monnand Deng
fb5074a2f1
unit test for SplitName()
2014-07-29 01:52:59 -04:00
Nan Monnand Deng
d6551d888b
list processes
2014-07-29 01:20:19 -04:00
Nan Deng
afc84e85c3
use init's cgroup to get nest level
2014-07-28 18:13:54 -07:00
Victor Marmol
7a3f7b9a29
Return an empty state for old versions of Docker.
...
Fixes #127 .
2014-07-25 08:20:55 -07:00
Victor Marmol
5812f10db0
Merge pull request #117 from rjnagal/cpumask
...
Handle cpumask in raw driver for unified hierarchy.
2014-07-24 11:36:01 -07:00
Rohit Jnagal
f5fde119f8
Grab a new spec.Cpu while updating masks if cpu root didn't exist.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-07-24 18:23:04 +00:00
Rohit Jnagal
b120cee75c
Handle cpumask in raw driver for unified hierarchy.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-07-24 17:53:38 +00:00
Victor Marmol
4d1291cf93
Merge pull request #116 from rjnagal/cpumask
...
Fix handling of cpumask for docker driver
2014-07-24 08:46:59 -07:00
Rohit Jnagal
1fa48e8c39
Fix handling of cpumask for docker driver. Raw driver still reports all
...
cpus. Will fix it to read cpumask for cgroup seperately.
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-07-24 01:50:32 +00:00
Victor Marmol
0126cec903
Don't fail ListContainers() on missing cgroup hierarchies.
2014-07-23 17:59:57 -07:00
Vish Kannan
6213f8b0c3
Merge pull request #107 from vmarmol/full-names
...
Added parent prefix to all Docker container and aliases.
2014-07-23 16:05:25 -07:00
Vishnu Kannan
41d9275b51
Fixed network stats handling. The UI now reports network errors.
2014-07-23 22:24:43 +00:00
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