When installing Resource Agents, the following error occurs: configure. ac: 9: error: Autoconf version 2.63 or higher is required. It indicates that the autoconf version is low and the autoconf version must be installed later.
- Wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz
- Tar xzf autoconf-2.68.tar.gz
- Cd autoconf-2.68
- ./Configure
- Make & make install
- If it has already been installed, it also needs to overwrite the original one.
- Cp/usr/local/bin/autoconf/usr/bin/
Cp/usr/local/bin/autoreconf/usr/bin/
Twemproxy is a proxy server that can be used to reduce the number of connections opened by the Memcached or Redis server.
What is the purpose of Twemproxy? It can:
- Reduce the number of cache server connections by proxy
- Automatically share data among multiple cache servers
- Consistent hashing is supported through different policies and Hash Functions
- Disable failed nodes through Configuration
- Running on multiple instances, the client can connect to the first available Proxy Server
- Supports stream and batch processing of requests, thus reducing the consumption of back and forth
Salvatore Sanfilippo (@ antirez), creator of Redis, wrote an article about how to use Twemproxy to enable the Redis-cluster feature and let the Redis cluster play a role, in most cases, the performance will not be lost too much:
Twemproxy is powerful in that it can be configured to disable failed nodes, retry after a period of time, or use the specified key-> server ing. This means that when Redis is used as a data storage, it can partition Redis data sets (disable node eviction); When Redis is used as a cache, it can enable node eviction to achieve simple high availability.
Twemproxy is fast and really fast. It is almost as fast as accessing Redis directly. I dare say that in the worst case, performance only loses 20%.
My only idea of performance problems is that when I use commands on multiple instances, I think there is still room for improvements in MGET.
- Although the node can be removed dynamically, the data of the removed node is lost.
- When the redis cluster dynamically adds nodes, twemproxy does not re-distribute existing data. The author in maillist says this requires writing a script to implement it.
- Performance Loss
As early as the beginning of this year, Twemproxy was open-source by Twitter. It initially supported Memcached and recently added support for Redis. Twitter uses a large number of cache servers and sends K tweets every minute.
Https://github.com/twitter/twemproxy download package and the corresponding installation method.
Start nutcracker-d-c conf/nutcracker. yml
Nc 127.0.0.1 22222 | view the status of python-mjson. tool