Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

balancer

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

balancer

Load Balancer for node.js (supports WebSockets)

  • 0.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
0
Weekly downloads
 
Created
Source

==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

Keywords

FAQs

Package last updated on 13 Apr 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc