GithubHelp home page GithubHelp logo

isabella232 / load-balancer-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from restcomm/load-balancer-docker

0.0 0.0 0.0 49 KB

Repository for docker load balancer image

Home Page: http://www.restcomm.com/

License: GNU Affero General Public License v3.0

Shell 100.00%

load-balancer-docker's Introduction

RestComm Load Balancer Docker Image

FOSSA Status

RestComm is a next generation Cloud Communications Platform to rapidly build voice, video, and messaging applications, using mainstream development skills. Created by the people at Telestax.

Using the RestComm Load Balancer docker image makes running RestComm Load Balancer easy and intuitive and improve the easiness of creating Restcomm Clusters.

It uses the last successful build of the Restcomm Load Balancer project - https://github.com/RestComm/load-balancer

Environment variables:

General

  1. EXTERNAL_PORT - the SIP port used where clients should connect
  2. INTERNAL_PORT - the SIP port used where restcomm instances should connect
  3. INTERFACE - Interface to be used from LB. If not set "eth0" will be used. (optional).
  4. HOST_ADDRESS - (optional) bind address for app.
  5. LOG_LEVEL - log level for app
  6. CONFIG_URL - remote config url for app. Will be downloaded before start. Previous variables will be applied to it too
  7. AMAZON_EC2 - if true, script configures PUBLIC_IP automatically

Configure java options

  1. PROD_MODE - if true, script configures additional java options
  2. JAVA_XMS - override Xms, default 2048m
  3. JAVA_XMX - override Xmx, default 2048m
  4. JAVA_PERM_SIZE - override PermSize, default 512m
  5. JAVA_MAX_PERM_SIZE - override MaxPermSize, default 1024m
  6. JAVA_OPTS - override java options at all

Config file:

By default app uses config file from docker container. Config file are localted by path /opt/loadbalancer/config. In the user guide you can see how to configurate load balancer through config file - Restcomm Load Balancer User Guide

Also you have 2 additional ways to specify config file:

  1. use CONFIG_URL: config file will be downloaded and processed on start
  2. attach volume with config: -v $PWD/config-lb-dir:/opt/loadbalancer/config

Test :

  1. Launch Docker Restcomm Load Balancer with command docker run --name=lb restcomm/load-balancer:latest
  2. Check the host address from the logs Setup host: 172.17.0.14
  3. Launch Docker Restcomm Core with command docker run -i --name=restcomm-lb -v /var/log/restcomm/:/var/log/restcomm/ -e STATIC_ADDRESS=192.168.1.12 -e USE_STANDARD_PORTS=false -e LOAD_BALANCERS=172.17.0.14 -e CONFIG_URL="https://raw.githubusercontent.com/RestComm/Restcomm-Docker/master/scripts/restcomm_env_locally.sh" -p 80:80 -p 443:443 -p 9990:9990 -p 5060:5060 -p 5061:5061 -p 5062:5062 -p 5063:5063 -p 5060:5060/udp -p 65000-65050:65000-65050/udp restcomm/restcomm:lb
  4. Register your Jitsi SIP client to use host address of the LB (ie 172.17.0.14 and port 5060 here) and place a call to sip:[email protected]

License

FOSSA Status

load-balancer-docker's People

Contributors

croufay avatar deruelle avatar fossabot avatar hamsterksu avatar kostyantynnosach-mobius avatar leftyb avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.