Improve configuration of RemoteExecutor

This commit is contained in:
Stone_Red
2025-12-23 14:43:19 +01:00
parent 64818f735f
commit 5819432c36
16 changed files with 204 additions and 63 deletions
@@ -0,0 +1,9 @@
namespace RemoteExec.Client.LoadBalancingStrategies;
public class LeastBacklogStrategy : ILoadBalancingStrategy
{
public ServerConnection? SelectServer(IEnumerable<ServerConnection> availableServers)
{
return availableServers.MinBy(s => s.TaskChannel.Reader.Count);
}
}