博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
logstash写日志elaticsearch不响应
阅读量:7083 次
发布时间:2019-06-28

本文共 998 字,大约阅读时间需要 3 分钟。

  在大量的解析日志并写入elasticsearch,在后端节点数据数量及磁盘性能等影响下,es不响应

问题描述:

[2018-04-12T17:02:16,861][WARN ][logstash.outputs.elasticsearch] Marking url as dead. Last error: [LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError] Elasticsearch Unreachable: [http://x.x.x.x:9200/][Manticore::SocketTimeout] Read timed out {:url=>http://x.x.x.x:9200/, :error_message=>"Elasticsearch Unreachable: [http://x.x.x.x:9200/][Manticore::SocketTimeout] Read timed out", :error_class=>"LogStash::Outputs::ElasticSearch::HttpClient::Pool::HostUnreachableError"}Attempted to send a bulk request  to elasticsearch, but no there are no living connections in the connection pool

解决办法:

  1)you should run logstash separate from ES cluster as both can use a lot of cpu resources. //lg与es分离,禁止放到一台机器上,lg解析消耗大量的CPU

  2)You should also have more than one node for ES cluster in which case logstash can use the other ES nodes when one node is not accessible //增加es数量-data节点的

  03)缓存日志队列换成kafka,控制消费队列,让elasticsearch稳定写入

 

转载地址:http://uvlml.baihongyu.com/

你可能感兴趣的文章
使用winavr的过程中,遇到的有关volatile的问题
查看>>
【iOS】Xcode中的-all_load与-ObjC
查看>>
论文中的数学符号使用
查看>>
WPF中UI及时更新,如何在处理长时间工作时,保持界面的持续更新
查看>>
CSS 样式表中padding 的用法
查看>>
Sql Server 主从数据库配置
查看>>
Event 对象
查看>>
经典冒泡排序,九九乘法表,三角形
查看>>
openstack之keystone
查看>>
我的IIS7.5竟然不支持ASP.NET路由
查看>>
[ISSUE][ERROR] console - Caught exception: Error: sourceEnd out of bounds
查看>>
C到C++的升级
查看>>
bootstrapCDN和本地化
查看>>
EtherCAT主站对PHY有要求?
查看>>
Pair Project:黄明源11061186 and 刘昊岩11061156
查看>>
关于网站防盗链问题
查看>>
人工智能第一次作业
查看>>
数据结构 链栈
查看>>
爬虫一 发请求&定制请求&异常处理&配置代理
查看>>
DC7css设计表单样式
查看>>