From 2a0f5f8ba505bbd4f8868819768522c280739e89 Mon Sep 17 00:00:00 2001 From: firest Date: Fri, 11 Aug 2023 11:31:15 +0800 Subject: [PATCH] chore: add rate limit example --- rel/config/examples/rate_limit.conf.example | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 rel/config/examples/rate_limit.conf.example diff --git a/rel/config/examples/rate_limit.conf.example b/rel/config/examples/rate_limit.conf.example new file mode 100644 index 000000000..d62c3cd8c --- /dev/null +++ b/rel/config/examples/rate_limit.conf.example @@ -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" +}