diff options
| author | tv <tv@krebsco.de> | 2026-11-22 15:41:08 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-22 15:41:14 +0000 |
| commit | 1063c8ef8da08f76bdc75823a4c16924b55b0e8e (patch) | |
| tree | a195ab9b38ddb4933cdad6cbb42ae742aaa1e86d /src/simtest | |
| parent | 448089f452025ec8c655532c758ea6ca9520b6ae (diff) | |
hyparview: its timers from Timing, derived from the keepalive
ASK_FOR (20 s), REFUSED_FOR (60 s), ONE_SHORT_EVERY (300 s) and
REAFFIRM_EVERY (60 s) were fixed: the simulations, on a 250 ms
keepalive, sat them out in real time, and simtest::hyparview's two took
a minute each, most of cargo sim's.
Now Timing has them (ask_for, refused_for, one_short_every,
reaffirm_every): twice the first sync reply timeout, one keepalive
interval, five, and one. At the defaults (1m, 10 s) they are what they
were; with another --keepalive they scale with it, as the keepalives
they answer to do. The two simulations take 3 s.
Diffstat (limited to 'src/simtest')
| -rw-r--r-- | src/simtest/hyparview.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simtest/hyparview.rs b/src/simtest/hyparview.rs index 8b95378..65d581c 100644 --- a/src/simtest/hyparview.rs +++ b/src/simtest/hyparview.rs @@ -144,7 +144,7 @@ async fn active_views_settle_and_heal() { sim.wait_ready(&all, SOON).await; // By node ID, as the views hold them (`ids` are the names on the simulated net). let up: BTreeSet<String> = nodes.iter().map(|n| n.local_id().to_owned()).collect(); - // Up to a reaffirm round (`REAFFIRM_EVERY`, 60 s) past the last change of a view: a + // Up to a reaffirm round (`Timing::reaffirm_every`) past the last change of a view: a // DISCONNECT lost on these lossy links leaves the link at one end until then. wait_settled( &nodes, @@ -233,8 +233,8 @@ async fn a_swarm_switches_to_hyparview_at_runtime() { .expect("recorded"); let up: BTreeSet<String> = nodes.iter().map(|n| n.local_id().to_owned()).collect(); // Longer than a start: a node that switched first asks others still on the member - // list's graph, which ignore NEIGHBOUR; it gives up on them after 20 s, and asks - // them again only a minute later (or they ask it, once switched). + // list's graph, which ignore NEIGHBOUR; it gives up on them after `Timing::ask_for`, and + // asks them again only after `Timing::refused_for` (or they ask it, once switched). wait_settled( &nodes, &ids, |
