nginx-lua-ds-loadbalancer

程序名称:nginx-lua-ds-loadbalancer

授权协议: Apache

操作系统: 跨平台

开发语言: Lua

nginx-lua-ds-loadbalancer 介绍

Nginx-lua-ds-loadbalancer 是一个HTTP负载均衡器,基于liseen/lua-resty-http

A http loadbalancer which is based on liseen/lua-resty-http

代码放在位于Nginx根目录下的lua/ds_lb/下

Put the code into the directory lua/ds_lb which is located in the root
directory of the Nginx

Nginx.conf的http段中添加如下配置:

Add the config below to the http seg in Nginx.conf:

lua_package_path "/u/Nginx/lua/ds_lb/?.lua;;";
lua_need_request_body on;
init_by_lua_file lua/ds_lb/init.lua;

Nginx.conf的location段中添加如下配置:

Add the config below to the location seg in Nginx.conf:

location / {
        content_by_lua_file lua/ds_lb/lb.lua;
    }

负载均衡器的配置在config.lua中

You can config loadbalancer with the file config.lua

可以自己定制调度策略,只需在sched文件夹下创建相关的调度策略文件,在其中提供get_selected_server()函数即可

You can custom your sched strategy by just creating the sched file in the
“sched” directory,and provide the function get_selected_server()

nginx-lua-ds-loadbalancer 官网

https://github.com/Hevienz/nginx-lua-ds-loadbalancer

相关编程语言

memcached-session-manager 将session存储到memchac...
Tomcat Native 这个项目可以让 Tomcat 使用 Apache ...
EasyTomcat 是一个用来帮助简化 Tomcat 和MySQL 管理...
riak-session-manager 是使用 Riak 来存储Tomcat se...
tomcat-redis-session-manager 是一个用来将 Tomcat...
这是一款在 Oracle 的 JDeveloper 开发环境下管理To...