Disable cpu load tracking temporarily.
I'd like to understand its resource usage and improve accuracy before we ship it in an official release.
This commit is contained in:
parent
58f3cd48d5
commit
52d4be1f9e
@ -125,6 +125,8 @@ type manager struct {
|
||||
|
||||
// Start the container manager.
|
||||
func (self *manager) Start() error {
|
||||
// TODO(rjnagal): Skip creating cpu load reader while we improve resource usage and accuracy.
|
||||
if false {
|
||||
// Create cpu load reader.
|
||||
cpuLoadReader, err := cpuload.New()
|
||||
if err != nil {
|
||||
@ -138,9 +140,10 @@ func (self *manager) Start() error {
|
||||
self.loadReader = cpuLoadReader
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Create root and then recover all containers.
|
||||
err = self.createContainer("/")
|
||||
err := self.createContainer("/")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -116,8 +116,8 @@ const containersHtmlTemplate = `
|
||||
<div class="panel-body">
|
||||
<h4>Total Usage</h4>
|
||||
<div id="cpu-total-usage-chart"></div>
|
||||
<h4>CPU Load Average</h4>
|
||||
<div id="cpu-load-chart"></div>
|
||||
<!-- <h4>CPU Load Average</h4>
|
||||
<div id="cpu-load-chart"></div> -->
|
||||
<h4>Usage per Core</h4>
|
||||
<div id="cpu-per-core-usage-chart"></div>
|
||||
<h4>Usage Breakdown</h4>
|
||||
|
@ -1851,9 +1851,10 @@ function drawCharts(machineInfo, containerInfo) {
|
||||
steps.push(function() {
|
||||
drawCpuTotalUsage("cpu-total-usage-chart", machineInfo, containerInfo);
|
||||
});
|
||||
steps.push(function() {
|
||||
drawCpuLoad("cpu-load-chart", machineInfo, containerInfo);
|
||||
});
|
||||
// TODO(rjnagal): Re-enable CPU Load after understanding resource usage.
|
||||
// steps.push(function() {
|
||||
// drawCpuLoad("cpu-load-chart", machineInfo, containerInfo);
|
||||
// });
|
||||
steps.push(function() {
|
||||
drawCpuPerCoreUsage("cpu-per-core-usage-chart", machineInfo, containerInfo);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user