Commit Graph

16 Commits

Author SHA1 Message Date
Thomas Orozco
2e1f0e2a08 Use a dedicated CpuLoadReader per container
This ensures each goroutine is given its own Netlink connection, and
presumably avoids having a message destined for one goroutine read by
another goroutine.
2016-05-18 09:34:13 +02:00
Thomas Orozco
ee8701aa97 Netlink: aggressively close cgroup fds
Not closing the FDs manually means we have to rely on garbage collection
to run before cgroup FDs are closed. If the system is running a lot of
load probes at a high-frequency (i.e. dynamic housekeeping isn't backing
off because of load variations), we can end up hitting our FD limit due
to keeping around lots of (useless) FDs.
2016-04-13 11:30:48 +02:00
Lei Xue
dbbe38dfed re-order the import package 2015-11-30 16:43:22 +08:00
Victor Marmol
11462d80bc Lowering log levels.
Reduce common logging using Kubernetes logging standards.
2015-04-13 15:05:41 -07:00
Rohit Jnagal
aea95e3228 Remove sched debug based load implementation. 2015-04-10 21:50:55 +00:00
Victor Marmol
54bc33dd2c Lowering log level for frequent events.
Lowering all frequent normal logs to v=3. Kubelet runs by default on
debug of v=2 and we don't want to log these events in that case.
2015-03-09 14:53:53 -07: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
0b7e41c991 Fix typo in netlink example. 2015-01-30 16:56:34 +00:00
Rohit Jnagal
62b02a6b94 Set of fixes for cpuload calculations.
. Remove counting of taskgroups from scheddebug.
. Move monitoring thread 500ms ahead of other containers housekeeping.
. Rely on /proc/loadavg for root load.
. Cover up for scheddebug atomicity issues (WIP)
. Remove counting of monitoring thread.

Getting better, but still a bit farther away from ideal load :(
2015-01-29 22:27:07 +00:00
Rohit Jnagal
c26ca15cc7 Make cpu load stats hierarchical for scheddebug. 2015-01-26 23:48:39 +00:00
Rohit Jnagal
db3d840a9d Prefer scheddebug over netlink for cpu load. 2015-01-26 20:44:12 +00:00
Rohit Jnagal
67af1a1bbd Add scheddebug based cpuload reader.
Prefer netlink based reader when available as it provides stats for
processes in state other than running (sleep, diskio, uninterruptible).
2015-01-26 18:46:29 +00:00
Rohit Jnagal
1375f451b2 Refactor netlink implementation.
This allows us to plug in a scheddebug based interface.
2015-01-23 23:07:50 +00:00
Rohit Jnagal
efa8890132 Add error checks for netlink read. 2015-01-20 06:53:57 +00: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
aeee52161c Add a utility to read cpu load stats. 2015-01-14 00:41:53 +00:00