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  maxReplyNodes = 8192,
41 
45 
48 
51 
54 
57 };
58 
60 std::size_t constexpr readBufferBytes = 16384;
61 
62 } // namespace Tuning
63 
64 } // namespace ripple
65 
66 #endif
ripple::Tuning::sendQueueLogFreq
@ sendQueueLogFreq
How often to log send queue size.
Definition: overlay/impl/Tuning.h:53
ripple::Tuning::checkIdlePeers
@ checkIdlePeers
How often we check for idle peers (seconds)
Definition: overlay/impl/Tuning.h:56
ripple::Tuning::targetSendQueue
@ targetSendQueue
How many messages we consider reasonable sustained on a send queue.
Definition: overlay/impl/Tuning.h:50
ripple::Tuning::sendqIntervals
@ sendqIntervals
How many timer intervals a sendq has to stay large before we disconnect.
Definition: overlay/impl/Tuning.h:44
chrono
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:47
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:60
std::size_t
ripple::Tuning::maxReplyNodes
@ maxReplyNodes
The maximum number of ledger entries in a single reply.
Definition: overlay/impl/Tuning.h:40
ripple::Tuning::divergedLedgerLimit
@ divergedLedgerLimit
How many ledgers off a server has to be before we consider it diverged.
Definition: overlay/impl/Tuning.h:36