Skip to content

BUG:net/http.(*persistConn) goroutine leak #110

@jarvis-u

Description

@jarvis-u

Grafana dashboards indicate a continuous increase in the Goroutine count within the Vault service.

Image

A subsequent pprof analysis revealed a significant number of persistent HTTP connections that are not being closed.

Image

These connections all originate from and are directed towards Elasticsearch.

Image

The buildClient function is used for all Elasticsearch calls, but its connection pool is only configured with TLSClientConfig.

Vault Version:1.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions