1 write to _availableNodes
Microsoft.Build (1)
BackEnd\Components\Scheduler\Scheduler.cs (1)
600
_availableNodes
= new Dictionary<int, NodeInfo>(8);
25 references to _availableNodes
Microsoft.Build (25)
BackEnd\Components\Scheduler\Scheduler.cs (25)
550
_availableNodes
[nodeInfo.NodeId] = nodeInfo;
761
HashSet<int> idleNodes = new HashSet<int>(
_availableNodes
.Count);
762
foreach (int availableNodeId in
_availableNodes
.Keys)
787
if (
_availableNodes
.Count > 0)
843
TraceScheduler($"Requests scheduled: {nodesFreeToDoWorkPriorToScheduling - idleNodes.Count} Unassigned Requests: {_schedulingData.UnscheduledRequestsCount} Blocked Requests: {_schedulingData.BlockedRequestsCount} Unblockable Requests: {_schedulingData.ReadyRequestsCount} Free Nodes: {idleNodes.Count}/{
_availableNodes
.Count} Responses: {responses.Count}");
1093
IEnumerable<int> nodesByConfigurationCountAscending =
_availableNodes
.Keys.OrderBy(x => _schedulingData.GetConfigurationsCountByNode(x, excludeTraversals: true, _configCache));
1233
if (
_availableNodes
[nodeId].CanServiceRequestWithAffinity(nodeAffinity))
1358
Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(
_availableNodes
.Count);
1364
foreach (int availableNodeId in
_availableNodes
.Keys)
1370
configurationCountLimit = Math.Max(1, (int)Math.Ceiling(configurationCountLimit * _customSchedulerForSQLConfigurationLimitMultiplier /
_availableNodes
.Count));
1373
List<int> nodesByConfigurationCountAscending = new List<int>(
_availableNodes
.Keys);
1431
bool mustSendConfigurationToNode =
_availableNodes
[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId);
1522
bool result =
_availableNodes
[nodeId].CanServiceRequestWithAffinity(affinity);
1805
if (!
_availableNodes
[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request)))
1815
existingRequestAffinity = (
_availableNodes
[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc;
1990
foreach (int nodeId in
_availableNodes
.Keys)
2314
foreach (NodeInfo node in
_availableNodes
.Values)
2413
int[] currentWork = new int[
_availableNodes
.Count];
2420
TimeSpan[] nodeActiveTimes = new TimeSpan[
_availableNodes
.Count];
2421
DateTime[] nodeStartTimes = new DateTime[
_availableNodes
.Count];
2424
Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(
_availableNodes
.Count);
2425
int[] indexToAvailableNodeId = new int[
_availableNodes
.Count];
2428
foreach (int availableNodeId in
_availableNodes
.Keys)
2539
loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationSummary", utilitzationPercentages.ToString(), (utilizationAverage / (double)
_availableNodes
.Count) * 100);
2773
foreach (int nodeId in
_availableNodes
.Keys)