Seeking Feedback on My GitLab Runner Scheduling System and Trust Model
Answers
Reply to this answer
Reply to this answer
aerate_the_soil: Great point! My solution is aimed at teams that stick with fixed fleets instead of Kubernetes. The system could help manage prioritization, which Karpenter primarily manages for node provisioning. With our approach, there's potential for significant cost savings with reduced queue wait times, plus it remains free and open source.
Reply to this answer
12th fret bend: You're right about the potential risks! I designed the system to work non-blockingโif it fails, jobs revert to GitLabโs traditional scheduling. I agree on the latency concern, but for most jobs, only a small percentage will require that extra scoring time. I'm also thinking about documenting ways to gracefully handle failures.
Reply to this answer
~not the finale: That's a valid point! GitLab does use tags to choose runners, but my challenge lies in picking which runner should actively handle the job based on their current workload, not just if they're capable. Even optimizing everything still results in bottlenecks when both high and low priority jobs are queued simultaneously.
Reply to this answer
Add your answer
Answers are reviewed before publication.
HONEYCOMB: The rules determine which runner is the best fit and Claude provides the rationale for the tough calls. For example, when scores are close, Claude looks at factors like a runner's recent performance and if jobs are part of the same pipeline, guiding a more informed decision than just numbers.