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); 1023IEnumerable<int> nodesByConfigurationCountAscending = _availableNodes.Keys.OrderBy(x => _schedulingData.GetConfigurationsCountByNode(x, excludeTraversals: true, _configCache)); 1163if (_availableNodes[nodeId].CanServiceRequestWithAffinity(nodeAffinity)) 1288Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(_availableNodes.Count); 1294foreach (int availableNodeId in _availableNodes.Keys) 1300configurationCountLimit = Math.Max(1, (int)Math.Ceiling(configurationCountLimit * _customSchedulerForSQLConfigurationLimitMultiplier / _availableNodes.Count)); 1303List<int> nodesByConfigurationCountAscending = new List<int>(_availableNodes.Keys); 1361bool mustSendConfigurationToNode = _availableNodes[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId); 1452bool result = _availableNodes[nodeId].CanServiceRequestWithAffinity(affinity); 1728if (!_availableNodes[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request))) 1738existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 1913foreach (int nodeId in _availableNodes.Keys) 2230foreach (NodeInfo node in _availableNodes.Values) 2293int[] currentWork = new int[_availableNodes.Count]; 2300TimeSpan[] nodeActiveTimes = new TimeSpan[_availableNodes.Count]; 2301DateTime[] nodeStartTimes = new DateTime[_availableNodes.Count]; 2304Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(_availableNodes.Count); 2305int[] indexToAvailableNodeId = new int[_availableNodes.Count]; 2308foreach (int availableNodeId in _availableNodes.Keys) 2419loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationSummary", utilitzationPercentages.ToString(), (utilizationAverage / (double)_availableNodes.Count) * 100); 2598foreach (int nodeId in _availableNodes.Keys)