目次

12 memtier_benchmark redis

必要なライブラリ

yum -y install epel-release
yum -y install gcc make binutils autoconf automake libtool pkgconfig \
	zlib-devel openssl-devel libxml2-devel jemalloc-devel systemd-devel \
	CUnit-devel libevent-devel c-ares-devel libev-devel redis gcc-c++ \
    pcre-devel libmemcached-devel 
yum -y install dbench fio jq bc ipmitool wget git

Libevent install

 wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
 tar xfz libevent-2.0.21-stable.tar.gz
 pushd libevent-2.0.21-stable
 ./configure
 make
 make install
 popd
 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}

memtier_benchmark install

 git clone https://github.com/RedisLabs/memtier_benchmark.git
 cd memtier_benchmark
 autoreconf -ivf
 ./configure
 make
 make install

ベンチマーク

host:127.0.0.1 port:6379 10スレッド 100コネクション SET:GETコマンドの割合が1:2 データ1kbyte リクエスト10000

memtier_benchmark -s 127.0.0.1 -p 6379 -t 10 -c 100 -R --ratio=1:2 -d 1000 -n 10000