LXC-Web-Panel
LXC-Web-Panel copied to clipboard
Show CPU usage by containers
We can successfully read CPU usage from cgroup cpuacct and show it:
initial commit: 9f2cd598c5927493fb0fcb6bf1ab931092ce562a fix: b070a221d32c1296e8d740c8b81f0fe2eb330664 some html part: 719273a0e1f066f680614fb377423c09ac58fcfa final fix: e47bc570dd4904d1199101c77f7dce718c98fcc0
In the end we read files fast and not call commands. It's solve some my LXC+LVM problems.
Sorry for messing with commits.
Please wait. I'll fix some performance issues.
Ok, thanks for this feature :+1:
- Fixed overwait while calculate containers CPU usage: b7750bc630670b154406e38eef49208804beaa76
- Don't wait them on page load: f8902f988acc8f94da4aea956872feeb9d94492b
- And finally - don't check every container for stopped state - it's useless here: 141ff1daaf1cb6687a589a1b7178f0b0d1ce06e3