mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Improve online_delete configuration and DB tuning:
* Document delete_batch, back_off_milliseconds, age_threshold_seconds. * Convert those time values to chrono types. * Fix bug that ignored age_threshold_seconds. * Add a "recovery buffer" to the config that gives the node a chance to recover before aborting online delete. * Add begin/end log messages around the SQL queries. * Add a new configuration section: [sqlite] to allow tuning the sqlite database operations. Ignored on full/large history servers. * Update documentation of [node_db] and [sqlite] in the rippled-example.cfg file. Resolves #3321
This commit is contained in:
committed by
Nik Bougalis
parent
00702f28c2
commit
4702c8b591
@@ -442,7 +442,8 @@ Config::loadFromString(std::string const& fileContents)
|
||||
if (getSingleSection(secConfig, SECTION_LEDGER_HISTORY, strTemp, j_))
|
||||
{
|
||||
if (boost::iequals(strTemp, "full"))
|
||||
LEDGER_HISTORY = 1000000000u;
|
||||
LEDGER_HISTORY =
|
||||
std::numeric_limits<decltype(LEDGER_HISTORY)>::max();
|
||||
else if (boost::iequals(strTemp, "none"))
|
||||
LEDGER_HISTORY = 0;
|
||||
else
|
||||
@@ -454,7 +455,7 @@ Config::loadFromString(std::string const& fileContents)
|
||||
if (boost::iequals(strTemp, "none"))
|
||||
FETCH_DEPTH = 0;
|
||||
else if (boost::iequals(strTemp, "full"))
|
||||
FETCH_DEPTH = 1000000000u;
|
||||
FETCH_DEPTH = std::numeric_limits<decltype(FETCH_DEPTH)>::max();
|
||||
else
|
||||
FETCH_DEPTH = beast::lexicalCastThrow<std::uint32_t>(strTemp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user