Read-only by default
What HiveBoard runs on your cluster by default — squeue, sacct, ls, cat and a few more — how its reads are confined and cached, and other people's folders.
In short
- Until you turn job control on for a server, every command HiveBoard sends it only reads.
- File reads and downloads stay inside the job's own folder, and downloads stream straight to you: nothing is written on the cluster.
- Reads are cached and shared, over one held connection per server, so ten open tabs do not mean ten times the load on a login node.
- Another person's job folder is read only when you open that job, and only if the server says you may.
HiveBoard reads. Until you turn on job control for a server, every command it sends that server only reads: the queue, the accounting record, a folder’s listing, the lines of a file. Nothing is installed on the cluster, and nothing is written there. The few things it can change once you allow it are listed in what HiveBoard may change.
What it runs, and when
By default every command HiveBoard sends is a read, such as squeue, sinfo, scontrol,
sacct, ls, cat, tail, grep, stat and awk.
| What | When | Commands |
|---|---|---|
| The queue | every 20 s, each server shown | squeue, sinfo |
| Connection health | every 30 s, servers hidden or not yet seen | echo ok |
| Code tags | after each queue read, your jobs not yet tagged | file names, the first bytes of input and output files |
| Finished jobs | per history window | sacct -u for you and the users you highlight |
| One job | when opened, then every 15 s on Overview or Output | scontrol, then the code’s reads: head, tail, grep, count |
| 3-D structure | on the Structure tab | the geometry and trajectory files |
| Folders and files | when you browse or download | one listing; cat, tar, zip |
A connection test adds whoami and hostname. Every one of these is bounded: the reads of
a job’s files are line ranges, fixed-text searches and counts, and the code tags are found
at most 60 folders and about 20 seconds per request — the rest on the refreshes that follow.
What is learned about a job is kept, so it is not asked again.
Confined to the job’s folder
- File reads and archive downloads are confined to the job’s own work directory. Every path is resolved first and refused if it leads outside.
- The Folders page reads one directory per request, never a recursive walk — a walk is what gets an SSH session reset on a monitored cluster. Its search for calculations goes down only into directories you own, and opening a folder requires that you own it. See browsing folders.
Downloads stream; nothing is staged
A download comes straight from the cluster: cat for a file, or zip or tar writing the
archive to its output for a folder or a selection. Nothing is staged or written on the
remote host. The archive formats offered are only those the cluster has. See
the Files tab.
Gentle on login nodes
- Every read is cached for a short time, and single-flight: callers that ask the same thing at once share one SSH command, so ten open tabs do not mean ten times the load. The queue is kept for 10 to 60 seconds; finished jobs for 60 seconds with a 7-day window, 5 minutes with 30 days, 15 minutes with 90.
- One connection per server, held open, with a new channel for each command — at most 4 at once, and 2 for downloads — and a keepalive every 30 seconds. Signing in once serves every command after it.
- Your pace. The list is read every 20 seconds unless you choose otherwise in Settings (10 seconds to 10 minutes). A slower pace is kinder to a busy login node.
- No retry storms. A sign-in the server refused is not tried again until you act. See How sign-in is kept safe.
Other people’s folders
On large shared clusters, a burst of refused reads across other users’ directories gets the SSH session reset. So HiveBoard is careful there:
- It opens another user’s job folder only when you open that job.
- It asks the server once whether you may — the setting
foreign_job_files: on-demand, the default — remembers the answer, and stops trying altogether when refusals pile up. - When you may not read the folder, the job pane shows what the queue says about the job and nothing else.
- Finished jobs are asked for only for you and the people you name under Highlight users — nobody else’s.
- Code tags in the list come from your own jobs’ folders. (The single-file app can also tag
other people’s jobs, on a server set to
foreign_job_files: always.)
See Other people’s jobs.
When HiveBoard does write
Only through actions you switch on and confirm: cancelling, continuing and deleting files of your own jobs, once job control is on for that server, and installing your public key when you press Install key. The complete list, with the rules each follows, is in what HiveBoard may change.
Check yourself
2 quick questions on this page. Nothing is sent anywhere.
-
How does HiveBoard download a job's whole folder as an archive?
- It streams zip or tar output straight from the cluster; nothing is written there
- It builds the archive in your home folder on the cluster, then copies it
- It copies the files into a temporary folder on the login node first
Show the answer
It streams zip or tar output straight from the cluster; nothing is written there Downloads stream from the cluster — cat, or zip or tar to standard output — and nothing is staged or written on the remote host.
-
You open a colleague's job. When does HiveBoard read its folder?
- Only now that you opened it, and only if the server lets you read it
- Every 20 seconds, with the queue
- Never — other people's jobs cannot be opened
Show the answer
Only now that you opened it, and only if the server lets you read it Another user's job folder is opened only when you open that job, after asking the server once whether you may.
Try it in the app
On your own computer, with HiveBoard open. Tick them off as you go.
Related
Written for HiveBoard 0.1.7, the version on the download page. Examples use a made-up cluster (Ember) and person (zoe). Something here not what you see? Report it from the app.