Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
222 changes: 209 additions & 13 deletions README.md

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions docs/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ crypto.verify.miss | meter | number of signature cach
crypto.verify.total | meter | sum of both hits and misses
crypto.verify.tx-valid-hit | meter | signature cache hits that occurred while validating transactions (outside of background signature validation)
crypto.verify.tx-valid-total | meter | sum of both hits and misses during transaction validation (outside of background signature validation)
herder.tx-admission.account-busy | meter | submitted transactions refused because their source account already has a pending transaction accepted by this node
herder.tx-admission.check | timer | time spent checking a submitted transaction against the last closed ledger before it is sent on
herder.tx-admission.invalid | meter | submitted transactions refused because they are invalid against the last closed ledger
herder.txset.build | timer | time spent building the tx set proposed at nomination from the transaction queues
herder.txset.validate | timer | time spent turning a received tx set into an applicable tx set and validating it on a validity-cache miss
herder.txset.validate-sig-cache-hit | meter | signature cache hits while validating a received tx set (herder.txset.validate)
Expand Down Expand Up @@ -166,6 +169,11 @@ overlay.flood.broadcast | meter | message sent as broadcas
overlay.flood.duplicate_recv | meter | number of bytes of flooded messages that have already been received
overlay.flood.unique_recv | meter | number of bytes of flooded messages that have not yet been received
overlay.flood.tx-batch-size | histogram | number of transactions in a batch
overlay.flood.tx-direct-recv | meter | transaction bodies received without a demand (sent directly by a peer), kept and not relayed
overlay.flood.tx-late-copy | meter | transactions admitted although one of the last few externalized ledgers already has them (a copy that arrived late)
overlay.flood.tx-direct-sent | meter | transaction bodies sent straight to a target leader, without an advert
overlay.flood.tx-direct-sent-bytes | meter | bytes of those bodies
overlay.flood.tx-local-flooded | meter | own transactions advertised to every peer because no target list was set or a target was not directly connected
overlay.inbound.attempt | meter | inbound connection attempted (accepted on socket)
overlay.inbound.drop | meter | inbound connection dropped
overlay.inbound.establish | meter | inbound connection established (added to pending)
Expand All @@ -179,6 +187,8 @@ overlay.message.broadcast | meter | message broadcasted
overlay.message.read | meter | message received
overlay.message.write | meter | message sent
overlay.message.drop | meter | message dropped due to load-shedding
overlay.node-id.identified | counter | connected peers that proved which validator they belong to
overlay.node-id.rejected | meter | validator identity claims from peers with a signature that does not bind them to the connection
overlay.outbound.attempt | meter | outbound connection attempted (socket opened)
overlay.outbound.cancel | meter | outbound connection cancelled
overlay.outbound.drop | meter | outbound connection dropped
Expand Down
24 changes: 24 additions & 0 deletions docs/stellar-core_example.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,30 @@ EXPERIMENTAL_PARALLEL_TX_SET_DOWNLOAD = false
# also enabled.
BACKGROUND_TX_SIG_VERIFICATION = true

# TX_FLOOD_TARGET_LEADERS (integer) default 2
# Experimental. How many upcoming round leaders get the transactions this
# node accepts (the leader of the node's current round of the next ledger and
# the ones after it; one ledger before a new leader term starts, also that
# term's expected first leader). The node sends them the transactions
# directly instead of advertising them to every peer. 0 = every validator of
# the leader schedule (no adverts either, but every validator holds every
# transaction before the leader's set arrives).
TX_FLOOD_TARGET_LEADERS = 2

# TX_FLOOD_LEGACY_ADVERTS (boolean) default false
# Experimental. If true, no target list is used: transactions are advertised
# to every peer and fetched on demand (the behaviour before
# TX_FLOOD_TARGET_LEADERS existed).
TX_FLOOD_LEGACY_ADVERTS = false

# BATCH_EXECUTOR_TASKS (integer) default 0
# Experimental. Number of tasks (worker threads) used for CPU-bound batch
# work: transaction validation when building and when applying a transaction
# set, and the background signature verification. 0 = one per physical core
# minus one. A larger value uses hyper-thread siblings once the physical
# cores are taken.
BATCH_EXECUTOR_TASKS = 0

# NTP_DRIFT_CHECK_SERVER (string) default "pool.ntp.org"
# Hostname of an NTP server that the node periodically queries (about every ten
# minutes) to detect and warn about drift of the local clock. This is detection
Expand Down
2 changes: 2 additions & 0 deletions overlay/src/flood/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ mod inv_tracker;
mod mempool;
mod pending_requests;
mod tx_buffer;
pub(crate) mod tx_router;
mod txset;
pub(crate) mod txset_encoding;
pub(crate) mod txset_push;
Expand All @@ -19,6 +20,7 @@ pub use inv_tracker::InvTracker;
pub use mempool::Mempool;
pub use pending_requests::PendingRequests;
pub use tx_buffer::TxBuffer;
pub use tx_router::{NodeId, SendPlan, TxRouter};
pub use txset::{CachedTxSet, Hash256, TxSetCache};
pub use txset_encoding::TxSetData;
pub use txset_push::{PushRateLimiter, PushRecord, UnclaimedSetBudget};
Expand Down
Loading
Loading