feat(indexers): auto-rotate domain-rotating indexers to a working mirror#707
Open
shuff57 wants to merge 2 commits into
Open
feat(indexers): auto-rotate domain-rotating indexers to a working mirror#707shuff57 wants to merge 2 commits into
shuff57 wants to merge 2 commits into
Conversation
Background service checks domain-rotating indexers (Anna's Archive, AudioBookBay) every 6h and switches to the first reachable mirror when the current domain is unreachable. Rotation is opt-out via settings. - IndexerMirrorCatalog: static seed map keyed by Implementation string - IDomainReachabilityChecker / HttpDomainReachabilityChecker: probe with 8s timeout; any HTTP response (incl. 403 Cloudflare) = reachable - IIndexerDomainRotationService / IndexerDomainRotationService: test current → iterate candidates (current+seeds+user overrides, deduped) → persist first working host via IIndexerRepository - IndexerDomainRotationBackgroundService + Processor: 2m init delay, 6h interval, scoped-service resolution per cycle - ApplicationSettings: EnableIndexerDomainRotation (default true), IndexerMirrorOverridesJson (optional per-type extras) - Migration: AddIndexerDomainRotationSettings - FE: EnableIndexerDomainRotation CheckboxCard in Search Settings - Tests: 8 unit tests covering all rotation/no-op scenarios Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ng installs The C# property defaults to true, but the migration added the column with defaultValue:false, so existing settings rows had rotation off. Match the intended default so it's on by default everywhere. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background service that keeps domain-rotating indexers (Anna's Archive, AudioBookBay) reachable by switching to a working mirror when the current domain goes down.
IndexerDomainRotationService: tests the current host; if unreachable, iterates candidate mirrors and persists the first working one.IndexerMirrorOverridesJson).HttpDomainReachabilityChecker: short-timeout GET; any HTTP response (incl. Cloudflare 403) = reachable; DNS/connection failure = unreachable.EnableIndexerDomainRotation(default true, incl. existing installs via migration default). 8 backend unit tests with a mockable reachability checker.🤖 Generated with Claude Code