【问题标题】:Elasticsearch restarts once every 10 minElasticsearch 每 10 分钟重启一次
【发布时间】:2012-02-08 05:58:00
【问题描述】:

弹性搜索每 10 分钟重新启动一次时遇到问题。

这是日志文件。

[2012-01-11 21:55:15,059][INFO ][node                     ] [Tyrannosaur] {0.18.7}[22401]: stopping ...
[2012-01-11 21:55:15,416][INFO ][node                     ] [Tyrannosaur] {0.18.7}[22401]: stopped
[2012-01-11 21:55:15,417][INFO ][node                     ] [Tyrannosaur] {0.18.7}[22401]: closing ...
[2012-01-11 21:55:15,443][INFO ][node                     ] [Tyrannosaur] {0.18.7}[22401]: closed
[2012-01-11 21:55:22,364][INFO ][node                     ] [Williams, Eric] {0.18.7}[22961]: initializing ...
[2012-01-11 21:55:22,376][INFO ][plugins                  ] [Williams, Eric] loaded [], sites []
[2012-01-11 21:55:26,245][INFO ][node                     ] [Williams, Eric] {0.18.7}[22961]: initialized
[2012-01-11 21:55:26,245][INFO ][node                     ] [Williams, Eric] {0.18.7}[22961]: starting ...
[2012-01-11 21:55:26,364][INFO ][transport                ] [Williams, Eric] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/91.123.195.252:9300]}
[2012-01-11 21:55:29,421][INFO ][cluster.service          ] [Williams, Eric] new_master [Williams, Eric][xPA_opsKQGStNtubxelOQQ][inet[/91.123.195.252:9300]], reason: zen-disco-join (elected_as_master)
[2012-01-11 21:55:29,527][INFO ][discovery                ] [Williams, Eric] resp/xPA_opsKQGStNtubxelOQQ
[2012-01-11 21:55:29,903][INFO ][http                     ] [Williams, Eric] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/91.123.195.252:9200]}
[2012-01-11 21:55:29,905][INFO ][node                     ] [Williams, Eric] {0.18.7}[22961]: started
[2012-01-11 21:55:32,511][INFO ][gateway                  ] [Williams, Eric] recovered [1] indices into cluster_state
[2012-01-11 21:56:56,137][INFO ][node                     ] [Williams, Eric] {0.18.7}[22961]: stopping ...
[2012-01-11 21:56:56,236][INFO ][node                     ] [Williams, Eric] {0.18.7}[22961]: stopped
[2012-01-11 21:56:56,237][INFO ][node                     ] [Williams, Eric] {0.18.7}[22961]: closing ...
[2012-01-11 21:56:56,262][INFO ][node                     ] [Williams, Eric] {0.18.7}[22961]: closed
[2012-01-11 21:57:03,026][INFO ][node                     ] [Carnivore] {0.18.7}[23075]: initializing ...
[2012-01-11 21:57:03,041][INFO ][plugins                  ] [Carnivore] loaded [], sites []
[2012-01-11 21:57:07,682][INFO ][node                     ] [Carnivore] {0.18.7}[23075]: initialized
[2012-01-11 21:57:07,683][INFO ][node                     ] [Carnivore] {0.18.7}[23075]: starting ...
[2012-01-11 21:57:07,841][INFO ][transport                ] [Carnivore] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/91.123.195.252:9300]}
[2012-01-11 21:57:10,925][INFO ][cluster.service          ] [Carnivore] new_master [Carnivore][qFbBoUEeQEuqH5suILfsww][inet[/91.123.195.252:9300]], reason: zen-disco-join (elected_as_master)
[2012-01-11 21:57:10,987][INFO ][discovery                ] [Carnivore] resp/qFbBoUEeQEuqH5suILfsww
[2012-01-11 21:57:11,246][INFO ][http                     ] [Carnivore] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/91.123.195.252:9200]}
[2012-01-11 21:57:11,248][INFO ][node                     ] [Carnivore] {0.18.7}[23075]: started
[2012-01-11 21:57:13,001][INFO ][gateway                  ] [Carnivore] recovered [1] indices into cluster_state

配置文件

cluster:
  name: resp

path:
  logs: /tmp/
  data: /opt/www/resp/shared/elasticsearch

这就是 elasticsearch 的启动方式

elasticsearch -f -Des.config=/opt/www/resp/current/config/elasticsearch.yml

版本

ElasticSearch Version: 0.18.7, JVM: 14.0-b16

有人知道问题出在哪里吗?

【问题讨论】:

    标签: elasticsearch


    【解决方案1】:

    ElasticSearch 需要 java 1.6 或更高版本。

    考虑升级您的 JVM

    http://www.elasticsearch.org/guide/reference/setup/installation.html

    【讨论】:

      【解决方案2】:

      我不知道为什么,但问题与god 有关。 它每 10 分钟重启一次 elasticsearch 守护进程。

      所以解决办法是停用上帝。

      【讨论】:

      • 你有没有尝试再次将上帝包裹起来?需要 Elastic 但更希望上帝监控它,您是否完全禁用了上帝的弹性搜索,或者您的上帝的弹性搜索启动文件中是否存在错误配置?谢谢
      猜你喜欢
      • 2015-08-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-11
      • 1970-01-01
      • 2023-03-16
      • 2010-11-16
      • 1970-01-01
      相关资源
      最近更新 更多