Twemproxy, also known as Netcracker, is a high-performance protocol router (proxy server) that can be used in Memcached/redis clusters to support data fragmentation.
Take a lap in foreign countries do not find anyone to the RPM package, it is estimated that everyone is waiting for Redis 3.0 cluster bar. So studied, and wrote a spec file. The compiled installation has a version requirement for autoconf and M4, so this SRPM package works only on CentOS 7 and cannot be used directly on CENTOS6 unless the upgrade depends on the package.
The boot script is not included because it is not familiar with the Systemd boot script for CentOS 7.
You can use the following method to manually start or join the/etc/rc.local implementation of the boot
/usr/sbin/nutcracker-c/etc/twemproxy/nutcracker.yml-d
Package Contents
#rpm-QPL Twemproxy-0.4.0-2.el7.centos.x86_64.rpm/etc/twemproxy/etc/twemproxy/nutcracker.yml/usr/sbin/nutcracker /usr/share/man/man8/nutcracker.8.gz
Here's an introduction from Oschina
Twemproxy is a fast single-threaded agent that supports Memcached the ASCII protocol and the updated Redis protocol. It is all written in C and is licensed using Apache 2.0 license. The project can work on Linux and cannot be compiled on OSX because it relies on the Epoll API.
Characteristics:
-
Fast speed
-
Lightweight
-
Maintaining a persistent server connection
-
Keeps connection count on the backend caching servers low.
-
Enable requests and responses for pipelines
-
Support for proxies to multiple servers
-
Supports multiple server pools at the same time
-
Multiple servers automatically share data
-
The complete memcached ASCII and REDIS protocol is implemented.
-
Server pool configuration is simple, with a YAML file
-
Supports multiple hashing modes including consistent hashing and distribution.
-
Configurable to disable a node on failure
-
Observability through stats exposed on stats monitoring port.
-
Support for Linux, *BSD, OS X and Solaris (Smartos)
MD5 value
AEF8D577A88820372E781D251DA71DBA twemproxy-0.4.0-2.el7.centos.src.rpm
Reference documents
Https://github.com/twitter/twemproxy
Http://www.oschina.net/p/twemproxy
This article is from the "Focus on Linux Operations" blog, please be sure to keep this source http://purplegrape.blog.51cto.com/1330104/1589679
"Compiling and packaging" twemproxy-0.4.0-2.el7.centos.src.rpm