1 write to _availableNodes
Microsoft.Build (1)
BackEnd\Components\Scheduler\Scheduler.cs (1)
542_availableNodes = new Dictionary<int, NodeInfo>(8);
24 references to _availableNodes
Microsoft.Build (24)
BackEnd\Components\Scheduler\Scheduler.cs (24)
492_availableNodes[nodeInfo.NodeId] = nodeInfo; 703foreach (int availableNodeId in _availableNodes.Keys) 728if (_availableNodes.Count > 0) 784TraceScheduler("Requests scheduled: {0} Unassigned Requests: {1} Blocked Requests: {2} Unblockable Requests: {3} Free Nodes: {4}/{5} Responses: {6}", nodesFreeToDoWorkPriorToScheduling - idleNodes.Count, _schedulingData.UnscheduledRequestsCount, _schedulingData.BlockedRequestsCount, _schedulingData.ReadyRequestsCount, idleNodes.Count, _availableNodes.Count, responses.Count); 1022List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 1166if (_availableNodes[nodeId].CanServiceRequestWithAffinity(nodeAffinity)) 1291Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(_availableNodes.Count); 1297foreach (int availableNodeId in _availableNodes.Keys) 1303configurationCountLimit = Math.Max(1, (int)Math.Ceiling(configurationCountLimit * _customSchedulerForSQLConfigurationLimitMultiplier / _availableNodes.Count)); 1306List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 1364bool mustSendConfigurationToNode = _availableNodes[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId); 1455bool result = _availableNodes[nodeId].CanServiceRequestWithAffinity(affinity); 1731if (!_availableNodes[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request))) 1741existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 1916foreach (int nodeId in _availableNodes.Keys) 2233foreach (NodeInfo node in _availableNodes.Values) 2296int[] currentWork = new int[_availableNodes.Count]; 2303TimeSpan[] nodeActiveTimes = new TimeSpan[_availableNodes.Count]; 2304DateTime[] nodeStartTimes = new DateTime[_availableNodes.Count]; 2307Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(_availableNodes.Count); 2308int[] indexToAvailableNodeId = new int[_availableNodes.Count]; 2311foreach (int availableNodeId in _availableNodes.Keys) 2422loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationSummary", utilitzationPercentages.ToString(), (utilizationAverage / (double)_availableNodes.Count) * 100); 2593foreach (int nodeId in _availableNodes.Keys)