Skip to content

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

start_memory_scan.sh

  • Follows the memory usage of @latest argo workflow every 5 seconds
  • When workflow ends, sends the usage data to memory_plot.py for plotting
  • Plot of memory and CPU usage is saved in same dir

How to use:

1. Add the path to this directory in PATH variable

nano ~/.bashrc

# Add this line to the end of the file
export PATH=$PATH:/path/to/WorkflowUtils/memory_scan

Source the file

source ~/.bashrc

2. Check that you have the Kubernetes Metrics Server enabled

If kubectl top pods -n argo does not work, do this

cd /path/to/WorkflowUtils/memory_scan
kubectl apply -f components.yaml

3. Requirements

sudo apt install jq

Setup python

cd /path/to/WorkflowUtils/memory_scan
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

4. Bind the memory scan to your workflow submit command

cd /path/to/FullSimulationArgoWorkflow
mkdir memoryscan

argo submit -n argo cms-simulation-process/run-pp-simulation.yaml && start_memory_scan.sh > memoryscan/scan.log 2>&1 & 

The scanning stops automatically when the workflow stops. Then you can inspect the plots in FullSimulationArgoWorkflow/

About

Tools for running workflows in general. E.g. memory usage scanning scripts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages