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

Implement a strategy to handle OOM in direct memory #475

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Commits on Sep 27, 2023

  1. Avoid to run Beats parser and Beats protocol handler in separate exec…

    …utors group (beatsHandlerExecutorGroup)
    andsel committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    dc8a8b0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    700543c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8e5f7b3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    dbabb78 View commit details
    Browse the repository at this point in the history
  5. Update the flow control handler to avoid new reads if the channel bec…

    …omes not writable, to excert backpressure to the sender system
    andsel committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    ea7f14d View commit details
    Browse the repository at this point in the history
  6. Separated the logic to drop incoming connections into specific handler

    On new channel registration (that correspond to a new client connection),
    verifies the direct memory stastus to understand if almost the totality max direct memory
    is reached and also if the majoproity of that space is used by pinned byte buffers.
    If the codition is verified that means direct memory avvailable is terminating, so no new
    connection would help in the situation, and the incoming new connections are closed.
    andsel committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    234569d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    86e4445 View commit details
    Browse the repository at this point in the history
  8. Removed tests using EmbeddedChannel because doesn't manage the writea…

    …ble status due to that offload every message to the outbound list
    andsel committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    0148987 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    af04733 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    cd7aafe View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c6e775c View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    e34bf25 View commit details
    Browse the repository at this point in the history
  13. Raised up the log level level when dropping connections becuase of th…

    …undering and going to OOM condition
    andsel committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    7a6982e View commit details
    Browse the repository at this point in the history
  14. Better actionable suggestion to user in case of OOM

    Co-authored-by: João Duarte <[email protected]>
    andsel and jsvd committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    299ee27 View commit details
    Browse the repository at this point in the history
  15. Updated OOMConnectionCloser to monitor the consumption of memory also…

    … during the read opeartion and not only on exception
    andsel committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    e24f339 View commit details
    Browse the repository at this point in the history
  16. Re-introduce the beats handlers worker group to separata the Beats pr…

    …otocol processing from the boss group that accepts and listed to new sockets
    andsel committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    c7c54d9 View commit details
    Browse the repository at this point in the history
  17. Added feature flag named protect_direct_memory to control the usage o…

    …f OOM checking or not. Enabled by default.
    andsel committed Sep 27, 2023
    Configuration menu
    Copy the full SHA
    16a76b8 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    d75a0df View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    68f4967 View commit details
    Browse the repository at this point in the history