はじめに
elasticsearch
を運用していくにあたっての個人的メモ
インストールとちょっと使う
インストール
Ubuntu 13.04
の場合には下記のステップでインストールすることが出来る。
sudo apt-get install openjdk-6-jdk cd /tmp wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.6.deb sudo dpkg -i elasticsearch-0.90.6.deb
ちょっと使う
コマンドラインから以下を実行。
curl -XGET 'http://localhost:9200/_nodes/process?pretty'
ノードの情報を確認することが出来る。
{ "ok" : true, "cluster_name" : "elasticsearch", "nodes" : { "HlHT4Z21R3yHkjxQfylGVQ" : { "name" : "Hannibal King", "transport_address" : "inet[xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx:9300]", "hostname" : "ubuntu1304", "version" : "0.90.6", "http_address" : "inet[/xxx.xxx.xxx.xxx:9200]", "process" : { "refresh_interval" : 1000, "id" : 6087, "max_file_descriptors" : 65535 } } } }
データディレクトリ
- デフォルトでは
/var/lib/elasticsearch
に保存される /var
が少なめのホストは注意する
ログ
/etc/elasticsearch/logging.yml
で設定- 特に指定が無い場合には
/var/log/elasticsearch
以下に保存される
各種設定
/etc/elasticsearch/elasticsearch.yml
で設定- 上記では何も設定しなくても動くことは動く
参考
最後に
- まだまだ修行が必要