[elasticsearch] 운영에 필요한 실행 스크립트.
Elastic/Elasticsearch 2014. 1. 17. 10:55분명 글을 작성했던 것 같은데 보이질 않내요.
그래서 다시 올려 봅니다. ㅡ.ㅡ;;
[start.sh]
#!/bin/bash
export ES_HEAP_SIZE=256m
export ES_HEAP_NEWSIZE=128m
export JAVA_OPT="-server -XX:+AggressiveOpts -XX:UseCompressedOops -XX:MaxDirectMemorySize -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly"
ES=/home/es/app/elasticsearch
$ES/bin/elasticsearch -p $ES/bin/es.pid -Des.config=$ES_NODE/config/elasticsearch.yml -Djava.net.preferIPv4Stack=true -Des.max-open-files=true > /dev/null 2>&1 &
[stop.sh]
#!/bin/bash
ES=/home/es/app/elasticsearch
/bin/kill `cat < $ES/bin/es.pid`