Lowering block_processor max transaction duration to 500ms from 5s. This increases write transaction availability at the expense of slightly lower throughput. (#4163)

This commit is contained in:
clemahieu 2023-03-02 08:33:06 +00:00 committed by GitHub
commit 46e12ebace
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,7 +82,7 @@ public:
nano::ipc::ipc_config ipc_config;
std::string external_address;
uint16_t external_port{ 0 };
std::chrono::milliseconds block_processor_batch_max_time{ network_params.network.is_dev_network () ? std::chrono::milliseconds (500) : std::chrono::milliseconds (5000) };
std::chrono::milliseconds block_processor_batch_max_time{ std::chrono::milliseconds (500) };
std::chrono::seconds unchecked_cutoff_time{ std::chrono::seconds (4 * 60 * 60) }; // 4 hours
/** Timeout for initiated async operations */
std::chrono::seconds tcp_io_timeout{ (network_params.network.is_dev_network () && !is_sanitizer_build ()) ? std::chrono::seconds (5) : std::chrono::seconds (15) };