iwankgb
854445c010
Carefully fixing style ( #2509 )
...
* Use golangci-lint to add lint presubmit test, and fix linter errors
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-22 16:26:36 -07:00
iwankgb
0dd4098374
golanci-lint based cleanup ( #2503 )
...
* Cleanups based on linter
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
2020-04-20 10:53:19 -07:00
Davanum Srinivas
94508e8a2f
Switch to klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-04-09 22:54:37 -04:00
David Ashpole
60d438652e
Merge pull request #2228 from dashpole/code_safe_changes
...
Fix code safe linter errors
2019-09-05 14:11:54 -07:00
Lorenz Brun
1493d8af7d
Remove cgo use and lots of ad-hoc defined kernel constants
2019-05-13 03:04:26 +02:00
David Ashpole
6bc176e3ef
fix code safe linter errors
2019-04-25 13:05:46 -07:00
Davanum Srinivas
4da6d809be
Move from glog to klog
...
Change-Id: Ic92f57c2d7f268d8d985797974883c1a537d6993
2018-11-08 18:06:28 -05:00
Tim Allclair
5b435b4b70
Clean up cAdvisor logging
2017-11-27 19:48:05 -08:00
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