You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/administration/configuration/configuring-user-quotas/index.md
+56-2Lines changed: 56 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Here is an example of a mixed configuration where, in addition to nightly CPU an
25
25
```yaml
26
26
quota:
27
27
enabled: true
28
-
# update quota usage everyday at 3AM
28
+
# update quota usage every day at 3AM
29
29
periodic_update_policy: "0 3 * * *"
30
30
# after workflow finishes or fails update its cpu usage
31
31
workflow_termination_update_policy: "cpu"
@@ -50,7 +50,9 @@ Individual users will be able to run as many workflows as they want, provided th
50
50
## Setting individual quota limits
51
51
52
52
In addition to setting the default quota limits for all users, you may want to set different quota usage limits for different specific groups of users.
53
-
This can be done via the `reana-admin` tool that is present in the `reana-server` pod.
53
+
This can be done via the `reana-admin` tool that is present in the `reana-server` pod or via the REST API.
54
+
55
+
### Using the `reana-admin` tool
54
56
55
57
Log in to the `reana-server` pod:
56
58
@@ -66,3 +68,55 @@ Quota limit 250000 for 'disk (shared storage)' successfully set to users ('john.
66
68
```
67
69
68
70
You can learn more about the `quota-set` administrative command options by running `flask reana-admin quota-set --help`.
71
+
72
+
### Using the REST API
73
+
74
+
You can also set quota limits for specific users using the REST API.
75
+
76
+
All API requests must include an X-Quota-Management-Secret header containing a secret string.
77
+
This secret should be set in your Helm `values.yaml` file.
78
+
79
+
```yaml
80
+
components:
81
+
reana_server:
82
+
environment:
83
+
REANA_ADMIN_QUOTA_MANAGER: "my_secret"
84
+
```
85
+
86
+
If the secret is not set, quota management via the REST API is disabled.
87
+
88
+
To get the current CPU quota limit and usage for the user `[email protected]`, you would run:
0 commit comments