-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Our transport class Manticore is explicitly threadsafe and by default creates a pool with up to 50 connections; therefore we do not need an individual instance of Manticore per worker thread. Using a shared instance resolves a memory leak that was caused by using a strong reference to the worker threads themselves as a key in the routing to per-thread clients, which prevented those threads from being garbage-collected. Additionally, Manticore gives us the opportunity to explicitly close the client to free its resources in advance of garbage collection, so we should propagate `LogStash::Filters::Base#close` to the shared client if it exists.
- Loading branch information
Showing
4 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters