Process Management: Difference between revisions

From CLONWiki
Jump to navigation Jump to search
Boiarino (talk | contribs)
No edit summary
Boiarino (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
To check running processes:
ipc_check -a clasrun -d "*" -u ipc_procman -w 4
'''NOTE''': make sure ''clascron'' account exist on all machines participating in cron job-based monitoring, and it is in ''onliners'' group. If not, modify ''/etc/passwd'', ''/etc/shadow'' and ''/etc/group'' files using examples from existing machines. Scripts started by cron jobs will use ''ssh -n node ...'' statements so ''clascron'' must be able to ssh. It must be done without password, so login to every machine running related cron jobs (clon10, clon00, clon01) as ''clascron'' and make sure you can ssh to all other machines without password. If necessary, fix ''~/.ssh/known_hosts''.
'''NOTE''': make sure ''clascron'' account exist on all machines participating in cron job-based monitoring, and it is in ''onliners'' group. If not, modify ''/etc/passwd'', ''/etc/shadow'' and ''/etc/group'' files using examples from existing machines. Scripts started by cron jobs will use ''ssh -n node ...'' statements so ''clascron'' must be able to ssh. It must be done without password, so login to every machine running related cron jobs (clon10, clon00, clon01) as ''clascron'' and make sure you can ssh to all other machines without password. If necessary, fix ''~/.ssh/known_hosts''.


Line 5: Line 11:
Directory ''$CLON_PARMS/processes'' contains 6 configuration files for CLON process management system:
Directory ''$CLON_PARMS/processes'' contains 6 configuration files for CLON process management system:


ipc_process_manager.cfg      <- ipc_process_manager(perl script) <- control_ipc_process_manager (csh script)
  ipc_critical_processes.cfg  <- ipc_process_monitor(perl script) <- cronjobs
  ipc_critical_processes.cfg  <- ipc_process_monitor(perl script) <- cronjobs
  ipc_process_manager.cfg      <- ipc_process_manager(perl script) <- control_ipc_process_manager (csh script)
 
To start/stop 'ipc_process_manager':
 
control_ipc_process_manager start clasrun
  control_ipc_process_manager stop clasrun


Currently used components:
Currently used components:
Line 12: Line 23:
  epics_monitor
  epics_monitor
  ipcbank2et
  ipcbank2et
clas_epics_server
  dbrouter
  dbrouter
  alarm_handler
  run_log_update
  alarm_server
 
  alarm_browser
#clas_epics_server
#alarm_handler
  #alarm_server
  #alarm_browser


CLAS-era stuff:
CLAS-era stuff:
Line 27: Line 40:
To watch ipc messages:
To watch ipc messages:


  java clonjava/ipc_monitor -a clasprod
  java clonjava/ipc_monitor -a clasrun

Latest revision as of 12:45, 14 June 2019

To check running processes:

ipc_check -a clasrun -d "*" -u ipc_procman -w 4


NOTE: make sure clascron account exist on all machines participating in cron job-based monitoring, and it is in onliners group. If not, modify /etc/passwd, /etc/shadow and /etc/group files using examples from existing machines. Scripts started by cron jobs will use ssh -n node ... statements so clascron must be able to ssh. It must be done without password, so login to every machine running related cron jobs (clon10, clon00, clon01) as clascron and make sure you can ssh to all other machines without password. If necessary, fix ~/.ssh/known_hosts.

Generic information

Directory $CLON_PARMS/processes contains 6 configuration files for CLON process management system:

ipc_process_manager.cfg      <- ipc_process_manager(perl script) <- control_ipc_process_manager (csh script)
ipc_critical_processes.cfg   <- ipc_process_monitor(perl script) <- cronjobs

To start/stop 'ipc_process_manager':

control_ipc_process_manager start clasrun
control_ipc_process_manager stop clasrun

Currently used components:

epics_monitor
ipcbank2et
dbrouter
run_log_update
#clas_epics_server
#alarm_handler
#alarm_server
#alarm_browser

CLAS-era stuff:

critical_processes.cfg
process_manager.cfg
remote_critical_processes.cfg
sys10_critical_processes.cfg

To watch ipc messages:

java clonjava/ipc_monitor -a clasrun