-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/1273 rate limiting redis #1285
Conversation
max-burst: 1500 | ||
associations: | ||
- gs:up | ||
provider: `redis` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you set the provider
along with profiles
or?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, provider
is one of the possible options for rate-limiting
, so you can use
rate-limiting:
provider: ...
profiles:
- ...
- ...
but the same example (that was removed) is available at
lorawan-stack-docs/doc/content/reference/rate-limiting/_index.md
Lines 20 to 62 in bc93dbb
```yaml | |
rate-limiting: | |
profiles: | |
- name: HTTP servers | |
max-per-min: 30 | |
associations: | |
- http | |
- name: User login | |
max-per-min: 10 | |
associations: | |
- http:account | |
- name: Create new users | |
max-per-min: 10 | |
associations: | |
- grpc:method:/ttn.lorawan.v3.UserRegistry/Create | |
- name: Application downlink traffic | |
max-per-min: 10 | |
associations: | |
- as:down:web | |
- as:down:mqtt | |
- grpc:method:/ttn.v3.lorawan.v3.AppAs/DownlinkQueuePush | |
- grpc:method:/ttn.v3.lorawan.v3.AppAs/DownlinkQueueReplace | |
- name: Gateway connections | |
max-per-min: 5 | |
associations: | |
- gs:accept:mqtt | |
- gs:accept:ws | |
- grpc:stream:accept:/ttn.lorawan.v3.GtwGs/LinkGateway | |
- name: gRPC API | |
max-per-min: 60 | |
associations: | |
- grpc:method | |
- grpc:stream:accept | |
- name: Override rate for uplink simulation | |
max-per-min: 5 | |
associations: | |
- grpc:method:/ttn.lorawan.v3.AppAs/SimulateUplink | |
- name: Gateway uplink traffic | |
max-per-min: 1000 | |
max-burst: 1500 | |
associations: | |
- gs:up | |
``` |
Summary
Closes #1273
Screenshots
Changes
Notes for Reviewers
nil
Checklist
make server
, posted screenshots, verified external links. Test withHUGO_PARAMS_SEARCH_ENABLED=true
if style changes will affect the search bar.new-in-version
shortcode, according to the guidelines in CONTRIBUTING.