【问题标题】:retry_non_idempotent in Logstash Http outputLogstash Http 输出中的 retry_non_idempotent
【发布时间】:2021-01-10 15:03:51
【问题描述】:

我正在使用带有以下配置的默认设置 [1]

        http {
            format=>"message"
            http_method=>"post"
            url=>"xxx"
            message=>'xxx'
        }

哪个

retry_failed = true
automatic_retries = 1
retry_non_idempotent = false

我发现失败的 POST 请求正在重试无限次。我的理解正确吗?

[1]https://www.elastic.co/guide/en/logstash/current/plugins-outputs-http.html

【问题讨论】:

    标签: logstash logstash-file


    【解决方案1】:

    http 输出中有两个级别的重试。 http_client mixin 包装的 Manticore 客户端内的 automatic_retries 和 retry_non_idempotent 选项control retries。 http 输出本身中的 retry_failed 选项 controls retries

    如果您将 retry_failed 设置为 false,那么 Manticore 客户端仍会执行自动重试,但 http 输出不会永远循环。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-05
      相关资源
      最近更新 更多