Skip to content

Commit f10b4f3

Browse files
committed
update doc for balancer_by_lua_block
1 parent b1e74f0 commit f10b4f3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ documentation of `ngx_http_lua_module` for more details about their usage and be
122122
* [init_worker_by_lua_file](https://github.com/openresty/lua-nginx-module#init_worker_by_lua_file)
123123
* [content_by_lua_block](https://github.com/openresty/lua-nginx-module#content_by_lua_block)
124124
* [content_by_lua_file](https://github.com/openresty/lua-nginx-module#content_by_lua_file)
125+
* [balancer_by_lua_block](https://github.com/openresty/lua-nginx-module#balancer_by_lua_block)
126+
* [balancer_by_lua_file](https://github.com/openresty/lua-nginx-module#balancer_by_lua_file)
125127
* [lua_shared_dict](https://github.com/openresty/lua-nginx-module#lua_shared_dict)
126128
* [lua_socket_connect_timeout](https://github.com/openresty/lua-nginx-module#lua_socket_connect_timeout)
127129
* [lua_socket_buffer_size](https://github.com/openresty/lua-nginx-module#lua_socket_buffer_size)
@@ -254,6 +256,9 @@ output to be completely flushed out (to the system socket send buffers).
254256
* [ngx.worker.pid](https://github.com/openresty/lua-nginx-module#ngxworkerpid)
255257
* [ngx.worker.count](https://github.com/openresty/lua-nginx-module#ngxworkercount)
256258
* [ngx.worker.id](https://github.com/openresty/lua-nginx-module#ngxworkerid)
259+
* [ngx.balancer](https://github.com/openresty/lua-nginx-module#ngxbalancer)
260+
261+
For now, only `set_current_peer` and `set_more_tries`(Not respect `proxy_next_upstream_tries`) provided.
257262
* [coroutine.create](https://github.com/openresty/lua-nginx-module#coroutinecreate)
258263
* [coroutine.resume](https://github.com/openresty/lua-nginx-module#coroutineresume)
259264
* [coroutine.yield](https://github.com/openresty/lua-nginx-module#coroutineyield)
@@ -268,7 +273,7 @@ TODO
268273

269274
* Add new directives `access_by_lua_block` and `access_by_lua_file`.
270275
* Add new directives `log_by_lua_block` and `log_by_lua_file`.
271-
* Add new directives `balancer_by_lua_block` and `balancer_by_lua_file`.
276+
* Add `set_timeouts` in `ngx.balancer` and respect `proxy_next_upstream_tries` for `set_more_tries`.
272277
* Add new directives `ssl_certificate_by_lua_block` and `ssl_certificate_by_lua_file`.
273278
* Add `ngx.semaphore` API.
274279
* Add `ngx_meta_lua_module` to share as much code as possible between this module and `ngx_http_lua_module` and allow sharing

0 commit comments

Comments
 (0)