Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #19562 to 7.x: Use a cache instead of sync.Pool in script processor #19693

Merged
merged 2 commits into from
Jul 14, 2020

Commits on Jul 7, 2020

  1. Use a cache instead of sync.Pool in script processor (elastic#19562)

    This updates the script processor to keep a simple cache of Javascript VM
    sessions instead of relying on sync.Pool for this task. The size of this
    cache can be controlled by the new `max_cached_sessions` option.
    
    The reasoning behind this change is to avoid sync.Pool discarding and
    re-allocating new sessions every garbage collection cycle. For large
    Javascript pipelines, allocating a new session is a very expensive
    operation that can take hundreds of milliseconds or even seconds to
    complete. This has a severe impact in ingestion rates.
    
    (cherry picked from commit 7930f9e)
    adriansr committed Jul 7, 2020
    Configuration menu
    Copy the full SHA
    2618e35 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2020

  1. Configuration menu
    Copy the full SHA
    18bbdfc View commit details
    Browse the repository at this point in the history