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

tm-consul-cluster-manager

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tm-consul-cluster-manager

Trinity mirror, configuration manager. watches consul KV store, and writes out the configuration files. Manages the PM2 cluster, by restarting the scripts

  • 1.0.11
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Tm-consul-cluster-manager

Trinity mirror cluster manager, tied to Hashicorp consul for configuration management.

processes

Watches a consul KV endpoint, For a configuration file list, defined as a JSON array. Contacts those KV endpoints and downloads and writes out the NodeJS configuration files for the scripts to consume. Upon either modification or startup, manages the PM2 process manager to start or restart the cluster.Cluster is defined from a pm2.json file.

Set the enviroment variable

CONSUL_URL=http://192.168.99.100:8500/v1/kv/configmanifest

This is the config manifest file list which is defined as such


[{
    "key": "development",
    "dest": "config/development.js"
}]

This will then load the value store in the 'key' attribute, and save it in to the specified 'dest' file

see example/master.js

Keywords

FAQs

Package last updated on 12 Oct 2015

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