Skip to content

pynixd: trace why the scheduler places a build on a node #1070

Open

Description

@Lillecarl

The scheduler often sends the t3 code build to one of the remote nodes instead of building it locally. That build is always very slow there. Nothing tells us why the scheduler chose that node.

A guess, not verified: the derivation is dynamic, so pynixd has no data that says the build is heavy.

Wanted:

  • A debug trace of each placement decision: the candidate nodes, the inputs to the choice (load, speed factor, features, closure transfer size, any history), and the node that won.
  • Enable it with a setting or a log level, off by default.
  • Use the trace on the t3 code build to find the cause, then file the fix as its own issue.

Assisted-By: Claude Opus 5.5

Activity

  1. added
    source: pynixd
    on Oct 24, 2026
  2. Lillecarl commented on Oct 24, 2026

    @Lillecarl
    ContributorAuthor

    Decision, 2026-10-24: traces go to SQLite, in pynixd's own database, next to the build observations of #1001. DuckDB can attach that file (ATTACH ... (TYPE sqlite)) for heavier analysis, so nothing else is needed now.


    Assisted-By: Claude Opus 5.5

  3. Lillecarl commented on Oct 24, 2026

    @Lillecarl
    ContributorAuthor

    Scope from User: log a lot of metadata for each placement decision, so the trace explains it alone.

    For each candidate store, one row per decision:

    • every scoring term: the initial value, each penalty and multiplier (CPU idle, PSI, concurrency, thundering herd, score penalty, priority, transfer penalty), and the final score
    • whether the store passed the threshold, and why not when it did not
    • estimated time to ship the inputs, to build, and to pull the outputs
    • estimated bytes to push and estimated bytes to pull

    Per decision: the build identity, the store chosen, the queue wait, and the pass that decided. After the build: the measured values next to the estimates (build_observed already has the measured side).


    Assisted-By: Claude Opus 5.5

  4. Lillecarl commented on Oct 24, 2026

    @Lillecarl
    ContributorAuthor

    More scope from User:

    • Compute extra figures while tracing, such as an estimated time per store (ship, build, pull), so the trace shows how pynixd reasons.
    • Rows have a max age. Old rows go in chunks on a schedule, not eagerly on each write, to keep fragmentation low.

    Assisted-By: Claude Opus 5.5

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

    source: pynixd

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions