Comments (3)
It is possible to answer which servers are not in the pool looking by looking at the following stats
https://github.com/twitter/twemproxy/blob/master/src/nc_stats.h#L38
https://github.com/twitter/twemproxy/blob/master/src/nc_stats.h#L38
https://github.com/twitter/twemproxy/blob/master/src/nc_stats.h#L38
- server_eof is incremented when the server close the connection normally (which should not happen because we use persistent connection)
- server_timedout is incremented when the connection / request to server timedout
- server_err is incremented for any other kinds of error
So, on a given server, the cumulative number of times server is ejected can be computed as (server_err + server_timedout + server_eof) / server_failure_limit
A diff of the above value between two successive minutes would give you a nice timeseries graph
from twemproxy.
Also if you run twemproxy with "-v 6" option you would see the following log line when a server is ejected.
https://github.com/twitter/twemproxy/blob/master/src/nc_server.c#L278
from twemproxy.
updated notes here: https://github.com/twitter/twemproxy/blob/master/notes/recommendation.md#graphing-cache-pool-state
from twemproxy.
Related Issues (20)
- command with no keys, the return value is inconsistent with redis HOT 4
- Invalid argument when hmset HOT 1
- Cross Region Replication Support HOT 1
- Monotonically Increasing CPU usage for redis proxy HOT 3
- Twemproxy does not release memory for mbufs: Free list garbage collection approach HOT 1
- Not working redis-sentinel-feature HOT 2
- Building release 0.5.0 on OpenBSD 7.0 fails with `ld: error: undefined symbol: backtrace` HOT 1
- we have Redis Cluster ,what's twemproxy usage for Redis now?
- add HRANDFIELD HOT 5
- twemproxy支持blpop指令么? HOT 2
- Question: Can we pass/upload configuration file through web browser?
- error logs: NC_ request HOT 2
- possible bug in slots count reported in verbose logging statement HOT 1
- Q: still copy after each msg_parsed?? HOT 1
- memcached replication (with consistant hash) HOT 2
- Do not ship/install "test_all"
- Murmur implementation is not endian/alignment-neutral
- Getting error "" Redis connection lost and commands aborted in uncertain state. They might have been processed."'
- nutcracker sets umask only upon daemonization HOT 1
- fuzzing integration in oss-fuzz HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twemproxy.