Warn if PostgreSQL appears stalled

[?]
Feb 29, 2016, 2:10 PM
BRAESISHTN4IIWUBVDMPDMY7QLMJDKX7GQ7K6NSJN66L5VPWSX3QC

Dependencies

  • [2] 73YR46NJ hydra-queue-runner: Write directly to a binary cache
  • [*] MHVIT4JY Split hydra-queue-runner.cc more
  • [*] 7LB6QBXY Keep track of the number of build steps that are being built
  • [*] EYR3EW6J Keep stats for the Hydra auto scaler
  • [*] 24BMQDZA Start of single-process hydra-queue-runner
  • [*] 5AIYUMTB Basic remote building
  • [*] PLOZBRTR Add command ‘hydra-queue-runner --status’ to show current status
  • [*] RQUAATWB Add status dump facility
  • [*] VQISTKOP hydra-queue-runner: Use substitutes
  • [*] HJOEIMLR Refactor

Change contents

  • edit in src/hydra-queue-runner/builder.cc at line 115
    [4.3995]
    [4.3995]
    auto mc = startDbUpdate();
  • edit in src/hydra-queue-runner/builder.cc at line 169
    [4.5501]
    [4.5501]
    auto mc = startDbUpdate();
  • edit in src/hydra-queue-runner/builder.cc at line 218
    [4.7316]
    [4.7316]
    auto mc = startDbUpdate();
  • edit in src/hydra-queue-runner/builder.cc at line 306
    [4.10359]
    [4.10359]
    auto mc = startDbUpdate();
  • edit in src/hydra-queue-runner/counter.hh at line 4
    [5.267]
    [5.267]
    #include <functional>
  • edit in src/hydra-queue-runner/counter.hh at line 12
    [5.399]
    [6.234]
    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
    [8.7892]
    [2.1542]
    }
    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
    [9.1628]
    [9.1628]
    root.attr("nrActiveDbUpdates", nrActiveDbUpdates);
  • edit in src/hydra-queue-runner/hydra-queue-runner.cc at line 675
    [10.413]
    [9.2019]
    auto mc = startDbUpdate();
  • edit in src/hydra-queue-runner/queue-monitor.cc at line 127
    [4.23372]
    [4.23372]
    auto mc = startDbUpdate();
  • edit in src/hydra-queue-runner/queue-monitor.cc at line 165
    [4.24983]
    [4.24983]
    {
    auto mc = startDbUpdate();
  • edit in src/hydra-queue-runner/queue-monitor.cc at line 171
    [4.25142]
    [4.25142]
    }
  • edit in src/hydra-queue-runner/queue-monitor.cc at line 185
    [4.26530]
    [4.26530]
    auto mc = startDbUpdate();
  • edit in src/hydra-queue-runner/queue-monitor.cc at line 429
    [11.2615]
    [11.2615]
    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
    [2.13176]
    [2.13176]
    MaintainCount startDbUpdate();