xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
xrpld
overlay
detail
src/xrpld/overlay/detail/Tuning.h
1
#pragma once
2
3
#include <xrpl/shamap/SHAMapInnerNode.h>
4
5
#include <
cstddef
>
6
#include <
cstdint
>
7
8
namespace
xrpl::tuning
{
9
14
static
constexpr
std::uint32_t
kConvergedLedgerLimit
= 24;
15
20
static
constexpr
std::uint32_t
kDivergedLedgerLimit
= 128;
21
25
static
constexpr
auto
kSoftMaxReplyNodes
= 8192;
26
30
static
constexpr
auto
kHardMaxReplyNodes
= 12288;
31
35
static
constexpr
auto
kSendqIntervals
= 4;
36
40
static
constexpr
auto
kDropSendQueue
= 192;
41
45
static
constexpr
auto
kTargetSendQueue
= 128;
46
50
static
constexpr
auto
kSendQueueLogFreq
= 64;
51
55
static
constexpr
auto
kCheckIdlePeers
= 4;
56
60
static
constexpr
auto
kMaxQueryDepth
= 3;
61
65
constexpr
std::size_t
kReadBufferBytes
= 16384;
66
91
99
static
constexpr
auto
kFreeObjectsPerRequest
= 16;
100
105
static
constexpr
auto
kCostPerLookupHit
= 1;
106
118
static
constexpr
auto
kCostPerLookupMiss
= 8;
119
134
static
constexpr
auto
kCostBandSmall
= 0;
135
static
constexpr
auto
kCostBandMedium
= 100;
136
static
constexpr
auto
kCostBandLarge
= 1000;
137
147
static
constexpr
auto
kLegitHashesPerType
= 4;
148
165
static
constexpr
auto
kBandSmallMax
=
kLegitHashesPerType
*
SHAMapInnerNode::kBranchFactor
;
166
static
constexpr
auto
kBandMediumMax
=
kBandSmallMax
*
SHAMapInnerNode::kBranchFactor
;
167
168
}
// namespace xrpl::tuning
xrpl::SHAMapInnerNode::kBranchFactor
static constexpr unsigned int kBranchFactor
Each inner node has 16 children (the 'radix tree' part of the map).
Definition
SHAMapInnerNode.h:24
cstddef
cstdint
std::uint32_t
xrpl::tuning
Definition
src/xrpld/overlay/detail/Tuning.h:8
xrpl::tuning::kSoftMaxReplyNodes
static constexpr auto kSoftMaxReplyNodes
The soft cap on the number of ledger entries in a single reply.
Definition
src/xrpld/overlay/detail/Tuning.h:25
xrpl::tuning::kBandMediumMax
static constexpr auto kBandMediumMax
Definition
src/xrpld/overlay/detail/Tuning.h:166
xrpl::tuning::kTargetSendQueue
static constexpr auto kTargetSendQueue
How many messages we consider reasonable sustained on a send queue.
Definition
src/xrpld/overlay/detail/Tuning.h:45
xrpl::tuning::kCostPerLookupHit
static constexpr auto kCostPerLookupHit
Cost of one cache-hit lookup.
Definition
src/xrpld/overlay/detail/Tuning.h:105
xrpl::tuning::kCostBandLarge
static constexpr auto kCostBandLarge
Definition
src/xrpld/overlay/detail/Tuning.h:136
xrpl::tuning::kFreeObjectsPerRequest
static constexpr auto kFreeObjectsPerRequest
TMGetObjectByHash differential pricing.
Definition
src/xrpld/overlay/detail/Tuning.h:99
xrpl::tuning::kHardMaxReplyNodes
static constexpr auto kHardMaxReplyNodes
The hard cap on the number of ledger entries in a single reply.
Definition
src/xrpld/overlay/detail/Tuning.h:30
xrpl::tuning::kConvergedLedgerLimit
static constexpr std::uint32_t kConvergedLedgerLimit
How many ledgers off a server can be and we will still consider it converged.
Definition
src/xrpld/overlay/detail/Tuning.h:14
xrpl::tuning::kDropSendQueue
static constexpr auto kDropSendQueue
How many messages on a send queue before we refuse queries.
Definition
src/xrpld/overlay/detail/Tuning.h:40
xrpl::tuning::kLegitHashesPerType
static constexpr auto kLegitHashesPerType
How many hashes per type an honest peer asks for at a time.
Definition
src/xrpld/overlay/detail/Tuning.h:147
xrpl::tuning::kMaxQueryDepth
static constexpr auto kMaxQueryDepth
The maximum number of levels to search.
Definition
src/xrpld/overlay/detail/Tuning.h:60
xrpl::tuning::kSendqIntervals
static constexpr auto kSendqIntervals
How many timer intervals a sendq has to stay large before we disconnect.
Definition
src/xrpld/overlay/detail/Tuning.h:35
xrpl::tuning::kBandSmallMax
static constexpr auto kBandSmallMax
Cutoffs that decide which size band a request falls into.
Definition
src/xrpld/overlay/detail/Tuning.h:165
xrpl::tuning::kReadBufferBytes
constexpr std::size_t kReadBufferBytes
Size of buffer used to read from the socket.
Definition
src/xrpld/overlay/detail/Tuning.h:65
xrpl::tuning::kCostBandMedium
static constexpr auto kCostBandMedium
Definition
src/xrpld/overlay/detail/Tuning.h:135
xrpl::tuning::kCostPerLookupMiss
static constexpr auto kCostPerLookupMiss
Cost of one node-store miss, in units of kCostPerLookupHit.
Definition
src/xrpld/overlay/detail/Tuning.h:118
xrpl::tuning::kDivergedLedgerLimit
static constexpr std::uint32_t kDivergedLedgerLimit
How many ledgers off a server has to be before we consider it diverged.
Definition
src/xrpld/overlay/detail/Tuning.h:20
xrpl::tuning::kCostBandSmall
static constexpr auto kCostBandSmall
Size-band surcharges.
Definition
src/xrpld/overlay/detail/Tuning.h:134
xrpl::tuning::kSendQueueLogFreq
static constexpr auto kSendQueueLogFreq
How often to log send queue size.
Definition
src/xrpld/overlay/detail/Tuning.h:50
xrpl::tuning::kCheckIdlePeers
static constexpr auto kCheckIdlePeers
How often we check for idle peers (seconds).
Definition
src/xrpld/overlay/detail/Tuning.h:55
std::size_t
Generated by
1.17.0