min cpu
This commit is contained in:
parent
66d94ced8a
commit
da56ec65d3
@ -26,7 +26,21 @@ namespace AZ.Compute
|
|||||||
[Export]
|
[Export]
|
||||||
public void Compute(string fileName, string arguments)
|
public void Compute(string fileName, string arguments)
|
||||||
{
|
{
|
||||||
Agents.First().Compute(fileName, arguments);
|
// هنا ينحط الكود مال الغورثمية الي تستنكي افضل ايجينت حتى تشغل التاسك عليه
|
||||||
|
//Agents.First().Compute(fileName, arguments);
|
||||||
|
|
||||||
|
//مثلا اقل لود على السي بي يوم
|
||||||
|
|
||||||
|
agents.OrderBy(x => x.Cpu).First().Compute(fileName, arguments);
|
||||||
|
|
||||||
|
// اقل نتورك
|
||||||
|
//agents.OrderBy(x=>x.Network).First().Compute(fileName, arguments);
|
||||||
|
|
||||||
|
// largest avaialble RAM
|
||||||
|
//agents.OrderByDescending(x=>x.Ram).First().Compute(fileName, arguments);
|
||||||
|
|
||||||
|
// least jitter
|
||||||
|
//agents.OrderBy(x => x.DistributedResourceConnection.Jitter).First().Compute(fileName, arguments) ;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user