New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

scale

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scale

A load balancer

latest
Source
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

Scale

A load balancer

Features

  • Supports http and https protocols
  • Port forwarding

Installation

  $ npm i scale -g

Usage

  $ scale -h
    Usage: scale [options] [command]

    Commands:

      config                 show config
      start                  start scale
      stop                   stop scale
      restart                restart scale
      *                      unknown command

    Options:

      -h, --help     output usage information
      -V, --version  output the version number
      -e, --edit     edit config

  $ scale start
  info: starting scale on port 4141

  $ scale config      # show config

  $ scale -e config   # edit config

Configuration

  # Root directory to store scale data
  root: $HOME/.scale

  # Port on which scale runs
  port: 1431

  # List of servers to balance load
  servers:
    - name:
      protocol:   # http/https
      hostname:
      port:

  # Routing technique
  technique:    # random/roundrobin

  # Port forwarding
  forward:
    - port:
    target:
      hostname:
      port:

Example npm/lib/node_modules/scale/config.yml

  servers:
    - name: s1
      protocol: http
      hostname: httpbin.org
    - name: s2
      protocol: http
      hostname: stackoverflow.com
    - name: s3
      protocol: http
      hostname: www.yahoo.com
  technique: random
  forward:
    - port: 4545
      target:
        hostname: localhost
        port: 22

Caveats

  • Scale is in very very early stage, please use it just for testing and development, seriously!

Keywords

http

FAQs

Package last updated on 12 Mar 2013

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