lua-upstream-nginx-module icon indicating copy to clipboard operation
lua-upstream-nginx-module copied to clipboard

Can I get keepalive and other upstream config

Open zheng-ji opened this issue 8 years ago • 1 comments

Thanks for your share.

Can I get other config by this module,such as keepalive option along with servers

 server  127.0.0.1:8011 weight=20 max_fails=0 fail_timeout=10s;
 server  127.0.0.1:8012 weight=20 max_fails=0 fail_timeout=10s;
 keepalive 2048;

Wait for your answer sincerely

zheng-ji avatar Jun 22 '16 13:06 zheng-ji

@zheng-ji The servers can already be obtained by the current Lua API. There is no Lua API yet for fetching the ngx_upstream_keepalive_module's configuration. Read the manual.

agentzh avatar Jul 01 '16 00:07 agentzh