xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
resource
detail
include/xrpl/resource/detail/Tuning.h
1
#pragma once
2
3
#include <
chrono
>
4
5
namespace
xrpl::resource
{
6
10
11
// balance at which a warning is issued
12
static
constexpr
auto
kWarningThreshold
= 5000;
13
14
// balance at which the consumer is disconnected
15
static
constexpr
auto
kDropThreshold
= 25000;
16
17
// seconds in exponential decay window (power of two)
18
static
constexpr
auto
kDecayWindowSeconds
= 32;
19
20
// minimum balance to include a load source in gossip
21
static
constexpr
auto
kMinimumGossipBalance
= 1000;
22
23
// The number of seconds until an inactive table item is removed
24
static
constexpr
std::chrono::seconds
kSecondsUntilExpiration
{300};
25
26
// Number of seconds until imported gossip expires
27
static
constexpr
std::chrono::seconds
kGossipExpirationSeconds
{30};
28
29
}
// namespace xrpl::resource
chrono
std::chrono::seconds
xrpl::resource
Definition
ServiceRegistry.h:21
xrpl::resource::kDecayWindowSeconds
static constexpr auto kDecayWindowSeconds
Definition
include/xrpl/resource/detail/Tuning.h:18
xrpl::resource::kMinimumGossipBalance
static constexpr auto kMinimumGossipBalance
Definition
include/xrpl/resource/detail/Tuning.h:21
xrpl::resource::kSecondsUntilExpiration
static constexpr std::chrono::seconds kSecondsUntilExpiration
Definition
include/xrpl/resource/detail/Tuning.h:24
xrpl::resource::kWarningThreshold
static constexpr auto kWarningThreshold
Tunable constants.
Definition
include/xrpl/resource/detail/Tuning.h:12
xrpl::resource::kDropThreshold
static constexpr auto kDropThreshold
Definition
include/xrpl/resource/detail/Tuning.h:15
xrpl::resource::kGossipExpirationSeconds
static constexpr std::chrono::seconds kGossipExpirationSeconds
Definition
include/xrpl/resource/detail/Tuning.h:27
Generated by
1.17.0