- Follows the memory usage of @latest argo workflow every 5 seconds
- When workflow ends, sends the usage data to
memory_plot.pyfor plotting - Plot of memory and CPU usage is saved in same dir
How to use:
nano ~/.bashrc
# Add this line to the end of the file
export PATH=$PATH:/path/to/WorkflowUtils/memory_scan
Source the file
source ~/.bashrc
If kubectl top pods -n argo does not work, do this
cd /path/to/WorkflowUtils/memory_scan
kubectl apply -f components.yaml
sudo apt install jqSetup python
cd /path/to/WorkflowUtils/memory_scan
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtcd /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/