Giter Site home page Giter Site logo

karzh / mycatlb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fengshao0907/mycatlb

0.0 2.0 0.0 15.85 MB

基于lua的负载均衡器,配置简单,性能跟nginx不相上下

Batchfile 3.30% Inno Setup 2.71% Lua 73.25% HTML 8.91% CSS 8.63% JavaScript 3.20%

mycatlb's Introduction

##CzpLB是具备动态伸缩的负载均衡器,支持特性: ###1.服务负载均衡 a.基于hash的负载均衡[可配置权重] b.基于轮询的负载均衡[可配置权重] ###2.路由链路管理 a.客户端路由信息跟踪 b.主机路由信息统计 c.断开异常的客户端连接 ###3.主机动态上下线 a.动态上线主机 b.动态下线或移除主机 c.立即下线或移除[紧急模式] d.完成当前事务后下线或移除[安全模式] ###4.性能测试(基于redis-benchmark):nginx_tcp vs czplb nginx ====== LRANGE_500 (first 450 elements) ====== 100000 requests completed in 17.05 seconds 5856.48 requests per second ====== LRANGE_600 (first 600 elements) ====== 100000 requests completed in 20.78 seconds 4811.62 requests per second ====== MSET (10 keys) ====== 100000 requests completed in 4.25 seconds 23529.41 requests per second czplb ====== LRANGE_500 (first 450 elements) ====== 100000 requests completed in 17.03 seconds 5856.86 requests per second ====== LRANGE_600 (first 600 elements) ====== 100000 requests completed in 22.17 seconds 4509.79 requests per second ====== MSET (10 keys) ====== 100000 requests completed in 4.07 seconds 24557.96 requests per second

###安装步骤 1.在bin目录下载对应的版本:windows or linux 2.windows直接点击exe文件安装,linux直接解压后运行run.sh 3.64位比32位具有更好的性能,用redis-benchmark测试,比nginx不相上下

###添加后端服务 github ###查看路由日志 github

mycatlb's People

Contributors

coderczp avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.