1.0.11 • Published 9 years ago

tm-consul-cluster-manager v1.0.11

Weekly downloads
1
License
ISC
Repository
bitbucket
Last release
9 years ago

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

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago