From a10381203d920c55732109eb07aae2cf6d3345e8 Mon Sep 17 00:00:00 2001 From: Jim Gauld Date: Wed, 17 Jun 2020 09:20:47 -0400 Subject: [PATCH] Add kube-cpusets to collect This adds kube-cpusets tool to collect_hosts. This displays cpuset and numa node information per kubernetes pod on a given host. Change-Id: I1bd862cc0b1cef3b7997c032108c02b09f2885a1 Story: 2006999 Task: 40106 Depends-On: https://review.opendev.org/723808 Signed-off-by: Jim Gauld --- tools/collector/scripts/collect_host | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/collector/scripts/collect_host b/tools/collector/scripts/collect_host index e94177ac..dd5709ac 100755 --- a/tools/collector/scripts/collect_host +++ b/tools/collector/scripts/collect_host @@ -183,6 +183,10 @@ function collect_extra() delimiter ${LOGFILE} "ps -eL -o pid,lwp,ppid,state,class,nice,rtprio,priority,psr,stime,etime,time,wchan:16,tty,comm,command" ps -eL -o pid,lwp,ppid,state,class,nice,rtprio,priority,psr,stime,etime,time,wchan:16,tty,comm,command >> ${LOGFILE} + # Collect per kubernetes container name, QoS, and cpusets per numa node + delimiter ${LOGFILE} "kube-cpusets" + kube-cpusets >> ${LOGFILE} + # Various host attributes LOGFILE="${EXTRA_DIR}/host.info" echo "${hostname}: Host Info .........: ${LOGFILE}"