基于openresty lua-resty-balancer 模块实现自定义分流功能

该模块为提供分流算法,抽离了hash算法, roundrobin轮询等,好处使业务灵活调用算法而分配对像。该对像不一定指服务器,也可以是数据对像或文件对像等等

1,下载https://github.com/openresty/lua-resty-balancer

编译安装balancer