min cpu
This commit is contained in:
		| @@ -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) ; | ||||||
|  |  | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user