Skip to content

Review MaxClientCircuitsPending 64 and per-service Tor dial budgets against upstream advice #4263

Open

Description

@pithead-developer

What's the problem

#4088 (from the #4078 guard rail) raised MaxClientCircuitsPending to 64 and lowered monerod's default out-peers. Upstream Tor developers advise against raising the pending cap, because a client in trouble then pushes twice as many circuit builds into a stressed network. One Tor process also carries every workload:

  • monerod's outbound P2P through exits;
  • Tari and P2Pool onion dials;
  • dashboard probes and update checks;
  • several onion services.

A develop stack with the new cap still lost Tari connectivity behind a stale consensus on 2026-11-19.

What it impacts

How often Tor saturates on busy appliances, and the Tor network load each appliance adds when it is wedged.

How I found it

A review of the Tor configuration after two wedges on 2026-11-19, against upstream Tor tickets on the pending-circuit limit.

How important is it

Medium. Tuning lowers frequency but does not cure a wedge. The self-heal issue covers recovery.

Acceptance criteria

  • A documented decision on the pending cap (keep 64, return to 32, or make it adaptive), with the reasoning.
  • Per-service dial budgets are reviewed: monerod out-peers including explicit configs, and Tari outbound dials.
  • The Tor version floor is enforced, 0.4.9.17 or newer, and shown in diagnostics.
  • A measurement from the Tor diagnostics issue backs the decision.

Possible solutions

  • Measure pending-circuit composition with the diagnostics first, then adjust.
  • Cap Tari's simultaneous outbound dials if HSDir lookups dominate.

Activity

  1. added this to the v2.0.5 milestone on Nov 19, 2026
  2. added
    enhancement
    appliance
    P3-hardening
    size:S
    on Nov 19, 2026
  3. pithead-developer commented on Nov 27, 2026

    @pithead-developer
    ContributorAuthor

    Grouped with #4012, but PR #4616 does not close it: Its acceptance criteria need a measurement from the Tor diagnostics work before a pending-cap decision can be made, and it needs its own tier-4 proof; left for a later session.. Released for its own pick.

  4. added a commit that references this issue on Dec 3, 2026
    2e15d09
  5. pithead-developer commented on Dec 4, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #4674. The branch is pushed at 9ea7385, but no tier-4 e2e can run on this head until develop's Tor image builds again. Build image (tor) is red on develop because Alpine retired tor=0.4.9.17-r0; that is #4674/#4677, and the pin bump to 0.4.9.18-r0 sits in #4668. The verifier found a real hole in the #4598 fix, now fixed. A stopped container dropped out of the LAN watch whatever bind it was created with. It is now judged by its configured bind, with three new assertions. Local checks pass: make lint-file-budget, make lint-pithead-build, the tor-bump self-test, shellcheck, and shell test block 2 (17 reds, none in this change). #4263 is not complete: the version floor (build and pin-bump tool), the version in the support bundle, and the cap decision (keep 64) are done. Not done: a measurement from Tor diagnostics, and any Tari dial cap, because no measurement exists yet and the docs defer both to it. Leaving #4338 out; I did not read it beyond its text, but it is about the realupgrade battery phase. Once #4668 merges, bring develop in and run tier4-e2e targeted, covering Tor and the LAN guard. I commented on PR #4675 with the same blocker. Open decision for the owner: accept the documented deferral for the #4263 measurement, or keep the issue open for it.

    The runner resumes this issue when that one closes.

  6. added
    blocked
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3-hardeningapplianceblockedenhancementsize:S

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions