Difference between revisions of "Daemons"
(Created page with "According to Wikipedia, as daemon is "is a computer program that runs as a background process, rather than being under the direct control of an interactive user."[http://en.wi...") |
|||
(20 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category:Linux]] | |
− | + | {{Note |'''The daemon server will be decommissioned on Oct. 1, 2024. Please see the [[SCRON]] page for using that.'''|warn}} | |
+ | ==Overview== | ||
+ | The daemon server provides UF Research Computing users with the space and resources to run long-running processes that ''do not require a lot of computational power''. Please remember that these types of processes cannot be run on the login servers. | ||
− | + | Daemon processes run in the background of a system rather than under the direct control of an interactive user. There are many uses for daemon tasks, from polling the batch system to collecting data from external sources. Daemon tasks are usually long-running or scheduled to run recurrently. They are also characterized by a small computational footprint (i.e., low average CPU and RAM usage). '''Daemon processes should not use 100% of a CPU for extended periods and such processes will be killed without warning.''' | |
− | Access to the daemon server | + | ==Access to the daemon server== |
− | + | Connect to the cluster (hpg.rc.ufl.edu) and use the ssh command to access the daemon server. | |
+ | <pre>ssh daemon</pre> | ||
+ | |||
+ | The daemon node is not accessible directly from outside of the cluster. | ||
==Running daemon processes== | ==Running daemon processes== | ||
− | + | There are two ways to run a process in the background: | |
+ | |||
+ | 1. Add an ampersand (&) to the end of the command | ||
+ | <pre>my.process.sh &</pre> | ||
+ | |||
+ | 2. Start the process and once it is running, type | ||
+ | <pre>control-Z + b + g</pre> | ||
+ | |||
+ | ===Network firewall ACLs=== | ||
− | + | If you need to provide the IP of the <pre>daemon</pre> server to allow network access to a machine outside of HiPerGator, please [https://support.rc.ufl.edu/ open a support request]. | |
− | |||
− | |||
− | ==Setting up | + | ==Setting up recurring tasks with Cron== |
+ | You can schedule a task to run recurrently with Cron, a time-based job scheduler by editing your crontab file on the daemon server. [[Cron | Click here for more detailed instructions.]] |
Latest revision as of 15:27, 4 September 2024
Overview
The daemon server provides UF Research Computing users with the space and resources to run long-running processes that do not require a lot of computational power. Please remember that these types of processes cannot be run on the login servers.
Daemon processes run in the background of a system rather than under the direct control of an interactive user. There are many uses for daemon tasks, from polling the batch system to collecting data from external sources. Daemon tasks are usually long-running or scheduled to run recurrently. They are also characterized by a small computational footprint (i.e., low average CPU and RAM usage). Daemon processes should not use 100% of a CPU for extended periods and such processes will be killed without warning.
Access to the daemon server
Connect to the cluster (hpg.rc.ufl.edu) and use the ssh command to access the daemon server.
ssh daemon
The daemon node is not accessible directly from outside of the cluster.
Running daemon processes
There are two ways to run a process in the background:
1. Add an ampersand (&) to the end of the command
my.process.sh &
2. Start the process and once it is running, type
control-Z + b + g
Network firewall ACLs
If you need to provide the IP of the
daemon
server to allow network access to a machine outside of HiPerGator, please open a support request.
Setting up recurring tasks with Cron
You can schedule a task to run recurrently with Cron, a time-based job scheduler by editing your crontab file on the daemon server. Click here for more detailed instructions.