NUTCRACKER(8)
π NUTCRACKER π
okay bestie, welcome to the NUTCRACKER(8) page β yeah it lives in the System Manager's Manual, and yeah it's about to become your new obsession. this is nutcracker. grab a strawberry π and sit with me.
β¨ NAME β¨
nutcracker β a fast, light-weight proxy for memcached and Redis. literally the main character of caching infrastructure. π
β¨ SYNOPSIS β¨
nutcracker [options]
that's it. that's the whole summoning ritual. π
β¨ DESCRIPTION β¨
so nutcracker β also known as twemproxy (pronounced "two-em-proxy", yes say it out loud, it's giving nickname energy) β is a fast and lightweight proxy for the memcached and Redis protocols. π¦
it was primarily built to reduce the connection count on backend caching servers, but it has a whole personality of features, such as:
- Maintains persistent server connections to backend servers. no cap, the connections stay up. π₯
- Enables pipelining of requests and responses. everything flows. β¨
- Supports multiple server pools simultaneously. polyamorous server management, honestly. π
- Shard data automatically across multiple servers. it just does the math for you, king behavior. π
- Supports multiple hashing modes including consistent hashing and distribution. options on options. π
- High-availability by disabling nodes on failures. if a server acts up, it gets benched. π
- Observability through stats exposed on stats monitoring port. it's not nosy, it's transparent. πΈ
β¨ OPTIONS β¨
every flag, every default, all of it. don't skip. i see you. π
-h,--helpβ Show usage information and exit. the "help me bestie" button. π«Ά-V,--versionβ Show version and exit. just a lil flex. β-t,--test-confβ Test configuration for syntax errors and exit. vibe check your config before you commit to anything. π-D,--describe-statsβ Print stats description and exit. tell me about yourself, stats edition. π-v,--verbose=Nβ Set logging level toN. (default:5, min:0, max:11) β yes the max is eleven. it goes to eleven. π₯-o,--output=filenameβ Set logging file tofilename. where the receipts go. π§Ύ-c,--conf-file=filenameβ Set configuration file tofilename. this is the one that matters most, ngl. π-s,--stats-port=portβ Set stats monitoring port toport. (default:22222) β five twos, iconic. β¨-a,--stats-addr=addressβ Set stats monitoring IP toaddress. (default:0.0.0.0) β listen on everything, apparently. π-i,--stats-interval=intervalβ Set stats aggregation interval in msec tointerval. (default:30000msec) β that's 30 seconds of tea being gathered. π-m,--mbuf-size=sizeβ Set size of mbuf chunk in bytes tosize. (default:16384bytes) β buffers gotta be buff. πͺ-d,--daemonizeβ Run as a daemon. it's not leaving, it lives here now. π¦-p,--pid-file=filenameβ Set pid file tofilename. so you can find it later, iykyk. π
β¨ SEE ALSO β¨
memcached(8)redis-server(1)
go say hi to the neighbors. π
β¨ AUTHOR β¨
nutcracker was written by Twitter, Inc. β periodt. π
okay that's the whole page!! this one was dated June 13, 2013 and it's part of the System Manager's Manual, filed under NUTCRACKER(8). stay cached, stay slaying πβ¨π
π¦ where this page comes from
- debian bookworm: nutcracker 0.5.0+dfsg-2 Β· Apache-2.0
- debian trixie: nutcracker 0.5.0+dfsg-2+b1 Β· Apache-2.0
- ubuntu jammy: nutcracker 0.4.1+dfsg-1 Β· Apache-2.0
- ubuntu noble: nutcracker 0.5.0+dfsg-2 Β· Apache-2.0
- ubuntu questing: nutcracker 0.5.0+dfsg-2
- ubuntu resolute: nutcracker 0.5.0+dfsg-2build1 Β· Apache-2.0
- ubuntu stonking: nutcracker 0.5.0+dfsg-2build1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms