chore(unified-storage): increase background request timeout (#106186)

106188-alerting-docs-best-practices-edit
Jean-Philippe Quéméner 2 months ago committed by GitHub
parent 7bfa78c6e6
commit 4519ef8d21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      pkg/storage/legacysql/dualwrite/dualwriter.go

@ -21,7 +21,11 @@ var (
_ grafanarest.Storage = (*dualWriter)(nil)
)
const backgroundReqTimeout = 5 * time.Second
// Let's give the background queries a bit more time to complete
// as we also run them as part of load tests that might need longer
// to complete. Those run in the background and won't impact the
// user experience in any way.
const backgroundReqTimeout = time.Minute
// dualWriter will write first to legacy, then to unified keeping the same internal ID
type dualWriter struct {

Loading…
Cancel
Save