简体   繁体   English

Flume代理不会停止针对不可恢复的Solr错误的重试

[英]Flume agent does not stop retrying for unrecoverable solr error

I am using Morphline Solr Sink to store information in Solr. 我正在使用Morphline Solr Sink在Solr中存储信息。 The problem that I am facing is that flume agent never stops retrying the failed requests, which sometimes can increase over time. 我面临的问题是水槽代理永远不会停止重试失败的请求,有时这种情况会随着时间的推移而增加。 This results in the flume warning of MaxIO Workers being used and the system suffers with performance issues. 这会导致正在使用MaxIO Workers的警告信息,并且系统会遇到性能问题。 Is there any way other than writing my own sink, that can make flume stop retrying or backoff exponentially to have a better system performance? 除了编写自己的接收器之外,是否还有其他方法可以使水槽停止重试或以指数方式退避,以提高系统性能? My source is an avroSource. 我的来源是avroSource。

Thanks. 谢谢。

You should fix the reason for the failed requests. 您应该解决请求失败的原因。

Flume is doing exactly what it's designed to do. Flume完全按照设计的方式工作。 It's transactionally trying to store the batch of events in your store. 它在事务上尝试将这批事件存储在您的商店中。 If it can't store those events then, yes, it keeps on trying. 如果它不能存储这些事件,那么可以继续尝试。

You haven't explained what the problem is causing these failures. 您尚未解释导致这些故障的原因是什么。 I would recommend thinking about an interceptor to fix whatever is wrong in the data or to drop events you don't want to store. 我建议您考虑使用拦截器来修复数据中的任何错误或删除您不想存储的事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM