Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

crlf

  • Loading branch information...
commit 24cada6225343e6ef77a0ea0a44a24f30f65db55 1 parent e996813
@indutny authored
Showing with 28 additions and 1 deletion.
  1. +28 −1 README.rdoc
View
29 README.rdoc
@@ -1 +1,28 @@
-==Installation
+==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",
+ "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
Please sign in to comment.
Something went wrong with that request. Please try again.