configsync

command module
v0.0.0-...-cc7ac64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

README

Config Sync

Redis does not replicate configuration changes made via the CONFIG SET command. Nor does Sentinel. This is a small tool which is meant to reside on a sentinel to read it's config and synchronize all monitored slaves with their master's for a list of configuration directives.

Configuration

The configuration options currently available are telling configsync where to find the Sentinel config file and what directives to synchronize. By default it will look to /etc/redis/sentinel.conf, but this can be changed via the environment variable CONFIGSYNC_SENTINELCONFIGFILE.

Likewise CONFIGSYNC_SYNCABLEDIRECTIVELIST can be a single directive or a comma separated list of directives to synchronize to the slave(s).

If you want to run it in "pretend" mode: CONFIGSYNC_PRETENDONLY=true

Anticipated Usage

Generally this is expected to be put into a cron table to run perodically. It has been tested running against a sentinel with 100 monitored pods and runs in under half a second, so should be safe to run every minute if desired.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL