Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to prevent publishing incomplete indices #2218

Open
Janpot opened this issue Mar 21, 2024 · 3 comments
Open

Add an option to prevent publishing incomplete indices #2218

Janpot opened this issue Mar 21, 2024 · 3 comments
Labels
crawler issue related to the indexing enhancement

Comments

@Janpot
Copy link

Janpot commented Mar 21, 2024

Describe the problem

We enjoy using the maxLostRecordsPercentage option in the safetyChecks. But sometimes the crawler fails to fetch one or more of our pages, resulting in a lost amount of records that stays below this threshold. The crawler then happily proceeds publishing the incomplete index.
Would love to be able to be looser about losing records to allow for changes in our content, but have a zero-tolerance for failed urls.

Describe the solution

Would love to be able to set something like a maxFailedUrls in the safetyChecks which blocks the crawler from publishing the index if any amount of urls failed to be crawled.
Additionally, it would be helpful if the crawler could retry fetching urls, with some backoff pattern.

Alternatives you've considered

@randombeeper randombeeper added crawler issue related to the indexing enhancement labels Jul 10, 2024
@randombeeper
Copy link
Collaborator

@Janpot, thanks, this is in the teams backlog.

@TatyanaHerman
Copy link

@Janpot We have recently added maxFailedUrls safety check. You can now enable it in your crawler configuration and set the minimum threshold for failed urls. You can find the documentation [here].(https://www.algolia.com/doc/tools/crawler/getting-started/crawler-configuration/#safety-checks).
Screen Shot 2024-12-04 at 1 42 28 PM

@Janpot
Copy link
Author

Janpot commented Dec 5, 2024

Thank you. Started trying it out on our setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crawler issue related to the indexing enhancement
Projects
None yet
Development

No branches or pull requests

3 participants