# twemproxy-vip **Repository Path**: vipshop/twemproxy-vip ## Basic Information - **Project Name**: twemproxy-vip - **Description**: twemproxy (pronounced "two-em-proxy"), aka nutcracker is a fast and lightweight proxy for memcached and redis protocol. It was primarily built to reduce the connection count on the backend caching servers. - **Primary Language**: C - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2020-08-18 - **Last Updated**: 2025-09-19 ## Categories & Tags **Categories**: cache-modules **Tags**: None ## README # twemproxy (nutcracker) [![Build Status](https://secure.travis-ci.org/twitter/twemproxy.png)](http://travis-ci.org/twitter/twemproxy) **twemproxy** (pronounced "two-em-proxy"), aka **nutcracker** is a fast and lightweight proxy for [memcached](http://www.memcached.org/) and [redis](http://redis.io/) protocol. It was primarily built to reduce the connection count on the backend caching servers. ## Build To build nutcracker from [distribution tarball](http://code.google.com/p/twemproxy/downloads/list): $ ./configure $ make $ sudo make install To build nutcracker from [distribution tarball](http://code.google.com/p/twemproxy/downloads/list) in _debug mode_: $ CFLAGS="-ggdb3 -O0" ./configure --enable-debug=full $ make $ sudo make install To build nutcracker from source with _debug logs enabled_ and _assertions enabled_: $ git clone git@github.com:twitter/twemproxy.git $ cd twemproxy $ autoreconf -fvi $ ./configure --enable-debug=full $ make $ src/nutcracker -h Few checklists: + use newer version of gcc (older version of gcc has problems) + use CFLAGS="-O1" ./configure && make + use CFLAGS="-O3 -fno-strict-aliasing" ./configure && make ## New Features + New command: replace_server(now just for redis). + Log rotate: we add three startup items:-R(--log-rotate), -M(--log-file-max-size) and -C(--log-file-count). If you want use this function, use -R to run the nutcracker. -M requires a file size between 1000000 and 1122601371959296 bytes(1PB). -C requires an integer between -1 and 200, -1 means do not delete old log files, 0 means delete all old log files, N(0