From fcecb6bee7ed64dc7855c754c3b2c1a050a263ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tibor=20=C5=A0imko?= Date: Wed, 21 Aug 2024 17:41:28 +0200 Subject: [PATCH] feat(helm): increase default rate limit values (#826) Closes #825 --- helm/configurations/values-dev.yaml | 2 ++ helm/reana/README.md | 4 ++-- helm/reana/values.yaml | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/helm/configurations/values-dev.yaml b/helm/configurations/values-dev.yaml index 861a9126..5164f1ac 100644 --- a/helm/configurations/values-dev.yaml +++ b/helm/configurations/values-dev.yaml @@ -8,6 +8,8 @@ components: environment: REANA_SCHEDULER_REQUEUE_SLEEP: 2 REANA_RATELIMIT_SLOW: "5 per second" + REANA_RATELIMIT_GUEST_USER: "100 per second" + REANA_RATELIMIT_AUTHENTICATED_USER: "100 per second" reana_workflow_controller: image: docker.io/reanahub/reana-workflow-controller environment: diff --git a/helm/reana/README.md b/helm/reana/README.md index 0ccf74cf..fdfee412 100644 --- a/helm/reana/README.md +++ b/helm/reana/README.md @@ -21,8 +21,8 @@ This Helm automatically prefixes all names using the release name to avoid colli | `components.reana_server.environment.REANA_SCHEDULER_REQUEUE_COUNT` | The number of times to requeue workflow before failing it. "infinity" value could be used to deactivate workflow failing. | 200 | | `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_WORKFLOW_SCHEDULING_READINESS_CHECK_LEVEL` | Define checks that are performed to assess whether the cluster is ready to start new workflows. Values are: 0 = no readiness check; schedule new workflow as soon as they arrive; 1 = check for maximum number of concurrently running workflows; schedule new workflows if not exceeded; 2 = check for available cluster memory size; schedule new workflow only if it fits; 9 = perform all checks; satisfy all previous criteria. | 9 | -| `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_GUEST_USER` | Set API limiter config for guest users. Users using reana-client will be treated as guests. | "40 per second" | +| `components.reana_server.environment.REANA_RATELIMIT_AUTHENTICATED_USER` | Set API limiter config for authenticated web UI users. | "40 per second" | | `components.reana_server.environment.REANA_RATELIMIT_SLOW` | Set API limiter config for slow endpoints that need to be protected e.g. launch endpoint. | "1/5 second" | | `components.reana_server.image` | [REANA-Server image](https://hub.docker.com/r/reanahub/reana-server) to use | `docker.io/reanahub/reana-server:` | | `components.reana_server.imagePullPolicy` | REANA-Server image pull policy | IfNotPresent | diff --git a/helm/reana/values.yaml b/helm/reana/values.yaml index 08283775..4189eea5 100644 --- a/helm/reana/values.yaml +++ b/helm/reana/values.yaml @@ -97,8 +97,8 @@ components: REANA_USER_EMAIL_CONFIRMATION: true REANA_WORKFLOW_SCHEDULING_POLICY: "fifo" REANA_WORKFLOW_SCHEDULING_READINESS_CHECK_LEVEL: 9 - REANA_RATELIMIT_GUEST_USER: "20 per second" - REANA_RATELIMIT_AUTHENTICATED_USER: "20 per second" + REANA_RATELIMIT_GUEST_USER: "40 per second" + REANA_RATELIMIT_AUTHENTICATED_USER: "40 per second" REANA_RATELIMIT_SLOW: "1/5 second" uwsgi: processes: 6