Thor Queue Recommendation - Planning and Design Documentation#29
Draft
Thor Queue Recommendation - Planning and Design Documentation#29
Conversation
Co-authored-by: ghalliday <902490+ghalliday@users.noreply.github.com>
Co-authored-by: ghalliday <902490+ghalliday@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Optimize resource allocation for Thor job execution
Thor Queue Recommendation - Planning and Design Documentation
Nov 13, 2025
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.
Description
Adds comprehensive planning documentation for post-execution Thor queue recommendation analysis. When a workunit completes, the system should analyze its resource usage and estimate performance/cost across available queue configurations to identify the most efficient queue choice.
No code implemented - deliverable is planning documentation only, as requested in the problem statement.
Documentation Structure
Four planning documents created in
common/wuanalysis/:README_QUEUE_RECOMMENDATION.md (9KB)
Navigation hub with quick-start guides, algorithm summary, and document index. Target audiences: implementers, reviewers, project managers.
IMPLEMENTATION_SUMMARY.md (10KB)
Executive overview covering deliverables, design rationale, next steps, risk mitigation, and success metrics.
QUEUE_RECOMMENDATION_PLAN.md (18KB)
Complete technical specification:
QueueConfiguration,SubgraphResourceUsage,QueueEstimation,WorkunitQueueAnalysercalcCostNs()infrastructureGITHUB_COPILOT_PROMPT.md (15KB)
Ready-to-use implementation guide with code templates, algorithm pseudocode, HPCC Platform style requirements, phased approach, and success criteria.
Core Algorithm
Per-subgraph estimation on each candidate queue:
Critical Information Gaps
Seven gaps documented with resolution strategies:
PeakTempDisk > 0Integration Points
Extends
WorkunitAnalyserBase, follows patterns fromWorkunitRuleAnalyser/WorkunitStatsAnalyser. New API functionanalyseQueueRecommendation()inanawu.hpp/cpp. Compatible with wutool CLI.Implementation Timeline
Estimated 4 weeks post-gap-resolution:
Type of change:
Checklist:
Testing:
Planning documentation only - no code to test. Design validation against problem statement requirements completed.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.