Database read throttle (#242)

Track current outstanding read requests to the database. When the configured limit is exceeded, reject new RPCs and return rpcTOO_BUSY
This commit is contained in:
CJ Cobb
2022-09-23 15:43:03 -05:00
committed by GitHub
parent 1764f3524e
commit eb1ea28e27
7 changed files with 113 additions and 70 deletions

View File

@@ -156,6 +156,12 @@ public:
bool
doFinishWrites() override;
bool
isTooBusy() const override
{
return false;
}
bool
doOnlineDelete(
std::uint32_t const numLedgersToKeep,