Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

search: increase default indexed-search timeout to 10s #8720

Merged
merged 1 commit into from
Mar 2, 2020

Conversation

keegancsmith
Copy link
Member

Previously zoekt would timeout after 3s by default. This is a very
conservative time, but on an established instance is enough. However, we have
had two new customers this week run into unstable result counts due to this
timeout. They needed to tune there resource allocations to fix the underlying
issue, but the user experience was poor and confusing. So we increase the
timeout to make it clear that search is slow rather than broken.

This new timeout is far greater than we expect zoekt to take. The reason we
use this timeout is we would rather be slow than inaccurate. Additionally if a
user opts in to some timeout settings, those override the default.

@keegancsmith keegancsmith requested a review from a team March 2, 2020 12:31
Previously zoekt would timeout after 3s by default. This is a very
conservative time, but on an established instance is enough. However, we have
had two new customers this week run into unstable result counts due to this
timeout. They needed to tune there resource allocations to fix the underlying
issue, but the user experience was poor and confusing. So we increase the
timeout to make it clear that search is slow rather than broken.

This new timeout is far greater than we expect zoekt to take. The reason we
use this timeout is we would rather be slow than inaccurate. Additionally if a
user opts in to some timeout settings, those override the default.
@codecov
Copy link

codecov bot commented Mar 2, 2020

Codecov Report

Merging #8720 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #8720   +/-   ##
=======================================
  Coverage   40.78%   40.78%           
=======================================
  Files        1304     1304           
  Lines       70318    70318           
  Branches     6496     6496           
=======================================
  Hits        28676    28676           
  Misses      39009    39009           
  Partials     2633     2633
Impacted Files Coverage Δ
cmd/frontend/graphqlbackend/zoekt.go 69.53% <100%> (ø) ⬆️

@keegancsmith keegancsmith merged commit b6ec0ca into master Mar 2, 2020
@keegancsmith keegancsmith deleted the core/default-zoekt-timeout branch March 2, 2020 13:10
keegancsmith added a commit that referenced this pull request Mar 11, 2020
Previously zoekt would timeout after 3s by default. This is a very
conservative time, but on an established instance is enough. However, we have
had two new customers this week run into unstable result counts due to this
timeout. They needed to tune there resource allocations to fix the underlying
issue, but the user experience was poor and confusing. So we increase the
timeout to make it clear that search is slow rather than broken.

This new timeout is far greater than we expect zoekt to take. The reason we
use this timeout is we would rather be slow than inaccurate. Additionally if a
user opts in to some timeout settings, those override the default.
keegancsmith added a commit that referenced this pull request Mar 11, 2020
Previously zoekt would timeout after 3s by default. This is a very
conservative time, but on an established instance is enough. However, we have
had two new customers this week run into unstable result counts due to this
timeout. They needed to tune there resource allocations to fix the underlying
issue, but the user experience was poor and confusing. So we increase the
timeout to make it clear that search is slow rather than broken.

This new timeout is far greater than we expect zoekt to take. The reason we
use this timeout is we would rather be slow than inaccurate. Additionally if a
user opts in to some timeout settings, those override the default.
This was referenced Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants