Repository navigation
Perf/execution pipeline optimization - #70
Open
kumar-veerendra wants to merge 4 commits into
Open
kumar-veerendra wants to merge 4 commits into
kumar-veerendra wants to merge 4 commits into
Conversation
…and tune JVM client compiler
…cy and memory impact
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to the backend code execution pipeline, focusing on queue management, error handling, and benchmarking/load testing capabilities. The main changes include enforcing queue limits with clear error responses, optimizing database writes, adding robust benchmarking and load testing scripts, and enhancing resource management for code execution.
Queue Management and Error Handling:
QueueCapacityErrorclass and enforced a maximum queue size in theCompilerQueue, returning HTTP 429 errors when the queue is full, and handling queue wait timeouts for jobs that wait too long. [1] [2] [3] [4] [5]Resource and Execution Management:
Performance and Benchmarking:
benchmark_pipeline_baseline.js) to simulate user submissions, measure backend and user-perceived latencies, and report performance metrics across Python, C++, and Java.load_test_queue.js) to simulate various submission scenarios, measure throughput, latency, memory impact, and test queue overload behavior.Database and Submission Logic:
Other Improvements:
These changes collectively enhance system reliability under load, provide better feedback to users, and enable thorough performance evaluation and monitoring.
References:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]