* Allow to disable http2 for GCS.
This also tweaks our iddle connection pooling accross the board and reduce the insane parallelism when fetching chunks.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
* update changelog
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
* Update pkg/storage/chunk/gcp/gcs_object_client.go
Co-authored-by: Danny Kopping <dannykopping@gmail.com>
* update comment
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
* Update docs/sources/configuration/_index.md
Co-authored-by: Karen Miller <84039272+KMiller-Grafana@users.noreply.github.com>
* Update CHANGELOG.md
Co-authored-by: Karen Miller <84039272+KMiller-Grafana@users.noreply.github.com>
* Reduce MaxIdleConns to a more standard value.
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
* Allow to configure max parallelism for fetching chunks
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
* Fixes tests with no default config
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Co-authored-by: Danny Kopping <dannykopping@gmail.com>
Co-authored-by: Karen Miller <84039272+KMiller-Grafana@users.noreply.github.com>
f.StringVar(&cfg.BucketName,prefix+"gcs.bucketname","","Name of GCS bucket. Please refer to https://cloud.google.com/docs/authentication/production for more information about how to configure authentication.")
f.IntVar(&cfg.ChunkBufferSize,prefix+"gcs.chunk-buffer-size",0,"The size of the buffer that GCS client for each PUT request. 0 to disable buffering.")
f.DurationVar(&cfg.RequestTimeout,prefix+"gcs.request-timeout",0,"The duration after which the requests to GCS should be timed out.")
f.BoolVar(&cfg.EnableOpenCensus,prefix+"gcs.enable-opencensus",true,"Enabled OpenCensus (OC) instrumentation for all requests.")
f.BoolVar(&cfg.EnableOpenCensus,prefix+"gcs.enable-opencensus",true,"Enable OpenCensus (OC) instrumentation for all requests.")
cfg.IndexQueriesCacheConfig.RegisterFlagsWithPrefix("store.index-cache-read.","Cache config for index entry reading.",f)
f.DurationVar(&cfg.IndexCacheValidity,"store.index-cache-validity",5*time.Minute,"Cache validity for active index entries. Should be no higher than -ingester.max-chunk-idle.")
f.BoolVar(&cfg.DisableBroadIndexQueries,"store.disable-broad-index-queries",false,"Disable broad index queries which results in reduced cache usage and faster query performance at the expense of somewhat higher QPS on the index store.")
f.IntVar(&cfg.MaxParallelGetChunk,"store.max-parallel-get-chunk",150,"Maximum number of parallel chunk reads.")