Skip to content

Tools for configuring SmartStack's Nerve based on local sources

License

Notifications You must be signed in to change notification settings

bplotnick/nerve-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nerve-tools

Build Status

Tools for working with nerve. This repo builds as a dh_virtualenv package, and provides three entry points:

configure_nerve

Determines the list of services running on the local box (scheduled by Paasta or manually configured), writes out a nerve config, and restarts nerve.

updown_service

De-register a service. Tells hacheck to fail healthchecks for a service, and waits until the deregistration has propagated to the local synapse.

clean_nerve

Clean up orphaned ZK nodes left by nerve.

Configuration

This package uses environment_tools to reason about location hierarchies; you must have a location_types.json and location_mapping.json describing your environments.

You will also need zookeeper topology files, at /nail/etc/zookeeper_discovery/infrastructure/{superregion}.yaml. This must parse as a list of servers; each server is represented as a list of [hostname, port].

For example:

---
 - ["hostname1", 2181]
 - ["hostname2", 2181]
 - ["hostname3", 2181]

See the Paasta documentation for per-service info.

About

Tools for configuring SmartStack's Nerve based on local sources

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 94.1%
  • Dockerfile 3.6%
  • Makefile 1.9%
  • Shell 0.4%