Skip to content

Python twemproxy agent for the master-change event and nutcracker config

License

Notifications You must be signed in to change notification settings

yak0/twemsentinel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TwemSentinel

Python twemproxy agent for the master-change event and nutcracker config/restart

Simply, it will update TwemProxy and restart it when redis sentinel push notify for master-change (+switch-master).

import twemsentinel
t = twemsentinel.Twemsentinel()
t.start()

You can use config.yml for configration about sentinel(ip:port) , twemproxy config file, nutcracker restart command and log file

sentinel_ip: "127.0.0.1"
sentinel_port: "26379"
twemproxy_config_file: "nutcracker.yml"
nutcracker_restart_command: "supervisorctl restart nutcracker" # or /etc/init.d/twemproxy restart
log_file: "twemsentinel.log"

About

Python twemproxy agent for the master-change event and nutcracker config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages