Description
Describe the enhancement
Self-hosted GitHub actions should have an attribute (weight
) that allows to prioritize them, i.e. If there are multiple idle runners with matching labels, then the weight
attribute would determine which runner to use first, e.g. prioritized in ascending order.
Additional information
For context, the reason this is needed is because the current implementation randomly picks an available runner. However, imagine that you are scaling up and down runners depending on how long they have been idle. Using random allocation mechanism, there is no way to determine (efficiently) how long the runner was not in use. As a result, we have a large portion of VMs runnings that are not in use most of the time.
Prioritization would allow more efficient resource packing.
Activity