lua-resty-limit-traffic icon indicating copy to clipboard operation
lua-resty-limit-traffic copied to clipboard

Lua library for limiting and controlling traffic in OpenResty/ngx_lua

Results 34 lua-resty-limit-traffic issues
Sort by recently updated
recently updated
newest added

http { limit_req_zone $uri zone=one:10m rate=1000r/s; server { location /limit-req { access_by_lua_block { local limit_req = require "resty.limit.req" local lim, err = limit_req.new("my_limit_req_store", 100, 0) ... if delay >= 0.001...

With this config ```lua local lim, err = limit_conn.new("my_limit_conn_store", 10, 5, 0.5) ``` After somes request. I alway get 503. I want limit per IP request not over 15 concurrent...

Hello @agentzh , here use your traffice function. If elapsed is 0 in the following statement, excess will return a number greater than 0 whether or not it exceeds concurrency,...

I noticed that the `lua-resty-limit-traffic` uses the `shared dict` struct to store the data and I couldn't find any part of the documentation that deals with multiple nodes case, where...

Hello, I found some problems when i set resty.limit.conn。 - Purpose: i want to limit the number of concurrent. It can return 503 when requests exceed concurrent - nginx.config: ```...

1. In module resty/limit/count.lua, At line: 54 ~ 69 in method _M.incoming() it seemed never to executed; 2. Can not set limit like req limit module "set_rate", Change cache the...

hi,I found function `set_conn()` (which in conn.lua ) assign `conn` to `self.conn` which is never be used. And the test result is consistent with my guess : `set_conn()` do not...

Here are steps to re-produce the issue I have: 1. I install OpenRestry version `1.11.2.5` on an EC2 instance with 2. Based on your one of your example here https://github.com/openresty/lua-resty-limit-traffic#synopsis,...

1. I use this sample code in a nginx reverse proxy settings. https://github.com/openresty/lua-resty-limit-traffic/blob/master/lib/resty/limit/traffic.md#synopsis 2. Then I use tool like `siege` to execute command like this: siege -c 1 -r 100...

Thought of something like `limit_req.new(, rate, window, resolution)` e.g. limit_req.new(, 200,300,60) That is, limit the requests under 200 req in a window of 300 seconds where the window resolution is...