diff options
author | Kevin Lin <developer@kevinlin.info> | 2021-05-29 22:19:43 -0700 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2021-08-07 01:16:14 -0700 |
commit | 617d7cd64d04698b76fee74882627690017e20ad (patch) | |
tree | de5c4b129c419ba32e1a403d58871bd0f05da25d /doc | |
parent | a54f34f34c3ddef3f6e13f62f3ab673f681cac95 (diff) | |
download | memcached-617d7cd64d04698b76fee74882627690017e20ad.tar.gz |
Implement LOG_CONNEVENTS watcher flag for connection state transitions
Add support for `watch connevents` to report opened (`conn_new`)
and closed (`conn_close`) client connections. Event log lines indicate
the connection's remote IP, remote port, and transport type.
`conn_close` events additionally supply a reason for the closing the
connection.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/protocol.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/protocol.txt b/doc/protocol.txt index e059d2d..b34690b 100644 --- a/doc/protocol.txt +++ b/doc/protocol.txt @@ -1125,7 +1125,7 @@ Watchers are a way to connect to memcached and inspect what's going on internally. This is an evolving feature so new endpoints should show up over time. -watch <fetchers|mutations|evictions> +watch <fetchers|mutations|evictions|connevents> - Turn connection into a watcher. Options can be stacked and are space-separated. Logs will be sent to the watcher until it disconnects. @@ -1160,6 +1160,11 @@ The arguments are: cache. Useful in seeing if items being evicted were actually used, and which keys are getting removed. +- "connevents": Emits logs when connections are opened and closed, i.e. when + clients connect or disconnect. For TCP transports, logs indicate the remote + address IP and port. Connection close events additionally supply a reason for + closing the connection. + Statistics ---------- |