HA / Perf / Cache


Backup and Restore Redis-Server Database

The server can be installed using: apt-get update apt-get install redis-server Next, verify in /etc/redis/redis.conf for these two lines: dbfilename dump.rdb dir /var/lib/redis The first one is the name of the backup dump file that will be generated and the second line describes the folder where it will be located. This command will launch the […]


Installing Redis-CLI without installing the whole server

On Debian actually there is only one package redis-server in order to install the server and its tools. If you would like to have the client only, you can achieve this as follows. As a prerequesite you need to install these packages: apt-get install libjemalloc1 libjemalloc-dev gcc make Then proceed with the actual installation: cd /tmp wget http://download.redis.io/redis-stable.tar.gz […]


Installing Redis 2.8 Master/Slave on Debian Wheezy

First activate the dotdeb repository: echo "deb http://packages.dotdeb.org wheezy all" > /etc/apt/sources.list.d/dotdeb.list echo "deb-src http://packages.dotdeb.org wheezy all" >> /etc/apt/sources.list.d/dotdeb.list cd /tmp wget http://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg apt-get update apt-get install redis-server Here are a few lines that you might want to have a look at in /etc/redis/redis.conf: If redis is supposed to be reachable only […]


Installing Memcached with Replication (repcached)

First install the needed packages: apt-get install gcc make build-essential libevent-dev libevent-1.4-2 libevent-core-1.4-2 Go here to download the repcached package: http://sourceforge.net/projects/repcached/files/latest/download?source=files You can also find it here. Unpack and install it: tar -xvpf memcached-1.2.8-repcached-2.2.tar.gz ./configure –enable-replication make make install Next you should set up the configuration file for memcached /etc/default/memcachedrep with the following content: DAEMON_ARGS="-m 512 -p […]