rippled
Enumerations | Functions | Variables
ripple::PeerFinder::Tuning Namespace Reference

Heuristically tuned constants. More...

Enumerations

enum  {
  secondsPerConnect = 10, maxConnectAttempts = 20, outPercent = 15, minOutCount = 10,
  defaultMaxPeers = 21, maxRedirects = 30
}
 
enum  { bootcacheSize = 1000, bootcachePrunePercent = 10 }
 

Functions

static const std::chrono::seconds bootcacheCooldownTime (60)
 
constexpr std::chrono::seconds secondsPerMessage (151)
 
constexpr std::chrono::seconds liveCacheSecondsToLive (30)
 
constexpr std::chrono::seconds recentAttemptDuration (60)
 

Variables

static const std::array< int, 10 > connectionBackoff
 
constexpr std::uint32_t maxHops = 6
 
constexpr std::uint32_t numberOfEndpoints = 2 * maxHops
 
constexpr std::uint32_t numberOfEndpointsMax
 
constexpr std::uint32_t redirectEndpointCount = 10
 

Detailed Description

Heuristically tuned constants.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
secondsPerConnect 

Time to wait between making batches of connection attempts.

maxConnectAttempts 
outPercent 
minOutCount 
defaultMaxPeers 
maxRedirects 

Definition at line 32 of file peerfinder/impl/Tuning.h.

◆ anonymous enum

anonymous enum
Enumerator
bootcacheSize 
bootcachePrunePercent 

Definition at line 88 of file peerfinder/impl/Tuning.h.

Function Documentation

◆ bootcacheCooldownTime()

static const std::chrono::seconds ripple::PeerFinder::Tuning::bootcacheCooldownTime ( 60  )
static

◆ secondsPerMessage()

constexpr std::chrono::seconds ripple::PeerFinder::Tuning::secondsPerMessage ( 151  )
constexpr

◆ liveCacheSecondsToLive()

constexpr std::chrono::seconds ripple::PeerFinder::Tuning::liveCacheSecondsToLive ( 30  )
constexpr

◆ recentAttemptDuration()

constexpr std::chrono::seconds ripple::PeerFinder::Tuning::recentAttemptDuration ( 60  )
constexpr

Variable Documentation

◆ connectionBackoff

const std::array<int, 10> ripple::PeerFinder::Tuning::connectionBackoff
static
Initial value:
{
{1, 1, 2, 3, 5, 8, 13, 21, 34, 55}}

Definition at line 79 of file peerfinder/impl/Tuning.h.

◆ maxHops

constexpr std::uint32_t ripple::PeerFinder::Tuning::maxHops = 6
constexpr

Definition at line 110 of file peerfinder/impl/Tuning.h.

◆ numberOfEndpoints

constexpr std::uint32_t ripple::PeerFinder::Tuning::numberOfEndpoints = 2 * maxHops
constexpr

Definition at line 113 of file peerfinder/impl/Tuning.h.

◆ numberOfEndpointsMax

constexpr std::uint32_t ripple::PeerFinder::Tuning::numberOfEndpointsMax
constexpr
Initial value:
=
std::max<decltype(numberOfEndpoints)>(numberOfEndpoints * 2, 64)

Definition at line 116 of file peerfinder/impl/Tuning.h.

◆ redirectEndpointCount

constexpr std::uint32_t ripple::PeerFinder::Tuning::redirectEndpointCount = 10
constexpr

Definition at line 120 of file peerfinder/impl/Tuning.h.