Merge pull request #11432 from lafirest/chore/rate_limit_example

chore: add rate limit example
This commit is contained in:
lafirest 2023-08-11 15:47:38 +08:00 committed by GitHub
commit c9c0ce0734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
## Rate Limit
## Rate limiting is applied on the listener
listeners.tcp.my_tcp_listener_name {
## Connections per second per listener
max_conn_rate = "1000/s"
## Incoming messages per second per client
messages_rate = "1000/s"
## Incoming message size in bytes per second per client
bytes_rate = "1MB/s"
}