mirror of
https://github.com/XRPLF/clio.git
synced 2026-07-29 10:00:25 +00:00
reduce etl queue size based on number of extractor threads
This commit is contained in:
@@ -354,7 +354,7 @@ ReportingETL::runETLPipeline(uint32_t startSequence, int numExtractors)
|
||||
|
||||
std::atomic_bool writeConflict = false;
|
||||
std::optional<uint32_t> lastPublishedSequence;
|
||||
constexpr uint32_t maxQueueSize = 1000;
|
||||
uint32_t maxQueueSize = 1000 / numExtractors;
|
||||
auto begin = std::chrono::system_clock::now();
|
||||
using QueueType =
|
||||
ThreadSafeQueue<std::optional<org::xrpl::rpc::v1::GetLedgerResponse>>;
|
||||
|
||||
Reference in New Issue
Block a user