Skip to content
Node load balancer
Find file
Latest commit c574a8d @indutny (bump) version
Failed to load latest commit information.
lib/balancer double server var, server => selected
README.rdoc added hostname
app.balancer added spread single option
node-balancer added hostname
package.json (bump) version



npm install balancer


From console:

node-balancer [config-file]
By default [config-file] = ./app.balancer
Config file must contain valid JSON object
Example config:
  "servers" : [
  "addr" : "",
  "hostname" : "",
  "spread" : {,
    "include": ".*",
    "exclude": "\\\\.json$"
"servers" - servers list
"addr" - balancer address
"spread" - balancer can spread request to random server
           use this option to configure rules of spread
           "include", "exclude" - should contain RegExp
Something went wrong with that request. Please try again.