mysql5.5でhandlersocketを使う
Debian6に入れてみます。
パッケージのインストール
aptitude install libtool aptitude install automake
リポジトリのclone
cd git git clone git://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL.git
handlersocketのビルド
gitのドキュメントがわかりやすいです。
cd HandlerSocket-Plugin-for-MySQL ./autogen.sh ./configure --with-mysql-source=/home/akiomi/src/mysql/5.5.20 --with-mysql-bindir=/home/akiomi/opt/mysql/5.5.20/bin --with-mysql-plugindir=/home/akiomi/opt/mysql/5.5.20/lib/plugin make sudo make install
handlersocketの設定
とりあえずドキュメントの設定をそのままmy.sandbox.cnfに記述する。
handlersocket_port = 9998 handlersocket_port_wr = 9999 handlersocket_address = handlersocket_verbose = 0 handlersocket_timeout = 300 handlersocket_threads = 16 thread_concurrency = 12 open_files_limit = 65535