Skip to content

Commit b194ebc

Browse files
authored
Merge pull request #263 from rush-db/fix/increased-req-per-sec-limits
Increased requests limits for Throttler
2 parents ad5eb9b + 32bd9c1 commit b194ebc

4 files changed

Lines changed: 13 additions & 4 deletions

File tree

.changeset/great-buttons-attend.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'rushdb-core': patch
3+
'rushdb-docs': patch
4+
'@rushdb/javascript-sdk': patch
5+
'rushdb-dashboard': patch
6+
'rushdb-website': patch
7+
---
8+
9+
Increased requests limits for Throttler

docs/docs/tutorials/deployment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ The following environment variables can be used to configure your RushDB deploym
437437

438438
| Variable | Description | Default | Required |
439439
|----------|-------------|---------|----------|
440-
| `RATE_LIMITER_REQUESTS_LIMIT` | Max requests within time frame | `10` | No |
441-
| `RATE_LIMITER_TTL` | Time frame for rate limiting (ms) | `1000` | No |
440+
| `RATE_LIMITER_REQUESTS_LIMIT` | Max requests within time frame | `100` | No |
441+
| `RATE_LIMITER_TTL` | Time frame for rate limiting (ms) | `1000` | No |
442442

443443
### OAuth and Authentication
444444

platform/core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ You can customize the application by setting environment variables. Below are th
8383
- A find of allowed login usernames. Leave empty to allow all logins.
8484

8585
### Rate Limiting
86-
- `RATE_LIMITER_REQUESTS_LIMIT=10`
86+
- `RATE_LIMITER_REQUESTS_LIMIT=100`
8787
- Maximum number of requests allowed within a specific time frame.
8888
- `RATE_LIMITER_TTL=1000`
8989
- Time-to-live (TTL) for the rate limiter.

platform/core/src/dashboard/throttle/throttle.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class ThrottleService implements ThrottlerOptionsFactory {
1313
const ttl = this.configService.get('RATE_LIMITER_TTL') || 1000
1414
const limit =
1515
toBoolean(this.configService.get('RUSHDB_SELF_HOSTED')) ? 1000 : (
16-
this.configService.get('RATE_LIMITER_REQUESTS_LIMIT') || 10
16+
this.configService.get('RATE_LIMITER_REQUESTS_LIMIT') || 100
1717
)
1818

1919
return {

0 commit comments

Comments
 (0)