Bug 991824
Summary: | watchman's cgroups-trace.log file completely fills up /var in STG | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Thomas Wiest <twiest> |
Component: | Containers | Assignee: | Dan Mace <dmace> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2.x | CC: | bmeng, dmace |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-08-07 22:59:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Thomas Wiest
2013-08-04 16:28:07 UTC
The rhc-watchman logger is now configurable. https://github.com/openshift/origin-server/pull/3285 Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/a3e3dc9bc1d318b0df85fce239333d705febe869 Bug 991824: Make watchman logging configurable via node.conf Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/4af06e3122131b6eadea65771d128d97c3c0deaa Bug 991824: Make watchman logging configurable via node.conf Checked on devenv-stage_438, issue has been fixed. cgroup.log and cgroup-trace.log path are configurable for now. And can show the log with corresponding log level. Move bug to verified. Add some more details about my verification. By default, the cgroup.log in INFO level and cgroup-trace.log in ERROR level. After some apps created, check the cgroup-trace.log under default path. #tailf /var/log/openshift/node/cgroup-trace.log There is nothing generated, since there is no error for this. Add the following lines to node.conf WATCHMAN_CGROUPS_LOG_FILE=/root/cgroup.log WATCHMAN_CGROUPS_LOG_LEVEL=DEBUG WATCHMAN_CGROUPS_TRACE_LOG_FILE=/root/cgroup-trace.log WATCHMAN_CGROUPS_TRACE_LOG_LEVEL=DEBUG Restart libra-watchman service. The new logs are generated under /root/ path. And check the log contents, it will show like following in cgroup-trace.log 5200a038461eb14370000004/cpuacct.usage:0 52d9daf2fe5f11e2bdf222000a8b1dc7/cpuacct.usage:0 72ebd064fe6611e2b04722000a8b1dc7/cpuacct.usage:0 128014944579843512074240/cpu.cfs_quota_us:100000 304472782972067923361792/cpu.cfs_quota_us:100000 3366b0bcfe6611e2b04722000a8b1dc7/cpu.cfs_quota_us:100000 5200a038461eb14370000004/cpu.cfs_quota_us:200000 52d9daf2fe5f11e2bdf222000a8b1dc7/cpu.cfs_quota_us:100000 72ebd064fe6611e2b04722000a8b1dc7/cpu.cfs_quota_us:100000 |