flant / redis-sentinel-proxy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redis-sentinel-proxy

Small command utility that:

  • Given a redis sentinel server listening on SENTINEL_PORT, keeps asking it for the address of a master named NAME

  • Proxies all tcp requests that it receives on PORT to that master

Usage:

./redis-sentinel-proxy -listen IP:PORT -sentinel :SENTINEL_PORT -master NAME --resolve-retries 10

testing

  • install docker and docker-compose.
  • run make tests-unit tests-intergration

About

License:MIT License


Languages

Language:Go 88.4%Language:Dockerfile 4.9%Language:Shell 4.1%Language:Makefile 2.6%