Git Product home page Git Product logo

janrain-backplane-2's Introduction

Backplane README

This Backplane Server implements both the [Backplane v2.0] 2 and the previous [Backplane v1.2] 1 specifications.

Specifics for each of the Backplane versions are described in the following README files:

  • [README12.md] 4

  • [README20.md] 5

The deployment environment is Amazon AWS / EC2 and the storage engine used is Redis.

Environment Configuration

The Backplane Server learns its bootstrap configuration parameters from the following environment variables:

  • ZOOKEEPER_SERVERS: (Required) List of ZooKeeper servers, which will just be a single entry, if a ZooKeeper server is run on each Backplane node (e.g., "localhost:2181").

  • REDIS_SERVER_PRIMARY: (Required) Location of primary Redis server (e.g., "redis1.databaseserver.com:6379").

  • REDIS_SERVER_READS: (Required) Location of Redis server for reads [may be the same as the primary] (e.g., "localhost:6379").

  • AWS_INSTANCE_ID : (Required) Used for logging (e.g., "AWS_INSTANCE_ID=BACKPLANE").

  • GRAPHITE_SERVER: (Optional) Destination for Backplane metrics (e.g., "graphite.reporting.com:2003").

  • IP_WHITE_LIST: (Optional) Allowed IP addresses to access the /backplane_metrics endpoint (e.g., "123.123.123.123, 234.234.234.234"). Localhost is allowed as default.

Backplane Server Configuration

  • DEBUG_MODE: boolean flag for debug logging and behavior

  • CONFIG_CACHE_AGE_SECONDS: how long to keep this server configuration data in a memory cache

  • CLEANUP_INTERVAL_MINUTES: how often to run a thread for cleaning up expired items, such as messages, tokens, sessions, etc.

  • DEFAULT_MESSAGES_MAX: the default maximum number of messages in a Backplane channel, if not explicitly configured for the channel's bus

Administrator Authentication

Administrators can access the Bus Provisioning API and update Bus Configuration data.

To add the admin user account on initial deployment, use the /admin web interface.

  • USER: admin username

  • PWDHASH: admin password (hash)

Building From Source

This project requires the [Maven] 3 build tool.

    mvn package -DskipTests=true

To process the tests, you must start the Redis and ZooKeeper instances.

Use the following modification to the Maven build command (be sure to add your parameters):

    mvn package -DargLine="AWS_INSTANCE_ID=test -DZOOKEEPER_SERVERS=localhost:2181 -DREDIS_SERVER_PRIMARY=localhost:6379 -DREDIS_SERVER_READS=localhost:6379"

Maven will create a WAR file for deployment in the /target/ directory.

janrain-backplane-2's People

Contributors

traney avatar snewtonj avatar

Watchers

 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.