GithubHelp home page GithubHelp logo

mod_lbmethod_bysomekey's Introduction

mod_lbmethod_bysomekey

Customerized load balancing algorithm for apache2 (httpd-2.4.34).

description

Load balancing according to some key in the request header or request query parameters.

One specific key may be corresponding to multiple nodes. One node may contain multiple keys.

If one key is already dispatched to one node, the next request with the same key may probably be disaptched to that node as well. However, if the node is extremely more busy than a given value, the request would be dispatched to an idle node or the least busy node.

Hash-bucket data structure is used to store the key and node mapping relation.

build

cd $apache_src/modules/proxy/balancers

/usr/local/apr/build-1/libtool --silent --mode=compile gcc -std=gnu99 -g -O2 -pthread -DLINUX -D_REENTRANT -D_GNU_SOURCE -I. -I$apache_src/os/unix -I$apache_src/include -I/usr/local/apr/include/apr-1 -I$apache_src/modules/aaa -I$apache_src/modules/cache -I$apache_src/modules/core -I$apache_src/modules/database -I$apache_src/modules/filters -I$apache_src/modules/ldap -I$apache_src/server -I$apache_src/modules/loggers -I$apache_src/modules/lua -I$apache_src/modules/proxy -I$apache_src/modules/http2 -I$apache_src/modules/session -I$apache_src/modules/ssl -I$apache_src/modules/test -I$apache_src/server -I$apache_src/modules/md -I$apache_src/modules/arch/unix -I$apache_src/modules/dav/main -I$apache_src/modules/generators -I$apache_src/modules/mappers -prefer-pic -c mod_lbmethod_bysomekey.c && touch mod_lbmethod_bysomekey.slo

/usr/local/apr/build-1/libtool --silent --mode=link gcc -std=gnu99 -g -O2 -pthread -o mod_lbmethod_bysomekey.la -rpath /usr/local/apache2/modules -module -avoid-version mod_lbmethod_bysomekey.lo

mod_lbmethod_bysomekey's People

Contributors

i066088 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.