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;
703
foreach (int availableNodeId in
_availableNodes
.Keys)
728
if (
_availableNodes
.Count > 0)
784
TraceScheduler("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);
1022
List<int> nodesByConfigurationCountAscending = new List<int>(
_availableNodes
.Keys);
1166
if (
_availableNodes
[nodeId].CanServiceRequestWithAffinity(nodeAffinity))
1291
Dictionary<int, int> configurationCountsByNode = new Dictionary<int, int>(
_availableNodes
.Count);
1297
foreach (int availableNodeId in
_availableNodes
.Keys)
1303
configurationCountLimit = Math.Max(1, (int)Math.Ceiling(configurationCountLimit * _customSchedulerForSQLConfigurationLimitMultiplier /
_availableNodes
.Count));
1306
List<int> nodesByConfigurationCountAscending = new List<int>(
_availableNodes
.Keys);
1364
bool mustSendConfigurationToNode =
_availableNodes
[nodeId].AssignConfiguration(request.BuildRequest.ConfigurationId);
1455
bool result =
_availableNodes
[nodeId].CanServiceRequestWithAffinity(affinity);
1731
if (!
_availableNodes
[assignedNodeId].CanServiceRequestWithAffinity(GetNodeAffinityForRequest(request)))
1741
existingRequestAffinity = (
_availableNodes
[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc;
1916
foreach (int nodeId in
_availableNodes
.Keys)
2233
foreach (NodeInfo node in
_availableNodes
.Values)
2296
int[] currentWork = new int[
_availableNodes
.Count];
2303
TimeSpan[] nodeActiveTimes = new TimeSpan[
_availableNodes
.Count];
2304
DateTime[] nodeStartTimes = new DateTime[
_availableNodes
.Count];
2307
Dictionary<int, int> availableNodeIdsToIndex = new Dictionary<int, int>(
_availableNodes
.Count);
2308
int[] indexToAvailableNodeId = new int[
_availableNodes
.Count];
2311
foreach (int availableNodeId in
_availableNodes
.Keys)
2422
loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationSummary", utilitzationPercentages.ToString(), (utilizationAverage / (double)
_availableNodes
.Count) * 100);
2601
foreach (int nodeId in
_availableNodes
.Keys)