我们遇到了一个问题,其中一个Elasticsearch数据节点完全在AWS中死亡。即使使用第二个节点,我们也无法将群集重新联机。它最初出现在yellow
状态,我们可以检索数据但不能写入数据。
Elasticsearch错误
[2016-09-12 13:16:42,312] [警告] [discovery.zen.ping.unicast] [witness.domain.net]未能将ping发送到[{#cloud-i-cb397257-0} {1.1.1.1} {1.1.1.1:9300}] RemoteTransportException [[datanode.domain.net] [1.1.1.1:9300] [内部:发现/禅/单播]];嵌套:IllegalStateException [未启动时收到ping请求]; 引起:java.lang.IllegalStateException:未启动时收到ping请求
Logstash错误
{:timestamp =>" 2016-09-12T15:48:15.898000-0400",:message =>#900592725,:events_consumed => 900732955,:worker_count => 4, :inflight_count => 0,:worker_states => [{:status =>" sleep",:alive => true,:index => 0,:inflight_count => 0}, {:status =>" sleep",:alive => true,:index => 1,:inflight_count => 0},{:status =>" sleep&#34 ;,:alive => true,:index => 2,:inflight_count => 0},{:status =>" sleep",:alive => true,:index => ; 3,:inflight_count => 0}],:output_info => [{:type =>" gelf",:config => {" host" => " 127.0.0.1"," ALLOW_ENV " => false},:is_multi_worker => false,:events_received => 900592725,:workers =>" 127.0.0.1",codec =>" UTF-8">,workers => 1,port => 12201,chunksize => 1420, sender =>"%{host}",level => ["%{severity}"," INFO"],ship_metadata => true ,ship_tags => true,ignore_metadata => [" @t imestamp"," @ version"," severity"," host"," source_host"," source_path" ," short_message"],full_message =>"%{message}",short_message =>" short_message">]>,:busy_workers =&gt ; 0}],:thread_info => [{" thread_id" => 17," name" =>" [main] nil," backtrace& #34; = GT; [" [...] /供应商/束/的jruby / 1.9 /宝石/ JRuby的OpenSSL的-0.9.13-java的/ LIB / jopenssl19 / OpenSSL的/ SSL-internal.rb:106 :在accept'", "[...]/vendor/bundle/jruby/1.9/gems/jruby-openssl-0.9.13-java/lib/jopenssl19/openssl/ssl-internal.rb:106:in
接受'"," [...] / vendor / bundle / jruby / 1.9 / gems / logstash-input-tcp-3.0.6 / lib / logstash / inputs / tcp.rb:112:在run_server'", "[...]/vendor/bundle/jruby/1.9/gems/logstash-input-tcp-3.0.6/lib/logstash/inputs/tcp.rb:84:in
运行'"," [...] / vendor / bundle / jruby / 1.9 / gems / logstash-core-2.3.3 -java / lib / logstash / pipeline.rb:342:在inputworker'", "[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:336:in
start_input'"]," blocked_on" => nil," status" =>"睡眠"," current_call" =>" [...] / vendor / bundle / jruby / 1.9 / gems / jruby-openssl-0.9.13 -java / lib / jopenssl19 / openssl / ssl-internal.rb:106:在accept'"}, {"thread_id"=>18, "name"=>"[main]>worker0", "plugin"=>["LogStash::Filters::Grok", {"patterns_dir"=>"/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-patterns-core-2.0.5/patterns/", "match"=>{"message"=>"%{SYSLOGBASE2}"}}], "backtrace"=>["[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:309:in
同步'"," [...] / vendor / bun dle / jruby / 1.9 / gems / logstash-core-2.3.3-java / lib / logstash / pipeline.rb:309:在inflight_batches_synchronize'", "[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:234:in
worker_loop'"," [.. 。] / vendor / bundle / jruby / 1.9 / gems / logstash-core-2.3.3-java / lib / logstash / pipeline.rb:201:in start_workers'"], "blocked_on"=>nil, "status"=>"sleep", "current_call"=>"[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:309:in
synchronize'"},{ " thread_id" => 19," name" =>" [main]> worker1"," plugin" => [ " LogStash :: Filters :: Grok",{" patterns_dir" =>" /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-patterns- core-2.0.5 / patterns /","匹配" => {"消息" =>"%{SYSLOGBASE2}"}} ]," backtrace" => [" [...] / vendor / bundle / jruby / 1.9 / gems / logstash-core-2.3.3-java / lib / logstash / pipeline。 rb:309:在synchronize'", "[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:309:in
inflight_batches_synchronize'"," [...] / vendor / bundle / jruby / 1.9 / gems / logstash-core-2.3.3-java / lib /logstash/pipeline.rb:234:in worker_loop'", "[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:201:in
start_workers'"]," blocked_on" => nil," status" =>& #34; sleep"," current_call" =>" [...] / vendor / bundle / jruby / 1.9 / gems / logstash-core -2.3.3-java / lib / logstash / pipeline.rb:309:在synchronize'"}, {"thread_id"=>20, "name"=>"[main]>worker2", "plugin"=>["LogStash::Filters::Grok", {"patterns_dir"=>"/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-patterns-core-2.0.5/patterns/", "match"=>{"message"=>"%{SYSLOGBASE2}"}}], "backtrace"=>["[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:309:in
同步'"," [...] / vendor / bundle / jruby / 1.9 / gems / logstash-core-2.3.3-java / lib / logstash / pipeline.rb:309:在inflight_batches_synchronize'", "[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:234:in
worker_loop'"," [...] / vendor / bundle /jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:201:in start_workers'"], "blocked_on"=>nil, "status"=>"sleep", "current_call"=>"[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:309:in
同步'"},{" thread_id&# 34; => 21,"名称" =>" [主要]> worker3","插件" => [" LogStash: :过滤器:: Grok",{" patterns_dir" =>" /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-patterns-core-2.0.5/模式/","匹配" => {"消息" =>"%{SYSLOGBASE2}"}}]," backtrace" => [" [...] / vendor / bundle / jruby / 1.9 / gems / logstash-core-2.3.3-java / lib / logstash / pipeline.rb:309:in { {1}} inflight_batches_synchronize'"," [...] / vendor / bundle / jruby / 1.9 / gems / logstash-core-2.3.3-java / lib / logstash / pipeline.rb :234:在synchronize'", "[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:309:in
start_workers'"]," blocked_on" => nil," status" =>&#34 ; sleep"," current_call" =>" [...] / vendor / bundle / jruby / 1.9 / gems / logstash-core-2.3.3-java / lib / logstash /pipeline.rb:309:worker_loop'", "[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:201:in
接受&#39;&#34;},{&#34; thread_id&#34; =&gt; 18,&#34;名称&#34; =&gt;&# 34; [main]&gt; worker0&#34;,&#34;插件&#34; =&gt; [&#34; LogStash :: Filters :: Grok&#34;,{&#34; patterns_dir&#34; =&gt; ;&#34; /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-patterns-core-2.0.5/patterns /" ;,&#34;匹配&#34; =&gt; {& #34;消息&#34; =&gt;&#34;%{SYSLOGBASE2}&#34;}}],&#34; current_call&#34; =&gt;&#34; [...] / vendor / bundle /jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:309:in synchronize'"}], :stalling_threads_info=>[{"thread_id"=>17, "name"=>"[main]<tcp", "plugin"=>nil, "current_call"=>"[...]/vendor/bundle/jruby/1.9/gems/jruby-openssl-0.9.13-java/lib/jopenssl19/openssl/ssl-internal.rb:106:in
同步&#39;&#34;},{&#34; thread_id&# 34; =&gt; 20,&#34;名称&#34; =&gt;&#34; [主要]&gt; worker2&#34;,&#34;插件&#34; =&gt; [&#34; LogStash: :过滤器:: Grok&#34;,{&#34; patterns_dir&#34; =&gt;&#34; /opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-patterns-core-2.0.5/模式/&#34;,&#34;匹配&#34; =&gt; {&#34;消息&#34; =&gt;&#34;%{SYSLOGBASE2}&#34;}}],&#34; current_call&#34; = GT;&#34; [...] / vendor / bundle / jruby / 1.9 / gems / logstash-core-2.3.3-java / lib / logstash / pipeline.rb:309:in synchronize'"}, {"thread_id"=>19, "name"=>"[main]>worker1", "plugin"=>["LogStash::Filters::Grok", {"patterns_dir"=>"/opt/logstash/vendor/bundle/jruby/1.9/gems/logstash-patterns-core-2.0.5/patterns/", "match"=>{"message"=>"%{SYSLOGBASE2}"}}], "current_call"=>"[...]/vendor/bundle/jruby/1.9/gems/logstash-core-2.3.3-java/lib/logstash/pipeline.rb:309:in
synchronize&#39;&#34; }]}&gt;,:level =&gt;:warn}
答案 0 :(得分:0)
问题最终是我们正在为ES集群使用AWS发现。即使我们从我们使用的安全组中删除了死实例(在AWS中仍然可见,只是无法访问),但我们没有重新启动所有剩余的ES节点。一旦我们这样做了,一切都开始了。