Skip to content

[BUG]: No back pressure handling, if OpenSearch is temporary overloaded #6901

@LHozzan

Description

@LHozzan

Describe the bug
When OpenSearch cluster is overloaded, DataPrepper instead of generating the warning and waiting exponentially, attempting to deliver the current payload in the infinite loop, which causing more OpenSearch overload.
The log records have also influence to the overload in case, if the target OpenSearch cluster is using for storing logs as well.

To Reproduce
Steps to reproduce the behavior:
Lower OpenSearch cluster to best possible minimum and start sending huge amount of data from DataPrepper (OTLP metrics and traces) and also have some log processor active to feeding the same OpenSearch cluster (Logstash, FluentD, ...).

Expected behavior
When DataPrepper got reject from OpenSearch, it should waiting some time, before attempting to retrying delivery.

Screenshots
Image

Environment (please complete the following information):

  • Kubernetes: 1.34
  • Version DataPrepper (official Docker image): 2.7.0
  • Version OpenSearch (official Docker image): 2.16

Additional context
As you can see from screenshot, the timestamp of the log records are basically same, so DataPrepper not attempting to wait and only crashing to overloaded OpenSearch cluster.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Unplanned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions