rippled
overlay/impl/Tuning.h
1 //------------------------------------------------------------------------------
2 /*
3  This file is part of rippled: https://github.com/ripple/rippled
4  Copyright (c) 2012, 2013 Ripple Labs Inc.
5 
6  Permission to use, copy, modify, and/or distribute this software for any
7  purpose with or without fee is hereby granted, provided that the above
8  copyright notice and this permission notice appear in all copies.
9 
10  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13  ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 */
18 //==============================================================================
19 
20 #ifndef RIPPLE_OVERLAY_TUNING_H_INCLUDED
21 #define RIPPLE_OVERLAY_TUNING_H_INCLUDED
22 
23 #include <chrono>
24 
25 namespace ripple {
26 
27 namespace Tuning {
28 
29 enum {
33 
37 
40 
43 
47 
50 
53 
56 
59 
62 };
63 
65 std::size_t constexpr readBufferBytes = 16384;
66 
67 } // namespace Tuning
68 
69 } // namespace ripple
70 
71 #endif
ripple::Tuning::checkIdlePeers
@ checkIdlePeers
How often we check for idle peers (seconds)
Definition: overlay/impl/Tuning.h:58
ripple::Tuning::softMaxReplyNodes
@ softMaxReplyNodes
The soft cap on the number of ledger entries in a single reply.
Definition: overlay/impl/Tuning.h:39
chrono
ripple::Tuning::hardMaxReplyNodes
@ hardMaxReplyNodes
The hard cap on the number of ledger entries in a single reply.
Definition: overlay/impl/Tuning.h:42
ripple::Tuning::convergedLedgerLimit
@ convergedLedgerLimit
How many ledgers off a server can be and we will still consider it converged.
Definition: overlay/impl/Tuning.h:32
ripple::Tuning::dropSendQueue
@ dropSendQueue
How many messages on a send queue before we refuse queries.
Definition: overlay/impl/Tuning.h:49
ripple::Tuning::divergedLedgerLimit
@ divergedLedgerLimit
How many ledgers off a server has to be before we consider it diverged.
Definition: overlay/impl/Tuning.h:36
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition: RCLCensorshipDetector.h:29
ripple::Tuning::readBufferBytes
constexpr std::size_t readBufferBytes
Size of buffer used to read from the socket.
Definition: overlay/impl/Tuning.h:65
ripple::Tuning::targetSendQueue
@ targetSendQueue
How many messages we consider reasonable sustained on a send queue.
Definition: overlay/impl/Tuning.h:52
std::size_t
ripple::Tuning::sendqIntervals
@ sendqIntervals
How many timer intervals a sendq has to stay large before we disconnect.
Definition: overlay/impl/Tuning.h:46
ripple::Tuning::sendQueueLogFreq
@ sendQueueLogFreq
How often to log send queue size.
Definition: overlay/impl/Tuning.h:55
ripple::Tuning::maxQueryDepth
@ maxQueryDepth
The maximum number of levels to search.
Definition: overlay/impl/Tuning.h:61