Skip to content

Commit

Permalink
hydra-queue-runner: Limit concurrent database connections
Browse files Browse the repository at this point in the history
Adding a 96-core aarch64 build machine to the build farm caused the
potential number of database connections to increase a lot, so we
started hitting the Postgres connection limit.
  • Loading branch information
edolstra committed Mar 21, 2017
1 parent 150228d commit 57bc0ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hydra-queue-runner/hydra-queue-runner.cc
Expand Up @@ -72,6 +72,7 @@ static uint64_t getMemSize()

State::State()
: config(std::make_unique<Config>())
, dbPool(config->getIntOption("max_db_connections", 128))
, memoryTokens(config->getIntOption("nar_buffer_size", getMemSize() / 2))
, maxOutputSize(config->getIntOption("max_output_size", 2ULL << 30))
, uploadLogsToBinaryCache(config->getBoolOption("upload_logs_to_binary_cache", false))
Expand Down

0 comments on commit 57bc0ea

Please sign in to comment.