0.0.40 • Published 10 years ago

pylon-balancer v0.0.40

Weekly downloads
34
License
-
Repository
-
Last release
10 years ago

pylon-balancer

this is a pylon-client which queries/subscribes the pylon-server for keys holding arrays containing proxy-informations. these proxy-informations will be used to create a proxy-table for http-proxy.

  • apps can report for duty by telling the pylon-server the proxy-informations
  • one or more pylon-balancers can connect to the pylon-server and proxy requests according to the proxy-informations
  • pylon-balancer implements sticky-sessions per ip (idea shamelessly stolen from https://github.com/indutny/sticky-session)

cli

TBA

api

TBA

example

balancer-server (pylon-client + http-server):

var pb = require('pylon-balancer')({namespace:'balancer'})
pb.connect(3000) // a pylon-server
pb.listen(80) // balancer-server

application (pylon-client):

var p = require('pylon')()
p.connect(3000) // a pylon-server
p.set
( 'balancer'
, [ { routes : ['foo.bar.com']  // routes which should be proxied to the app
    , port   : 3434             // the port on which the app is listening
    , host   : ''               // optional, per default it will use the
                                // ip-prefix of the pylon-key
    }
  ] )
0.0.40

10 years ago

0.0.38

11 years ago

0.0.36

11 years ago

0.0.34

11 years ago

0.0.33

11 years ago

0.0.32

11 years ago

0.0.31

12 years ago

0.0.29

12 years ago