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

Make No. of Transport Threads == Available CPUs #56488

Commits on May 9, 2020

  1. Make No. of Transport Threads == Available CPUs

    We never do any file IO or other blocking work on the transport threads
    so no tangible benefit can be derived from using more threads than CPUs
    for IO.
    There are however significant downsides to using more threads than necessary
    with Netty in particular. Since we use the default setting for
    `io.netty.allocator.useCacheForAllThreads` which is `true` we end up
    using `16MB` of thread local buffer cache for each transport thread.
    Meaning we potentially waste 2 * CPUs * 16MB of heap across both tcp
    and http transports.
    original-brownbear committed May 9, 2020
    Configuration menu
    Copy the full SHA
    1968e56 View commit details
    Browse the repository at this point in the history

Commits on May 13, 2020

  1. Configuration menu
    Copy the full SHA
    2f6db04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5dfea3a View commit details
    Browse the repository at this point in the history