Skip to content

Commit

Permalink
feat(rate-limit): enable rate limit in production (#3362)
Browse files Browse the repository at this point in the history
Co-authored-by: Ben Rometsch <ben.rometsch@gmail.com>
  • Loading branch information
gagantrivedi and dabeeeenster committed Feb 5, 2024
1 parent da21b8c commit f9545f7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/docs/system-administration/system-limits.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ In order to ensure consistent performance, Flagsmith has the following limitatio
### Segment Data Elements

- Maximum size of a Segment Rule Value is **1,000 bytes**

### Rate Limit

Requests made to admin endpoints (i.e., non-SDK endpoints) are subject to a default rate limit of 500 per minute. If you
are self-hosting, you have the flexibility to modify this limit by adjusting the value of the environment variable
`USER_THROTTLE_RATE`.
16 changes: 16 additions & 0 deletions infrastructure/aws/production/ecs-task-definition-web.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,22 @@
{
"name": "PIPEDRIVE_IGNORE_DOMAINS",
"value": "flagsmith.com,solidstategroup.com,restmail.net,bullettrain.io,flagsmithe2etestdomain.io"
},
{
"name": "DEFAULT_THROTTLE_CLASSES",
"value": "core.throttling.UserRateThrottle"
},
{
"name": "DJANGO_REDIS_CONNECTION_FACTORY",
"value": "core.redis_cluster.ClusterConnectionFactory"
},
{
"name": "USER_THROTTLE_CACHE_BACKEND",
"value": "django_redis.cache.RedisCache"
},
{
"name": "USER_THROTTLE_CACHE_LOCATION",
"value": "rediss://serverless-redis-cache-c4q8sw.serverless.euw2.cache.amazonaws.com:6379"
}
],
"secrets": [
Expand Down

0 comments on commit f9545f7

Please sign in to comment.