1 write to _availableNodes
Microsoft.Build (1)
BackEnd\Components\Scheduler\Scheduler.cs (1)
585_availableNodes = new Dictionary<int, NodeInfo>(8);
25 references to _availableNodes
Microsoft.Build (25)
BackEnd\Components\Scheduler\Scheduler.cs (25)
535_availableNodes[nodeInfo.NodeId] = nodeInfo; 746HashSet<int> idleNodes = new HashSet<int>(_availableNodes.Count); 747foreach (int availableNodeId in _availableNodes.Keys) 772if (_availableNodes.Count > 0) 828TraceScheduler("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); 1078IEnumerable<int> nodesByConfigurationCountAscending = _availableNodes.Keys.OrderBy(x => _schedulingData.GetConfigurationsCountByNode(x, excludeTraversals: true, _configCache)); 1218if (_availableNodes[nodeId].CanServiceRequestWithAffinity(nodeAffinity)) 1343Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(_availableNodes.Count); 1349foreach (int availableNodeId in _availableNodes.Keys) 1355configurationCountLimit = Math.Max(1, (int)Math.Ceiling(configurationCountLimit * _customSchedulerForSQLConfigurationLimitMultiplier / _availableNodes.Count)); 1358List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 1416bool mustSendConfigurationToNode = _availableNodes[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId); 1507bool result = _availableNodes[nodeId].CanServiceRequestWithAffinity(affinity); 1790if (!_availableNodes[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request))) 1800existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 1975foreach (int nodeId in _availableNodes.Keys) 2303foreach (NodeInfo node in _availableNodes.Values) 2402int[] currentWork = new int[_availableNodes.Count]; 2409TimeSpan[] nodeActiveTimes = new TimeSpan[_availableNodes.Count]; 2410DateTime[] nodeStartTimes = new DateTime[_availableNodes.Count]; 2413Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(_availableNodes.Count); 2414int[] indexToAvailableNodeId = new int[_availableNodes.Count]; 2417foreach (int availableNodeId in _availableNodes.Keys) 2528loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationSummary", utilitzationPercentages.ToString(), (utilizationAverage / (double)_availableNodes.Count) * 100); 2724foreach (int nodeId in _availableNodes.Keys)