From 01b43de9d93ced948ff40258cdae3c2fcf5ef0e5 Mon Sep 17 00:00:00 2001 From: Ionatan Wiznia Date: Mon, 13 May 2024 14:29:19 -0300 Subject: [PATCH] Increase db pool limit from 25k to 100k --- BedrockServer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BedrockServer.cpp b/BedrockServer.cpp index ac416033c..a8fe77f91 100644 --- a/BedrockServer.cpp +++ b/BedrockServer.cpp @@ -89,7 +89,7 @@ void BedrockServer::sync() int64_t mmapSizeGB = args.isSet("-mmapSizeGB") ? stoll(args["-mmapSizeGB"]) : 0; // We use fewer FDs on test machines that have other resource restrictions in place. - int fdLimit = args.isSet("-live") ? 25'000 : 250; + int fdLimit = args.isSet("-live") ? 100'000 : 250; SINFO("Setting dbPool size to: " << fdLimit); _dbPool = make_shared(fdLimit, args["-db"], args.calc("-cacheSize"), args.calc("-maxJournalSize"), workerThreads, args["-synchronous"], mmapSizeGB, args.isSet("-hctree")); SQLite& db = _dbPool->getBase(); @@ -703,7 +703,7 @@ void BedrockServer::runCommand(unique_ptr&& _command, bool isBlo } // If we're following, we will automatically escalate any command that's: - // 1. Not already complete (complete commands are likely already returned from leader with legacy escalation) + // 1. Not already complete (complete commands are likely already returned from leader with legacy escalation) // and is marked as `escalateImmediately` (which lets them skip the queue, which is particularly useful if they're waiting // for a previous commit to be delivered to this follower); // 2. Any commands if the current version of the code is not the same one as leader is executing. @@ -1915,7 +1915,7 @@ void BedrockServer::_beginShutdown(const string& reason, bool detach) { _portPluginMap.clear(); _shutdownState.store(START_SHUTDOWN); } - SQLiteNodeState currentState = SQLiteNodeState::UNKNOWN; + SQLiteNodeState currentState = SQLiteNodeState::UNKNOWN; auto syncNodeCopy = atomic_load(&_syncNode); if (syncNodeCopy) { currentState = syncNodeCopy->getState();