MCPcopy Create free account
hub / github.com/apple/foundationdb / launch

Function launch

fdbserver/DataDistributionQueue.actor.cpp:477–482  ·  view source on GitHub ↗

update busyness for each server

Source from the content-addressed store, hash-verified

475
476// update busyness for each server
477void launch(RelocateData& relocation, std::map<UID, Busyness>& busymap, int singleRegionTeamSize) {
478 // if we are here this means that we can launch and should adjust all the work the servers can do
479 relocation.workFactor = getSrcWorkFactor(relocation, singleRegionTeamSize);
480 for (int i = 0; i < relocation.src.size(); i++)
481 busymap[relocation.src[i]].addWork(relocation.priority, relocation.workFactor);
482}
483
484void launchDest(RelocateData& relocation,
485 const std::vector<std::pair<Reference<IDataDistributionTeam>, bool>>& candidateTeams,

Callers 1

launchQueuedWorkMethod · 0.85

Calls 3

getSrcWorkFactorFunction · 0.85
addWorkMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected