Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hpc-compendium
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZIH
hpcsupport
hpc-compendium
Commits
6545c188
Commit
6545c188
authored
2 years ago
by
Martin Schroschk
Browse files
Options
Downloads
Patches
Plain Diff
Elaborate expirer process and ws_release output
parent
0aeec992
No related branches found
No related tags found
2 merge requests
!729
Automated merge from preview to main
,
!725
Elaborate expirer process and ws_release output
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc.zih.tu-dresden.de/docs/data_lifecycle/workspaces.md
+45
-1
45 additions, 1 deletion
doc.zih.tu-dresden.de/docs/data_lifecycle/workspaces.md
with
45 additions
and
1 deletion
doc.zih.tu-dresden.de/docs/data_lifecycle/workspaces.md
+
45
−
1
View file @
6545c188
...
@@ -158,6 +158,47 @@ workspace and the filesystem in which it is located:
...
@@ -158,6 +158,47 @@ workspace and the filesystem in which it is located:
marie@login$
ws_release
-F
scratch my-workspace
marie@login$
ws_release
-F
scratch my-workspace
```
```
You can list your already released or expired workspaces using the
`ws_restore -l`
command.
```
console
marie@login$
ws_restore
-l
warm_archive:
scratch:
marie-my-workspace-1665014486
unavailable since Thu Oct 6 02:01:26 2022
marie-foo-647085320
unavailable since Sat Mar 12 12:42:00 2022
ssd:
marie-bar-1654074660
unavailable since Wen Jun 1 11:11:00 2022
beegfs_global0:
beegfs:
```
In this example, the user
`marie`
has three inactive, i.e., expired, workspaces namely
`my-workspace`
in
`scratch`
, as well as
`foo`
and
`bar`
in
`ssd`
filesystem. The command
`ws_restore
-l`
lists the name of the workspace and the expiration date. As you can see, the expiration date is
added to the workspace name as Unix timestamp.
!!! hint "Deleting data in in an expired workspace"
If you are short on quota, you might want to delete data in expired workspaces since it counts
to your quota. Expired workspaces are moved to a hidden directory named `.removed`. The access
rights remain unchanged. I.e., you can delete the data inside the workspace directory but you
must not delete the workspace directory itself!
#### Expirer Process
The clean up process of expired workspaces is automatically handled by a so-called expirer process.
It performs the following steps once per day and filesystem:
-
Check for remaining life time of all workspaces.
-
If the workspaces expired, move it to a hidden directory so that it becomes inactive.
-
Send reminder Emails to users if the reminder functionality was configured for their particular
workspaces.
-
Scan through all workspaces in grace period.
-
If a workspace exceeded the grace period, the workspace and its data are deleted.
### Restoring Expired Workspaces
### Restoring Expired Workspaces
At expiration time your workspace will be moved to a special, hidden directory. For a month (in
At expiration time your workspace will be moved to a special, hidden directory. For a month (in
...
@@ -174,13 +215,16 @@ Use
...
@@ -174,13 +215,16 @@ Use
```
console
```
console
marie@login$
ws_restore
-l
-F
scratch
marie@login$
ws_restore
-l
-F
scratch
scratch:
marie-my-workspace-1665014486
unavailable since Thu Oct 6 02:01:26 2022
```
```
to get a list of your expired workspaces, and then restore them like that into an existing, active
to get a list of your expired workspaces, and then restore them like that into an existing, active
workspace 'new_ws':
workspace 'new_ws':
```
console
```
console
marie@login$
ws_restore
-F
scratch marie-
test
-workspace-1
234567
new_ws
marie@login$
ws_restore
-F
scratch marie-
my
-workspace-1
665014486
new_ws
```
```
The expired workspace has to be specified by its full name as listed by
`ws_restore -l`
, including
The expired workspace has to be specified by its full name as listed by
`ws_restore -l`
, including
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment