1 write to _availableNodes
Microsoft.Build (1)
BackEnd\Components\Scheduler\Scheduler.cs (1)
600
_availableNodes
= new Dictionary<int, NodeInfo>(8);
25 references to _availableNodes
Microsoft.Build (25)
BackEnd\Components\Scheduler\Scheduler.cs (25)
550
_availableNodes
[nodeInfo.NodeId] = nodeInfo;
761
HashSet<int> idleNodes = new HashSet<int>(
_availableNodes
.Count);
762
foreach (int availableNodeId in
_availableNodes
.Keys)
787
if (
_availableNodes
.Count > 0)
843
TraceScheduler($"Requests scheduled: {nodesFreeToDoWorkPriorToScheduling - idleNodes.Count} Unassigned Requests: {_schedulingData.UnscheduledRequestsCount} Blocked Requests: {_schedulingData.BlockedRequestsCount} Unblockable Requests: {_schedulingData.ReadyRequestsCount} Free Nodes: {idleNodes.Count}/{
_availableNodes
.Count} Responses: {responses.Count}");
1093
IEnumerable<int> nodesByConfigurationCountAscending =
_availableNodes
.Keys.OrderBy(x => _schedulingData.GetConfigurationsCountByNode(x, excludeTraversals: true, _configCache));
1233
if (
_availableNodes
[nodeId].CanServiceRequestWithAffinity(nodeAffinity))
1358
Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(
_availableNodes
.Count);
1364
foreach (int availableNodeId in
_availableNodes
.Keys)
1370
configurationCountLimit = Math.Max(1, (int)Math.Ceiling(configurationCountLimit * _customSchedulerForSQLConfigurationLimitMultiplier /
_availableNodes
.Count));
1373
List<int> nodesByConfigurationCountAscending = new List<int>(
_availableNodes
.Keys);
1431
bool mustSendConfigurationToNode =
_availableNodes
[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId);
1520
bool result =
_availableNodes
[nodeId].CanServiceRequestWithAffinity(affinity);
1803
if (!
_availableNodes
[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request)))
1813
existingRequestAffinity = (
_availableNodes
[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc;
1986
foreach (int nodeId in
_availableNodes
.Keys)
2308
foreach (NodeInfo node in
_availableNodes
.Values)
2407
int[] currentWork = new int[
_availableNodes
.Count];
2414
TimeSpan[] nodeActiveTimes = new TimeSpan[
_availableNodes
.Count];
2415
DateTime[] nodeStartTimes = new DateTime[
_availableNodes
.Count];
2418
Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(
_availableNodes
.Count);
2419
int[] indexToAvailableNodeId = new int[
_availableNodes
.Count];
2422
foreach (int availableNodeId in
_availableNodes
.Keys)
2533
loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationSummary", utilitzationPercentages.ToString(), (utilizationAverage / (double)
_availableNodes
.Count) * 100);
2767
foreach (int nodeId in
_availableNodes
.Keys)