我放棄了一段時間後,取消了elasticsearch repo-installation並下載了zip文件。然後,我創造了兩個新貴,迄今爲止所有事情都順利進行。
- 包裝
description "Start several ES-instances at once (this is a wrapper)."
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [06]
respawn
# Give up respawn if restart occurs 5 times in 120 seconds
respawn limit 5 120
env NUM_INSTANCES=4
pre-start script
for i in $(seq 1 $NUM_INSTANCES)
do
start elasticsearch-instance ID=$i
done
end script
pre-stop script
curl -XPOST "http://localhost:9200/_cluster/nodes/_local/_shutdown"
end script
- 實例
description "starts up an elasticsearch instance (node)"
stop on stopping elasticsearch
respawn
instance $ID
limit nofile 64000 64000
setuid elasticsearch
setgid elasticsearch
env JAVA_OPTS="-XX:+UseCompressedOops"
env ES_HEAP_SIZE=28G
exec /data/elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch/config/elasticsearch.yml
可能我建議運行N(4?)虛擬機並將它們設置爲節點?例如,你可以製造10臺20Gb的機器,我不確定你是否受到內存或CPU的瓶頸。 – 2014-10-02 15:12:29
感謝您的想法!然而,我不確定我是否不會因虛擬機設置的開銷而損失太多計算能力和存儲容量......服務器有8個1TB SSD設置爲RAID 10,並且願意充分利用那太... – user167172 2014-10-02 16:31:27