Skip to content

Shepherd 1.1.1

Choose a tag to compare

@github-actions github-actions released this 05 Nov 00:52
· 49 commits to main since this release

One fix, for the restart: Shepherd binds its DNS listeners only once startup has finished, and
repopulating the live view from the encrypted history was reading the whole store to produce the
newest few thousand entries. A household on 1.1.0 or earlier loses DNS for as long as that takes,
which is a minute on a month of history.

Fixed

  • A restart no longer leaves the network without DNS for a minute. Shepherd binds its DNS
    listeners only after startup finishes, and one step of startup was reading the entire encrypted
    history: the live view is repopulated from the newest dns.log_size entries after a restart, but
    the query behind it decrypted every segment in the store, sorted all of it, and only then kept the
    newest few thousand. On a 77 MB history (102 segments, 30 days) that was 52 seconds before DNS
    came up
    , with 4 GiB of memory at the peak and nothing logged while it happened, so a slow start
    was indistinguishable from a hung one. A limited history query now walks the segments newest first
    and stops once no older segment can hold a newer match, trimming as it goes: the same restart
    binds DNS in 2 seconds and peaks at 350 MiB, with the live view populated exactly as before.
    The portal's own history searches get the same saving. Startup also says when it is loading the
    past, and how long that took when it was slow enough to notice. See
    docs/HISTORY.md.