Long-running Processes/Experiments
Because all machines must and will be rebooted from time to time (e.g. because of updates, power- or network-reconfiguration), you should prepare/configure your processes such that they are able to survive reboots of machines they do not really depend on:
- avoid long-running ssh-connections by using the screen command
- avoid the use of NFS:
- use a local directory as current-working-directory
- use local copies of executables, data and output
- use checkpoints or other techniques that enable interruptible and restartable processing (blcr ?)
- run your experiments with a nice priority so that whenever needed, system maintenance tasks can still perform their normal duty (backup, updates, cron, ...)
- you can start a process nicely with the nice command and can alter the niceness of a running process with the renice command
- ...
To minimize unexpected interrupts on long running experiments, consider to run your experiments on machines that are configured in a maintenance window schema and prepare them to be stopped before and restarted after the maintenance window.
Reboots and Scheduled Down-time
A machine that needs to be rebooted will have the file /cs_reboot_needed with the reason why ... if that file is present, you should not start processes that take more than a couple of minutes to finish ... this applies to all classes of machines.
Some machines will be rebooted automatically and/or without warning, some not (see classes of machines) ... please take care to start processes that need to run for a long time only on machines that are meant for them unless you are prepared to lose the work that has been done.
Scheduled down-time (e.g. for maintenance windows) is announced via the sysplan calendar.
When a reboot is needed and not done because of running user processes, the users whose processes are blocking the reboot, are notified daily. These users then have the following options to get rid of that daily warning:
- if the machine in question is their primary desktop:
- if there are other users running processes on this machine consult with them to find an appropriate time to reboot. All such other users preventing a reboot are shown in the warning mail.
- if there are no such other users or if everybody is OK with a reboot, reboot the machine with:
- either the normal Log-out / Shutdown / Reboot procedure of their desktop-environment. In Gnome and Ubuntu Unity this is under the menu at the top right corner of the screen.
- or the following key sequences:
- first: Ctrl-Alt-F1
- you will be switched to a text console
- then: Ctrl-Alt-Del
- if the machine in question is not their primary desktop and they are running their porcesses via ssh:
- stop these processes in a normal/controlled way as soon as possible so the machine can be rebooted automatically and/or the primary user of that machine can reboot it without interrupting these processes at an unexpected time.
- do not restart these (or other) processes on this machine as long as the file /cs_reboot_needed exists.
/cs_reboot_needed is deleted at each reboot, so if it no longer exists, it is safe to start using the machine again. Moreover, you can verify the last reboot of a machine with:
cs-uptime --verbose
For some machines (e.g. all desktops and servers that are not in a maintenance window schedule and that therefore can be rebooted without advance agreement) a reboot deadline can be set. When that deadline is reached, the machine will be rebooted automatically without further warning and regardless of what processes are running.
The daily notification that is sent to the users will display this deadline, if any. If really, really needed, this deadline can be postponed (but a convincing reason is needed, reboots are not done just for the fun).

