openresty / lua-resty-balancer

A generic consistent hash implementation for OpenResty/Lua
322 stars 77 forks source link

Timeout setting #21

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi,

is it possible to set a custom timeout for the below two (at least) per balancer_by_lua_block :

so that I can configure ? It seems the current default is 2 seconds when unable to connect to a backend ?

Thanks Alex

ghost commented 6 years ago

I think I found it here : https://github.com/openresty/lua-resty-core/blob/master/lib/ngx/balancer.md#set_timeouts