yak0 / twemsentinel Goto Github PK
View Code? Open in Web Editor NEWPython twemproxy agent for the master-change event and nutcracker config
License: Apache License 2.0
Python twemproxy agent for the master-change event and nutcracker config
License: Apache License 2.0
Hi,
I am facing problem that sometime event not captured at sentinel like +convert to slave event not captured by sentinel that i used due to this twemsentinel unable to update the the nutcracker conf.
So please suggest the way to solve out this problem.
Hi,
I have just configure the twemsentinel but facing below error while restart the sentinel.
restart
nutcracker: ERROR (no such process)
nutcracker: ERROR (no such process)
restart error
config.yml :-
sentinel_ip: "10.247.74.38"
sentinel_port: "26380"
twemproxy_config_file: "nutcracker.yml"
nutcracker_restart_command: "supervisorctl restart nutcracker"
log_file: "twemsentinel.log"
Please help to resolve the issue.
Hi,
I am facing issue while restart nutcracker through supervisorctl through twemsentinel.py file but its working fine when i run the supervisorctl command alone.
supervisord conf :-
supervisord]
logfile=/home/cache/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/home/cache/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
;umask=022 ; (process file creation umask;default 022)
user=cache ; (default is current user, required if root)
;identifier=supervisor ; (supervisord identifier, default is 'supervisor')
;directory=/tmp ; (default is not to cd during start)
;nocleanup=true ; (don't clean up tempfiles at start;default false)
;childlogdir=/tmp ; ('AUTO' child log dir, default $TEMP)
;environment=KEY="value" ; (key value pairs to add to environment)
;strip_ansi=false ; (strip ansi escape codes in logs; def. false)
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
user=cache
;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
;username=chris ; should be same as http_username if set
;password=123 ; should be same as http_password if set
;prompt=mysupervisor ; cmd line prompt (default "supervisor")
;history_file=~/.sc_history ; use readline history if available
[program:nutcracker1]
command=nutcracker1 -c /home/cache/twemproxy-master/conf/nutcracker.yml -v 5 -o /home/cache/twemproxy-master/conf/nutcracker.log
stderr_logfile = /home/cache/nutcracker-err.log
stdout_logfile = /home/cache/nutcracker-out.log
startretries=40
Please help to resolve.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.