diff options
author | dormando <dormando@rydia.net> | 2023-02-27 21:38:46 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2023-02-27 21:38:46 -0800 |
commit | b72d969ab84998ad3a8f91e37f83eaaf8e4fd8b5 (patch) | |
tree | 7d859ee9ed81c672cc7d7f8db5b3ab8dfdf8bb00 /doc | |
parent | d2e0d66899cc41b2a77ed15b715cad5dfe0f7740 (diff) | |
download | memcached-b72d969ab84998ad3a8f91e37f83eaaf8e4fd8b5.tar.gz |
crawler: mgdump documentation
Diffstat (limited to 'doc')
-rw-r--r-- | doc/protocol.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/protocol.txt b/doc/protocol.txt index 9714bd9..a92089a 100644 --- a/doc/protocol.txt +++ b/doc/protocol.txt @@ -1130,6 +1130,31 @@ The response line could be one of: - "BADCLASS [message]" to indicate an invalid class was specified. +lru_crawler mgdump <classid,classid,classid|all|hash> + +- Similar in function to the above "lru_crawler crawl" command, this function + outputs one line for every valid item found in the matching slab classes. + + If "hash" is specified instead of a classid or "all", the crawler will dump + items by directly walking the hash table instead of the LRU's. This makes it + more likely all items will be visited once as LRU reordering and locking can + cause frequently accessed items to be missed. + + Lines are in a basic metaget format, like: "mg key\r\n". If a key is in + binary format: "mg base64encodedkey b\r\n" + A user may then take each line, append any flags they want, and run those + commands against the server to fetch exactly what they want to know. + +The response line could be one of: + +- "OK" to indicate successful launch. + +- "BUSY [message]" to indicate the crawler is already processing a request. + +- "BADCLASS [message]" to indicate an invalid class was specified. + + + Watchers -------- |