From 6d3dbcb129b67152c89bbbe2a7dad98b071bf838 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 13:19:32 +0000 Subject: Two options for a node on a machine that should idle --libp2p-ping-interval: how often libp2p pings each open connection, 15 s unless given, 0 for once as it opens. The pings keep no connection open and close none; continuum takes each connection's round trip from them, to keep the fastest of several to one peer. --worker-threads: how many threads take the node's work in turns, as many as the machine has cores unless given. The runtime is built from the configuration, so the count is set as the node starts. Each wakes the node's threads less often; docs/operations.md, An idle node, says what to choose, and what was measured. --- src/simtest/identity.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/simtest') diff --git a/src/simtest/identity.rs b/src/simtest/identity.rs index f1a1b05..0df40f9 100644 --- a/src/simtest/identity.rs +++ b/src/simtest/identity.rs @@ -226,6 +226,7 @@ async fn nodes_over_libp2p() { continuum: true, mdns: false, upnp: false, + ping_interval: std::time::Duration::from_secs(15), ignore: Vec::new(), prefer: Vec::new(), internet_hosts: Vec::new(), -- cgit v1.3.1