Moar stats
[?]
Jun 25, 2015, 2:46 PM
A2GL5FOZ3UJ2NM5RPRWTNPFTKLBA54B2UC6UIYO4M3N3RFNC4BTACDependencies
- [2]
LE4VZIY5More stats - [3]
5LBMP7GAFix remote building - [4]
7LB6QBXYKeep track of the number of build steps that are being built - [5]
5AIYUMTBBasic remote building - [6]
6TY4LNHHFinish copyClosure - [7]
MB3TISH2Rate-limit the number of threads copying closures at the same time - [8]
HHOMBU7Ghydra-queue-runner: Implement timeouts - [9]
RYTQLATYKeep track of failed paths in the Hydra database - [10]
OCZ4LSGGAutomatically retry aborted builds - [11]
7VQ4ALFYUpdate "make check" for the new queue runner - [*]
24BMQDZAStart of single-process hydra-queue-runner - [*]
PQFOMNTLhydra-queue-runner: More stats - [*]
GS4BE6TBAsynchronously compress build logs - [*]
PLOZBRTRAdd command ‘hydra-queue-runner --status’ to show current status - [*]
DODOGD7MSend queue runner stats to statsd
Change contents
- replacement in src/hydra-queue-runner/build-remote.cc at line 74
TokenServer & copyClosureTokenServer,TokenServer & copyClosureTokenServer, counter & bytesSent, - edit in src/hydra-queue-runner/build-remote.cc at line 117
for (auto & p : missing)bytesSent += store->queryPathInfo(p).narSize; - replacement in src/hydra-queue-runner/build-remote.cc at line 131
FdSource & from, FdSink & to, const PathSet & paths)FdSource & from, FdSink & to, const PathSet & paths, counter & bytesReceived) - edit in src/hydra-queue-runner/build-remote.cc at line 138
for (auto & p : paths)bytesReceived += store->queryPathInfo(p).narSize; - replacement in src/hydra-queue-runner/build-remote.cc at line 149
counter & nrStepsBuilding, counter & nrStepsCopyingTo, counter & nrStepsCopyingFrom)counter & nrStepsBuilding, counter & nrStepsCopyingTo, counter & nrStepsCopyingFrom,counter & bytesSent, counter & bytesReceived) - replacement in src/hydra-queue-runner/build-remote.cc at line 198
printMsg(lvlDebug, format("sending closure of ‘%1%’ to ‘%2%’") % drvPath % sshName);{if (sshName != "localhost") {printMsg(lvlDebug, format("sending closure of ‘%1%’ to ‘%2%’") % drvPath % sshName); - replacement in src/hydra-queue-runner/build-remote.cc at line 201
copyClosureTo(store, from, to, inputs, copyClosureTokenServer);copyClosureTo(store, from, to, inputs, copyClosureTokenServer, bytesSent); - replacement in src/hydra-queue-runner/build-remote.cc at line 230[3.4825]→[3.942:1041](∅→∅),[3.1041]→[3.4924:5027](∅→∅),[3.4924]→[3.4924:5027](∅→∅),[3.5027]→[2.284:290](∅→∅)
printMsg(lvlDebug, format("copying outputs of ‘%1%’ from ‘%2%’") % drvPath % sshName);PathSet outputs;for (auto & output : drv.outputs)outputs.insert(output.second.path);{if (sshName != "localhost") {printMsg(lvlDebug, format("copying outputs of ‘%1%’ from ‘%2%’") % drvPath % sshName);PathSet outputs;for (auto & output : drv.outputs)outputs.insert(output.second.path); - replacement in src/hydra-queue-runner/build-remote.cc at line 236
copyClosureFrom(store, from, to, outputs);copyClosureFrom(store, from, to, outputs, bytesReceived); - replacement in src/hydra-queue-runner/build-remote.hh at line 27
counter & nrStepsBuilding, counter & nrStepsCopyingTo, counter & nrStepsCopyingFrom);[2.459]counter & nrStepsBuilding, counter & nrStepsCopyingTo, counter & nrStepsCopyingFrom,counter & bytesSent, counter & bytesReceived); - replacement in src/hydra-queue-runner/counter.hh at line 5
typedef std::atomic<unsigned int> counter;typedef std::atomic<unsigned long> counter; - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 259
counter bytesSent{0};counter bytesReceived{0}; - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 1163
result, nrStepsBuilding, nrStepsCopyingTo, nrStepsCopyingFrom);result, nrStepsBuilding, nrStepsCopyingTo, nrStepsCopyingFrom,bytesSent, bytesReceived); - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 1598
root.attr("bytesSent", bytesSent);root.attr("bytesReceived", bytesReceived); - edit in src/script/hydra-send-stats at line 47[17.1831][17.1831]
gauge("hydra.queue.bytes_sent", $json->{bytesSent});gauge("hydra.queue.bytes_received", $json->{bytesReceived});