Skip to content

refactor(finder): Search active archive nodes by default#107

Merged
ketiltrout merged 1 commit into
mainfrom
node_spoof_default
Apr 2, 2026
Merged

refactor(finder): Search active archive nodes by default#107
ketiltrout merged 1 commit into
mainfrom
node_spoof_default

Conversation

@ketiltrout

@ketiltrout ketiltrout commented Mar 24, 2026

Copy link
Copy Markdown
Member

This changes what the Finder does when not given a node_spoof.

In the past, in this case, Finder would look at the local hostname and try to match that against host values in the database. This was never a good default and almost always not what a user would want, since it would only be useful if running Finder on a machine which
also happened to be running the alpenhorn daemon. As a result, we
almost always use node_spoof when running Finder.

This changes the default node list to not consider the local hostname, and instead just look at all the currently active archive nodes. This ensures users will find anything that matches their query, even though they may not know where the file is.

Alpenhorn per se has slowly migrated the meaning of the "host" field. Now alpenhorn's "host" field is typically a logical value (like "scinet" or "fir"), which doesn't correspond to any local hostname and the value used is set in the daemon's config file.

Requires chime-experiment/chimedb_di#33

@ketiltrout ketiltrout requested a review from ljgray March 24, 2026 21:03
This changes what the `Finder` does when _not_ given a `node_spoof`.

In the past, in this case, `Finder` would look at the local hostname
and try to match that against host values in the database.  This was
never a good default and almost always _not_ what a user would want,
since it would only be useful if running `Finder` on a machine which
also happened to be running the alpenhorn daemon.   As a result, we
almost always use `node_spoof` when running `Finder`.

This changes the default node list to not consider the local hostname,
and instead just look at _all_ the currently active archive nodes.  This
ensures users will find anything that matches their query, even though
they may not know where the file is.

Alpenhorn per se has slowly migrated the meaning of the "host" field.
Now alpenhorn's "host" field is typically a logical value (like
"scinet" or "fir"), which doesn't correspond to any local hostname and
the value used is set in the daemon's config file.
@ketiltrout ketiltrout marked this pull request as draft March 25, 2026 19:40
@ketiltrout ketiltrout removed the request for review from ljgray March 25, 2026 19:40
@ketiltrout ketiltrout marked this pull request as ready for review March 25, 2026 21:03
@ketiltrout ketiltrout requested a review from ljgray March 25, 2026 21:04
@ketiltrout ketiltrout merged commit 4961fe8 into main Apr 2, 2026
5 checks passed
@ketiltrout ketiltrout deleted the node_spoof_default branch April 2, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants