Warn if PostgreSQL appears stalled
[?]
Feb 29, 2016, 2:10 PM
BRAESISHTN4IIWUBVDMPDMY7QLMJDKX7GQ7K6NSJN66L5VPWSX3QCDependencies
- [2]
73YR46NJhydra-queue-runner: Write directly to a binary cache - [*]
MHVIT4JYSplit hydra-queue-runner.cc more - [*]
7LB6QBXYKeep track of the number of build steps that are being built - [*]
EYR3EW6JKeep stats for the Hydra auto scaler - [*]
24BMQDZAStart of single-process hydra-queue-runner - [*]
5AIYUMTBBasic remote building - [*]
PLOZBRTRAdd command ‘hydra-queue-runner --status’ to show current status - [*]
RQUAATWBAdd status dump facility - [*]
VQISTKOPhydra-queue-runner: Use substitutes - [*]
HJOEIMLRRefactor
Change contents
- edit in src/hydra-queue-runner/builder.cc at line 115
auto mc = startDbUpdate(); - edit in src/hydra-queue-runner/builder.cc at line 169
auto mc = startDbUpdate(); - edit in src/hydra-queue-runner/builder.cc at line 218
auto mc = startDbUpdate(); - edit in src/hydra-queue-runner/builder.cc at line 306
auto mc = startDbUpdate(); - edit in src/hydra-queue-runner/counter.hh at line 4
#include <functional> - edit in src/hydra-queue-runner/counter.hh at line 12
MaintainCount(counter & c, std::function<void(unsigned long)> warn) : c(c){warn(++c);} - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 45
}MaintainCount State::startDbUpdate(){return MaintainCount(nrActiveDbUpdates, [](unsigned long c) {if (c > 6) {printMsg(lvlError, format("warning: %d concurrent database updates; PostgreSQL may be stalled") % c);}}); - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 565
root.attr("nrActiveDbUpdates", nrActiveDbUpdates); - edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 675
auto mc = startDbUpdate(); - edit in src/hydra-queue-runner/queue-monitor.cc at line 127
auto mc = startDbUpdate(); - edit in src/hydra-queue-runner/queue-monitor.cc at line 165
{auto mc = startDbUpdate(); - edit in src/hydra-queue-runner/queue-monitor.cc at line 171
} - edit in src/hydra-queue-runner/queue-monitor.cc at line 185
auto mc = startDbUpdate(); - edit in src/hydra-queue-runner/queue-monitor.cc at line 429
auto mc = startDbUpdate(); - edit in src/hydra-queue-runner/state.hh at line 316[12.6084][12.6084]
counter nrActiveDbUpdates{0}; - edit in src/hydra-queue-runner/state.hh at line 363
MaintainCount startDbUpdate();