在一个Ubuntu服务器上将多个Elasticsearch节点作为服务运行

在一个Ubuntu服务器上将多个Elasticsearch节点作为服务运行,第1张

在一个Ubuntu服务器上将多个Elasticsearch节点作为服务运行

一段时间后,我放弃了,删除了elasticsearch重新安装并下载了zip文件。然后,我创建了两个新贵职位,到目前为止一切正常。

  1. 包装纸
    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 secondsrespawn limit 5 120env NUM_INSTANCES=4pre-start script    for i in $(seq 1 $NUM_INSTANCES)    do        start elasticsearch-instance ID=$i    doneend scriptpre-stop script    curl -XPOST "http://localhost:9200/_cluster/nodes/_local/_shutdown"end script

  1. 执行个体
    description "starts up an elasticsearch instance (node)"stop on stopping elasticsearchrespawninstance $IDlimit nofile 64000 64000setuid elasticsearchsetgid elasticsearchenv JAVA_OPTS="-XX:+UseCompressedOops"env ES_HEAP_SIZE=28Gexec /data/elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch/config/elasticsearch.yml


欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zaji/5012843.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-14
下一篇 2022-11-14

发表评论

登录后才能评论

评论列表(0条)

保存