Skip to content

Commit

Permalink
Internals - crontab is now customized with MACHINENAME
Browse files Browse the repository at this point in the history
  • Loading branch information
susanunit committed Feb 19, 2025
1 parent 6bb56fe commit 0089740
Show file tree
Hide file tree
Showing 14 changed files with 122 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/hpc/3stampede/admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ $ module help # show help text for the module system itself

It's safe to execute module commands in job scripts. In fact, this is a good way to write self-documenting, portable job scripts that produce reproducible results. If you use `module save` to define a personal default module collection, it's rarely necessary to execute module commands in shell startup scripts, and it can be tricky to do so safely. If you do wish to put module commands in your startup scripts, see Stampede3's default startup scripts in `/usr/local/startup_scripts` for a safe way to do so.

{% include 'include/crontabs.md' %}
{% include 'include/stampede3-crontab.md' %}

{% include 'include/tacctips.md' %}
2 changes: 1 addition & 1 deletion docs/hpc/6lonestar/admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ See [Lmod's online documentation](http://lmod.readthedocs.org) for more extensiv

It's safe to execute module commands in job scripts. In fact, this is a good way to write self-documenting, portable job scripts that produce reproducible results. If you use `module save` to define a personal default module collection, it's rarely necessary to execute module commands in shell startup scripts, and it can be tricky to do so safely. If you do wish to put module commands in your startup scripts, see Lonestar6's default startup scripts for a safe way to do so.

{% include 'include/crontabs.md' %}
{% include 'include/lonestar6-crontab.md' %}


{% include 'include/tacctips.md' %}
2 changes: 1 addition & 1 deletion docs/hpc/frontera.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ See [Lmod's online documentation](http://lmod.readthedocs.org) for more extensiv

It's safe to execute module commands in job scripts. In fact, this is a good way to write self-documenting, portable job scripts that produce reproducible results. If you use `module save` to define a personal default module collection, it's rarely necessary to execute module commands in shell startup scripts, and it can be tricky to do so safely. If you do wish to put module commands in your startup scripts, see Frontera's default startup scripts for a safe way to do so.

{% include 'include/crontabs.md' %}
{% include 'include/frontera-crontab.md' %}

{% include 'include/tacctips.md' %}

Expand Down
2 changes: 1 addition & 1 deletion docs/hpc/frontera/admin.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ See [Lmod's online documentation](http://lmod.readthedocs.org) for more extensiv

It's safe to execute module commands in job scripts. In fact, this is a good way to write self-documenting, portable job scripts that produce reproducible results. If you use `module save` to define a personal default module collection, it's rarely necessary to execute module commands in shell startup scripts, and it can be tricky to do so safely. If you do wish to put module commands in your startup scripts, see Frontera's default startup scripts for a safe way to do so.

{% include 'include/crontabs.md' %}
{% include 'include/frontera-crontab.md' %}

{% include 'include/tacctips.md' %}

Expand Down
2 changes: 1 addition & 1 deletion docs/hpc/lonestar6.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ See [Lmod's online documentation](http://lmod.readthedocs.org) for more extensiv

It's safe to execute module commands in job scripts. In fact, this is a good way to write self-documenting, portable job scripts that produce reproducible results. If you use `module save` to define a personal default module collection, it's rarely necessary to execute module commands in shell startup scripts, and it can be tricky to do so safely. If you do wish to put module commands in your startup scripts, see Lonestar6's default startup scripts for a safe way to do so.

{% include 'include/crontabs.md' %}
{% include 'include/lonestar6-crontab.md' %}


{% include 'include/tacctips.md' %}
Expand Down
2 changes: 1 addition & 1 deletion docs/hpc/stampede3.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ $ module help # show help text for the module system itself

It's safe to execute module commands in job scripts. In fact, this is a good way to write self-documenting, portable job scripts that produce reproducible results. If you use `module save` to define a personal default module collection, it's rarely necessary to execute module commands in shell startup scripts, and it can be tricky to do so safely. If you do wish to put module commands in your startup scripts, see Stampede3's default startup scripts in `/usr/local/startup_scripts` for a safe way to do so.

{% include 'include/crontabs.md' %}
{% include 'include/stampede3-crontab.md' %}

{% include 'include/tacctips.md' %}
## Managing Your Files { #files }
Expand Down
2 changes: 1 addition & 1 deletion docs/hpc/vista.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Vista is funded by the National Science Foundation (NSF) via a supplement to the

## Account Administration

{% include 'include/crontabs.md' %}
{% include 'include/vista-crontab.md' %}

{% include 'include/tacctips.md' %}

Expand Down
2 changes: 1 addition & 1 deletion docs/hpc/vista/admin.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Account Administration

{% include 'include/crontabs.md' %}
{% include 'include/vista-crontab.md' %}

{% include 'include/tacctips.md' %}

15 changes: 15 additions & 0 deletions docs/include/configurestrings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ if [ "$1" = "frontera" ]
then
echo "building includes for Frontera user guide"
machinename="Frontera"
lcmachinename="frontera"
helpoutputfile="frontera-help.md"
jobaccountingoutputfile="frontera-jobaccounting.md"
crontaboutputfile="frontera-crontab.md"
hwthreads="56 on CLX"
mkloutputfile="frontera-mkl.md"
helpmsg="Be sure to include \"$machinename\" in the Resource field."

sed -e "s/MACHINENAME/$machinename/g" < jobaccountingsrc.md > $jobaccountingoutputfile
sed -e "s/MACHINENAME/$lcmachinename/g" < crontabsrc.md > $crontaboutputfile

sed -e "s/HWTHREADS/$hwthreads/g" < mklsrc.md > $mkloutputfile

Expand All @@ -25,12 +28,16 @@ elif [ "$1" = "vista" ]
then
echo "building includes for Vista user guide"
machinename="Vista"
lcmachinename="vista"
helpoutputfile="vista-help.md"
jobaccountingoutputfile="vista-jobaccounting.md"
crontaboutputfile="vista-crontab.md"
helpmsg="Be sure to include \"$machinename\" in the Resource field."

sed -e "s/MACHINENAME/$machinename/g" < jobaccountingsrc.md > $jobaccountingoutputfile

sed -e "s/MACHINENAME/$lcmachinename/g" < crontabsrc.md > $crontaboutputfile

sed -e "s/MACHINENAME/$machinename/g" \
-e "s/HELPMSG/$helpmsg/g" < helpsrc.md > $helpoutputfile

Expand All @@ -39,14 +46,18 @@ elif [ "$1" = "lonestar6" ]
then
echo "building includes for Lonestar6 user guide"
machinename="Lonestar6"
lcmachinename="lonestar6"
helpoutputfile="lonestar6-help.md"
jobaccountingoutputfile="lonestar6-jobaccounting.md"
crontaboutputfile="lonestar6-crontab.md"
hwthreads="128 on AMD Milan"
mkloutputfile="lonestar6-mkl.md"
helpmsg="Be sure to include \"$machinename\" in the Resource field."

sed -e "s/MACHINENAME/$machinename/g" < jobaccountingsrc.md > $jobaccountingoutputfile

sed -e "s/MACHINENAME/$lcmachinename/g" < crontabsrc.md > $crontaboutputfile

sed -e "s/HWTHREADS/$hwthreads/g" < mklsrc.md > $mkloutputfile

sed -e "s/MACHINENAME/$machinename/g" \
Expand All @@ -57,12 +68,16 @@ elif [ "$1" = "stampede3" ]
then
echo "building includes for Stampede3 user guide"
machinename="Stampede3"
lcmachinename="stampede3"
helpoutputfile="stampede3-help.md"
jobaccountingoutputfile="stampede3-jobaccounting.md"
crontaboutputfile="stampede3-crontab.md"
helpmsg="Be sure to include \"$machinename\" in the Resource field."

sed -e "s/MACHINENAME/$machinename/g" < jobaccountingsrc.md > $jobaccountingoutputfile

sed -e "s/MACHINENAME/$lcmachinename/g" < crontabsrc.md > $crontaboutputfile

sed -e "s/MACHINENAME/$machinename/g" \
-e "s/HELPMSG/$helpmsg/g" < helpsrc.md > $helpoutputfile

Expand Down
24 changes: 24 additions & 0 deletions docs/include/crontabsrc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### Crontabs

TACC allows cronjobs but be aware that crontab files are unique to the login node where they were created and are not shared across the login nodes. Crontab files are not allowed on the compute nodes.

!!! note
All TACC HPC systems host multiple login nodes. When you login, your connection is routed to the next available login node via round-robin DNS. This practice balances the user load across the system.

When creating a crontab file, use the `hostname` command to determine your exact location, and make note of it:

```cmd-line
$ hostname
login2.MACHINENAME.tacc.utexas.edu
```

Similarly you can always connect to that login node by specifying its full domain name:

```cmd-line
localhost$ ssh login2.MACHINENAME.tacc.utexas.edu
```

!!! important
As with any computation, ensure that cronjobs are run only on the compute nodes


5 changes: 3 additions & 2 deletions docs/include/crontabs.md → docs/include/frontera-crontab.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ When creating a crontab file, use the `hostname` command to determine your exact

```cmd-line
$ hostname
login3.stampede3.tacc.utexas.edu
login2.frontera.tacc.utexas.edu
```

Similarly you can always connect to that login node by specifying its full domain name:

```cmd-line
localhost$ ssh login3.stampede3.tacc.utexas.edu
localhost$ ssh login2.frontera.tacc.utexas.edu
```

!!! important
Expand Down
24 changes: 24 additions & 0 deletions docs/include/lonestar6-crontab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### Crontabs

TACC allows cronjobs but be aware that crontab files are unique to the login node where they were created and are not shared across the login nodes. Crontab files are not allowed on the compute nodes.

!!! note
All TACC HPC systems host multiple login nodes. When you login, your connection is routed to the next available login node via round-robin DNS. This practice balances the user load across the system.

When creating a crontab file, use the `hostname` command to determine your exact location, and make note of it:

```cmd-line
$ hostname
login2.lonestar6.tacc.utexas.edu
```

Similarly you can always connect to that login node by specifying its full domain name:

```cmd-line
localhost$ ssh login2.lonestar6.tacc.utexas.edu
```

!!! important
As with any computation, ensure that cronjobs are run only on the compute nodes


24 changes: 24 additions & 0 deletions docs/include/stampede3-crontab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### Crontabs

TACC allows cronjobs but be aware that crontab files are unique to the login node where they were created and are not shared across the login nodes. Crontab files are not allowed on the compute nodes.

!!! note
All TACC HPC systems host multiple login nodes. When you login, your connection is routed to the next available login node via round-robin DNS. This practice balances the user load across the system.

When creating a crontab file, use the `hostname` command to determine your exact location, and make note of it:

```cmd-line
$ hostname
login2.stampede3.tacc.utexas.edu
```

Similarly you can always connect to that login node by specifying its full domain name:

```cmd-line
localhost$ ssh login2.stampede3.tacc.utexas.edu
```

!!! important
As with any computation, ensure that cronjobs are run only on the compute nodes


24 changes: 24 additions & 0 deletions docs/include/vista-crontab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
### Crontabs

TACC allows cronjobs but be aware that crontab files are unique to the login node where they were created and are not shared across the login nodes. Crontab files are not allowed on the compute nodes.

!!! note
All TACC HPC systems host multiple login nodes. When you login, your connection is routed to the next available login node via round-robin DNS. This practice balances the user load across the system.

When creating a crontab file, use the `hostname` command to determine your exact location, and make note of it:

```cmd-line
$ hostname
login2.vista.tacc.utexas.edu
```

Similarly you can always connect to that login node by specifying its full domain name:

```cmd-line
localhost$ ssh login2.vista.tacc.utexas.edu
```

!!! important
As with any computation, ensure that cronjobs are run only on the compute nodes


0 comments on commit 0089740

Please sign in to comment.