monitor_resources_on_node: Monitor resource use on a single node

View source: R/monitoring.R

monitor_resources_on_nodeR Documentation

Monitor resource use on a single node

Description

To-do: add docs

Usage

monitor_resources_on_node(username_or_command, sleeping_time = 30,
  total_checks = 10, command_maker = function(x) paste0("ps -u ", x,
  " -o pcpu,rss,size,state,time,pid,cmd"), stop_file = NULL)

Arguments

username_or_command

The username you're using to log in to the remote server or, if command_maker is NULL, the command you want to call and check the results of

sleeping_time

time between checks in seconds

total_checks

total number of checks

command_maker

a function that takes in username_or_command or NULL

stop_file

The path of a file where, if present on the node, will cause it to end and return prematurely. A totally hacky way of communicating with the monitoring functions. Wholesome people should not bother with this parameter.


burchill/cs documentation built on May 28, 2023, 1:29 p.m.