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 {
32 
36 
40 
44 
48 
51  maxReplyNodes = 8192,
52 
55 
58 
62 
64  noPing = 10,
65 
68 
71 
74 };
75 
78 
79 } // namespace Tuning
80 
81 } // namespace ripple
82 
83 #endif
ripple::Tuning::sendQueueLogFreq
@ sendQueueLogFreq
How often to log send queue size.
Definition: overlay/impl/Tuning.h:73
ripple::Tuning::maxUnknownTime
@ maxUnknownTime
How long a server can remain unknown before we disconnect it (if outbound)
Definition: overlay/impl/Tuning.h:39
ripple::Tuning::targetSendQueue
@ targetSendQueue
How many messages we consider reasonable sustained on a send queue.
Definition: overlay/impl/Tuning.h:70
ripple::Tuning::insaneLedgerLimit
@ insaneLedgerLimit
How many ledgers off a server has to be before we consider it insane.
Definition: overlay/impl/Tuning.h:47
ripple::Tuning::sendqIntervals
@ sendqIntervals
How many timer intervals a sendq has to stay large before we disconnect.
Definition: overlay/impl/Tuning.h:61
std::chrono::milliseconds
ripple::Tuning::maxInsaneTime
@ maxInsaneTime
How long a server can remain insane before we disconnected it (if outbound)
Definition: overlay/impl/Tuning.h:35
ripple::Tuning::noPing
@ noPing
How many timer intervals we can go without a ping reply.
Definition: overlay/impl/Tuning.h:64
ripple::Tuning::timerSeconds
@ timerSeconds
How often we latency/sendq probe connections.
Definition: overlay/impl/Tuning.h:57
ripple::Tuning::peerHighLatency
constexpr std::chrono::milliseconds peerHighLatency
The threshold above which we treat a peer connection as high latency.
Definition: overlay/impl/Tuning.h:77
chrono
ripple::Tuning::dropSendQueue
@ dropSendQueue
How many messages on a send queue before we refuse queries.
Definition: overlay/impl/Tuning.h:67
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition: RCLCensorshipDetector.h:29
ripple::Tuning::readBufferBytes
@ readBufferBytes
Size of buffer used to read from the socket.
Definition: overlay/impl/Tuning.h:31
ripple::Tuning::checkSeconds
@ checkSeconds
How often we check connections (seconds)
Definition: overlay/impl/Tuning.h:54
ripple::Tuning::maxReplyNodes
@ maxReplyNodes
The maximum number of ledger entries in a single reply.
Definition: overlay/impl/Tuning.h:51
ripple::Tuning::saneLedgerLimit
@ saneLedgerLimit
How many ledgers off a server can be and we will still consider it sane.
Definition: overlay/impl/Tuning.h:43