1 write to _availableNodes
Microsoft.Build (1)
BackEnd\Components\Scheduler\Scheduler.cs (1)
586_availableNodes = new Dictionary<int, NodeInfo>(8);
25 references to _availableNodes
Microsoft.Build (25)
BackEnd\Components\Scheduler\Scheduler.cs (25)
536_availableNodes[nodeInfo.NodeId] = nodeInfo; 747HashSet<int> idleNodes = new HashSet<int>(_availableNodes.Count); 748foreach (int availableNodeId in _availableNodes.Keys) 773if (_availableNodes.Count > 0) 829TraceScheduler("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); 1079IEnumerable<int> nodesByConfigurationCountAscending = _availableNodes.Keys.OrderBy(x => _schedulingData.GetConfigurationsCountByNode(x, excludeTraversals: true, _configCache)); 1219if (_availableNodes[nodeId].CanServiceRequestWithAffinity(nodeAffinity)) 1344Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(_availableNodes.Count); 1350foreach (int availableNodeId in _availableNodes.Keys) 1356configurationCountLimit = Math.Max(1, (int)Math.Ceiling(configurationCountLimit * _customSchedulerForSQLConfigurationLimitMultiplier / _availableNodes.Count)); 1359List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 1417bool mustSendConfigurationToNode = _availableNodes[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId); 1508bool result = _availableNodes[nodeId].CanServiceRequestWithAffinity(affinity); 1791if (!_availableNodes[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request))) 1801existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 1976foreach (int nodeId in _availableNodes.Keys) 2304foreach (NodeInfo node in _availableNodes.Values) 2403int[] currentWork = new int[_availableNodes.Count]; 2410TimeSpan[] nodeActiveTimes = new TimeSpan[_availableNodes.Count]; 2411DateTime[] nodeStartTimes = new DateTime[_availableNodes.Count]; 2414Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(_availableNodes.Count); 2415int[] indexToAvailableNodeId = new int[_availableNodes.Count]; 2418foreach (int availableNodeId in _availableNodes.Keys) 2529loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationSummary", utilitzationPercentages.ToString(), (utilizationAverage / (double)_availableNodes.Count) * 100); 2725foreach (int nodeId in _availableNodes.Keys)