Skip to content

How can I keep the connections in the connection pool always alive? #257

@donggyu04

Description

@donggyu04

If there is no request for a certain amount of idle time for OpenSearch, an error occurs when a request is sent to Logstash afterward.

Attempted to send a bulk request but there are no living connections in the pool (perhaps OpenSearch is unreachable or down?) {:message=>"No Available connections", :exception=>LogStash::Outputs::OpenSearch::HttpClient::Pool::NoConnectionAvailableError, :will_retry_in_seconds=>16}

The OpenSearch server has no problem, and the requests are processed successfully as the connection is re-established during the retry process.

It seems that the stale connections in the connection pool are not being refreshed properly.
In this cases, is there a way to manage the connections in the connection pool to ensure they are always kept alive?

There is a validate_after_inactivity setting, but it doesn't seem to work as I want it to.
Would enabling sniffing help in this case?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions