More stats
[?]
Jun 24, 2015, 11:19 AM
LE4VZIY5VZ52FOP5QQRIJINWIMWTAPRTZTGO77JXUEPGRPRSQYMACDependencies
- [2]
PLOZBRTRAdd command ‘hydra-queue-runner --status’ to show current status - [3]
MB3TISH2Rate-limit the number of threads copying closures at the same time - [4]
DODOGD7MSend queue runner stats to statsd - [5]
5LBMP7GAFix remote building - [6]
HHOMBU7Ghydra-queue-runner: Implement timeouts - [7]
7LB6QBXYKeep track of the number of build steps that are being built - [8]
RYTQLATYKeep track of failed paths in the Hydra database - [9]
5AIYUMTBBasic remote building - [10]
OCZ4LSGGAutomatically retry aborted builds - [*]
24BMQDZAStart of single-process hydra-queue-runner - [*]
PQFOMNTLhydra-queue-runner: More stats
Change contents
- replacement in src/hydra-queue-runner/build-remote.cc at line 131
TokenServer & copyClosureTokenServer,RemoteResult & result, counter & nrStepsBuilding)TokenServer & copyClosureTokenServer, RemoteResult & result,counter & nrStepsBuilding, counter & nrStepsCopyingTo, counter & nrStepsCopyingFrom) - replacement in src/hydra-queue-runner/build-remote.cc at line 181
copyClosureTo(store, from, to, inputs, copyClosureTokenServer);{MaintainCount mc(nrStepsCopyingTo);copyClosureTo(store, from, to, inputs, copyClosureTokenServer);} - replacement in src/hydra-queue-runner/build-remote.cc at line 216
copyClosureFrom(store, from, to, outputs);{MaintainCount mc(nrStepsCopyingFrom);copyClosureFrom(store, from, to, outputs);} - replacement in src/hydra-queue-runner/build-remote.hh at line 26
TokenServer & copyClosureTokenServer,RemoteResult & result, counter & nrStepsBuilding);[5.295]TokenServer & copyClosureTokenServer, RemoteResult & result,counter & nrStepsBuilding, counter & nrStepsCopyingTo, counter & nrStepsCopyingFrom); - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 260[5.523][13.132]
counter nrStepsCopyingTo{0};counter nrStepsCopyingFrom{0}; - replacement in src/hydra-queue-runner/hydra-queue-runner.cc at line 1119
result, nrStepsBuilding);result, nrStepsBuilding, nrStepsCopyingTo, nrStepsCopyingFrom); - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 1547
root.attr("nrStepsCopyingTo", nrStepsCopyingTo);root.attr("nrStepsCopyingFrom", nrStepsCopyingFrom); - edit in src/script/hydra-send-stats at line 6
use File::Slurp; - edit in src/script/hydra-send-stats at line 23
gauge("hydra.queue.up", $json->{status} eq "up" ? 1 : 0); - edit in src/script/hydra-send-stats at line 30
gauge("hydra.queue.steps.copying_to", $json->{nrStepsCopyingTo});gauge("hydra.queue.steps.copying_from", $json->{nrStepsCopyingFrom}); - edit in src/script/hydra-send-stats at line 52
my $meminfo = read_file("/proc/meminfo", err_mode => 'quiet') // "";$meminfo =~ m/Dirty:\s*(\d+) kB/;if (defined $1) {my $dirty = $1 / (1024.0 * 1024.0);gauge("hydra.mem.dirty", $dirty);}