homeassistant-elasticsearch icon indicating copy to clipboard operation
homeassistant-elasticsearch copied to clipboard

Component does not close open connections which leads to resource exhaustion

Open ankerstal opened this issue 2 years ago • 3 comments

Environment Home-Assistant version: 2022.12.9 Elasticsearch version: 8.4.3

Describe the bug It seems that since October this integration does not properly close tcp connections to elasticsearch after use. This leeds to resource exhaustion both when it comes to memory and open tcp connections,.

To Reproduce Steps to reproduce the behavior:

  • Start home assistant with this integration running. I have it configured via UI..

Screenshots image image

ankerstal avatar Jan 04 '23 06:01 ankerstal

Thanks for the report, @ankerstal. I'll take a look when time permits, but I'm also more than happy to accept a PR if you (or anyone else) gets to this before I do.

legrego avatar Jan 09 '23 14:01 legrego

@ankerstal what are you using to track the number of established connections?

legrego avatar Nov 08 '23 14:11 legrego

I gave up on this integration and have moved to prometheus. But I used netstat and similar tools. On 8 Nov 2023, at 15:11, Larry Gregory @.***> wrote: @ankerstal what are you using to track the number of established connections?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

ankerstal avatar Nov 08 '23 16:11 ankerstal