diff --git a/rpm/remove_pyinstaller_MEI.sh b/rpm/remove_pyinstaller_MEI.sh new file mode 100644 index 0000000000000000000000000000000000000000..5939d020faa3268648cf710dfa973ab369f7af4c --- /dev/null +++ b/rpm/remove_pyinstaller_MEI.sh @@ -0,0 +1,13 @@ +#!/bin/bash +echo -e "CleanUpMEI begin..." +num=`/bin/ls /tmp | /bin/grep "MEI" | /usr/bin/wc -l` + +/usr/bin/cd /tmp && /bin/ls /tmp | /bin/grep "MEI" | /usr/bin/xargs -I {} /bin/rm -rf /tmp/{} + +if (/bin/ls /tmp | /bin/grep "MEI"); then + echo -e "Delete _MEI failed" +else + echo -e "Delete _MEI success" + echo "delete $num MEI data" +fi +echo -e "CleanUpMEI over..." diff --git a/rpm/sysak_iomonitor.service b/rpm/sysak_iomonitor.service new file mode 100644 index 0000000000000000000000000000000000000000..fa5a851e65290fc0a7adf052b3fd1d41da7b5bf9 --- /dev/null +++ b/rpm/sysak_iomonitor.service @@ -0,0 +1,15 @@ +[Unit] + Description=sysak iomonitor + After=unity.target + +[Service] + Type=simple + Restart=always + RestartSec=10 + CPUQuota=20% + MemoryLimit=700M + ExecStartPre=/bin/bash /usr/local/sysak/.sysak_components/tools/remove_pyinstaller_MEI.sh + ExecStart=/bin/sysak ioMonitor -s "await=100,iowait=15,util=85,iops=900,bps=524288000,diagIowait=on,diagIoburst=on,diagIolat=on" -y /etc/sysak/base.yaml + ExecStop=kill -9 $(pidof ioMonitor) + ExecReload=kill -1 $(pidof ioMonitor) + TimeoutStopSec=30s