栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

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

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

在一个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


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/403670.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号