https://github.com/indutny/node-balancer
Node load balancer
https://github.com/indutny/node-balancer
Last synced: 7 days ago
JSON representation
Node load balancer
- Host: GitHub
- URL: https://github.com/indutny/node-balancer
- Owner: indutny
- Created: 2010-09-14T08:01:41.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-04-13T08:24:13.000Z (about 14 years ago)
- Last Synced: 2025-03-29T03:51:14.260Z (25 days ago)
- Language: JavaScript
- Homepage:
- Size: 172 KB
- Stars: 22
- Watchers: 1
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
==Installation
npm install balancer==Usage
From console:
node-balancer [config-file]
By default [config-file] = ./app.balancer
Config file must contain valid JSON object
Example config:
{
"servers" : [
"127.0.0.1:8080",
"127.0.0.1:8081"
],
"addr" : "127.0.0.1:80",
"hostname" : "www.google.com",
"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