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 to N. (default: 5, min: 0, max: 11) β€” yes the max is eleven. it goes to eleven. πŸ”₯
  • -o, --output=filename β€” Set logging file to filename. where the receipts go. 🧾
  • -c, --conf-file=filename β€” Set configuration file to filename. this is the one that matters most, ngl. πŸŽ€
  • -s, --stats-port=port β€” Set stats monitoring port to port. (default: 22222) β€” five twos, iconic. ✨
  • -a, --stats-addr=address β€” Set stats monitoring IP to address. (default: 0.0.0.0) β€” listen on everything, apparently. 🌈
  • -i, --stats-interval=interval β€” Set stats aggregation interval in msec to interval. (default: 30000 msec) β€” that's 30 seconds of tea being gathered. πŸ“
  • -m, --mbuf-size=size β€” Set size of mbuf chunk in bytes to size. (default: 16384 bytes) β€” 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 to filename. so you can find it later, iykyk. πŸ”

✨ SEE ALSO ✨

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 πŸ’–βœ¨πŸŽ€