lua-resty-core
lua-resty-core copied to clipboard
keepalive not working in top of balancer_by_lua_block
if balancer config like below, keepalive not working upstream backend { keepalive 10; # connection pool server 0.0.0.1; balancer_by_lua_block { --logic } } and must be changed order of directive keepalive like this: upstream backend { server 0.0.0.1; balancer_by_lua_block { --logic } keepalive 10; # connection pool } but in nginx configthe order of directive in block has no effect on behavior of nginx