1 write to _availableNodes
Microsoft.Build (1)
BackEnd\Components\Scheduler\Scheduler.cs (1)
541_availableNodes = new Dictionary<int, NodeInfo>(8);
24 references to _availableNodes
Microsoft.Build (24)
BackEnd\Components\Scheduler\Scheduler.cs (24)
491_availableNodes[nodeInfo.NodeId] = nodeInfo; 702foreach (int availableNodeId in _availableNodes.Keys) 727if (_availableNodes.Count > 0) 783TraceScheduler("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); 1022IEnumerable<int> nodesByConfigurationCountAscending = _availableNodes.Keys.OrderBy(x => _schedulingData.GetConfigurationsCountByNode(x, excludeTraversals: true, _configCache)); 1162if (_availableNodes[nodeId].CanServiceRequestWithAffinity(nodeAffinity)) 1287Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(_availableNodes.Count); 1293foreach (int availableNodeId in _availableNodes.Keys) 1299configurationCountLimit = Math.Max(1, (int)Math.Ceiling(configurationCountLimit * _customSchedulerForSQLConfigurationLimitMultiplier / _availableNodes.Count)); 1302List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 1360bool mustSendConfigurationToNode = _availableNodes[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId); 1451bool result = _availableNodes[nodeId].CanServiceRequestWithAffinity(affinity); 1727if (!_availableNodes[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request))) 1737existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 1912foreach (int nodeId in _availableNodes.Keys) 2229foreach (NodeInfo node in _availableNodes.Values) 2292int[] currentWork = new int[_availableNodes.Count]; 2299TimeSpan[] nodeActiveTimes = new TimeSpan[_availableNodes.Count]; 2300DateTime[] nodeStartTimes = new DateTime[_availableNodes.Count]; 2303Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(_availableNodes.Count); 2304int[] indexToAvailableNodeId = new int[_availableNodes.Count]; 2307foreach (int availableNodeId in _availableNodes.Keys) 2418loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationSummary", utilitzationPercentages.ToString(), (utilizationAverage / (double)_availableNodes.Count) * 100); 2597foreach (int nodeId in _availableNodes.Keys)