我放弃了一段时间后,取消了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