Skip to content

InfluxDB::Client is never garbage collected #259

@dgutov

Description

@dgutov

I'm guessing that happens (or doesn't happen) because of the at_exit block inside its constructor.

I think it should either be reworked to use just one global at_exit somewhere on the module level, or the docs should clarify somewhere that one should create one client instance globally. That is, to avoid creating instances dynamically per request (in a web app).

I also haven't managed to find any info as to whether the client is thread-safe, or we should use it through a connection pool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions