Skip to content

Commit

Permalink
helm: add API rate limit env variable for slow endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Moisieienkov committed Mar 14, 2022
1 parent 5e71e74 commit a9e58d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions helm/reana/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ This Helm automatically prefixes all names using the release name to avoid colli
| `components.reana_server.environment.REANA_WORKFLOW_SCHEDULING_POLICY` | Define workflow scheduling strategy. Options are "fifo" for first-in-first-out strategy regardless of users and "balanced" for multi-user-aware scheduling strategy. | "fifo" |
| `components.reana_server.environment.REANA_RATELIMIT_GUEST_USER` | Set API limiter config for guest users. Users using reana-client will be treated as guests. | "20 per second" |
| `components.reana_server.environment.REANA_RATELIMIT_AUTHENTICATED_USER` | Set API limiter config for authenticated web UI users. | "20 per second" |
| `components.reana_server.environment.REANA_RATELIMIT_SLOW` | Set API limit config for slow endpoints. | "1/5 second" |
| `components.reana_server.image` | [REANA-Server image](https://hub.docker.com/r/reanahub/reana-server) to use | `reanahub/reana-server:<chart-release-version>` |
| `components.reana_server.imagePullPolicy` | REANA-Server image pull policy | IfNotPresent |
| `components.reana_server.uwsgi.processes` | Number of uWSGI processes | 6 |
Expand Down
1 change: 1 addition & 0 deletions helm/reana/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ components:
REANA_WORKFLOW_SCHEDULING_POLICY: "fifo"
REANA_RATELIMIT_GUEST_USER: "20 per second"
REANA_RATELIMIT_AUTHENTICATED_USER: "20 per second"
REANA_RATELIMIT_SLOW: "1/5 second"
uwsgi:
processes: 6
threads: 4
Expand Down

0 comments on commit a9e58d4

Please sign in to comment.