mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
Control transaction dispatch rate:
Do not process a transaction received from a peer if it has
been processed within the past ten seconds.
Increase the number of transaction handlers that can be in
flight in the job queue and decrease the relative cost for
peers to share transaction and ledger data.
Additionally, make better use of resources by adjusting the
number of threads we initialize, by reverting commit
68b8ffdb63.
Performance counter modifications:
* Create and display counters to track:
1) Pending transaction limit overruns.
2) Total peer disconnections.
3) Peers disconnections due to resource consumption.
Avoid a potential double-free in Json library.
This commit is contained in:
committed by
Scott Schurr
parent
49b5c42e85
commit
76ad06ef47
@@ -2367,6 +2367,12 @@ Json::Value NetworkOPsImp::getServerInfo (bool human, bool admin)
|
||||
|
||||
info[jss::state_accounting] = accounting_.json();
|
||||
info[jss::uptime] = UptimeTimer::getInstance ().getElapsedSeconds ();
|
||||
info[jss::jq_trans_overflow] = std::to_string(
|
||||
app_.overlay().getJqTransOverflow());
|
||||
info[jss::peer_disconnects] = std::to_string(
|
||||
app_.overlay().getPeerDisconnect());
|
||||
info[jss::peer_disconnects_resources] = std::to_string(
|
||||
app_.overlay().getPeerDisconnectCharges());
|
||||
|
||||
return info;
|
||||
}
|
||||
@@ -3365,7 +3371,7 @@ Json::Value NetworkOPsImp::StateAccounting::json() const
|
||||
ret[states_[i]] = Json::objectValue;
|
||||
auto& state = ret[states_[i]];
|
||||
state[jss::transitions] = counters[i].transitions;
|
||||
state[jss::duration_us] = std::to_string (counters[i].dur.count());
|
||||
state[jss::duration_us] = std::to_string(counters[i].dur.count());
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user