Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mongo] Clear the streamID from the request/response maps after stitc…
…hing (#1878) Summary: This PR modifies mongo's stitcher logic to clear streamID’s from request/response maps once all frames of a streamID have been consumed. We observed high CPU use allocated to `FramesSize()` & `EraseExpiredFrames()`, this was due to the size of the maps increasing with new streamIDs and having to continuously loop over those growing maps to cleanup. Clearing the streamID's from the maps after stitching significantly reduces the CPU allocated to the cleanup logic for mongo, the exact details for mongo's streamID reuse needs to be determined to further adapt the stitcher logic. Type of change: /kind bug Test Plan: Existing tests still pass, ran the px-mongo demo and observed lower CPU allocated to mongo in the PEM through flamegraph. --------- Signed-off-by: Kartik Pattaswamy <[email protected]>
- Loading branch information