1
0
mirror of synced 2026-01-01 18:05:46 -05:00

Merge pull request #21516 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2022-10-20 13:54:14 -07:00
committed by GitHub

View File

@@ -15,6 +15,14 @@ function getClient() {
}
return new Client({
node: ELASTICSEARCH_URL,
// The default is 30,000ms but we noticed that the median time is about
// 100ms with some occasional searches taking multiple seconds.
// The default `maxRetries` is 5 which is a sensible number.
// If a query gets stuck, it's better to (relatively) quickly give up
// and retry. So if it takes longer than this time here, we're banking on
// that it was just bad luck and that it'll work if we simply try again.
// See internal issue #2318.
requestTimeout: 500,
})
}