mirror of
https://github.com/Stone-Red-Code/RemoteExec.git
synced 2026-09-04 09:06:20 +02:00
Improve configuration of RemoteExecutor
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user