grafana/pkg/setting
Peter Štibraný a960388db2
Search: parallel chunk I/O for KV-backed snapshots (#126090)
WriteSnapshotFile and ReadSnapshotFile previously walked chunks serially.
On the write side every chunk is independent, and on the read side chunks
1..N-1 are independent once chunk 0 has been fetched (its size reveals the
writer's chunk size). Both paths now run their chunk loops through an
errgroup with a configurable fan-out.

Concurrency is exposed as index_snapshot_kv_chunk_concurrency in cfg
and plumbed to KVRemoteIndexStoreConfig.ChunkConcurrency. The default
is 1, which is the previous serial behavior. Operators can raise it at
runtime to measure throughput tradeoffs without redeploying.

Parallel reads write to dst via io.NewOffsetWriter, one per chunk, so
no per-chunk buffer is held in memory. *os.File.WriteAt is safe under
concurrent use to non-overlapping regions, which is what our slots are
by construction.
2026-06-09 18:12:08 +00:00
..
settingtest Chore: Update mocks with recent mockery (#107816) 2025-07-09 09:15:34 +02:00
testdata Config: Show user-friendly error message instead of stack trace (#16564) 2019-04-25 08:29:07 +02:00
date_formats.go Prometheus: Support 1ms resolution intervals (#44707) 2022-06-29 07:39:50 +02:00
date_formats_test.go Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
dynamic_settings_test.go Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
expanders.go imagestorage: fix templating of public_url option for webdav (#74885) 2023-09-28 00:35:10 +03:00
expanders_test.go Tests: use t.Setenv to set env vars (#69516) 2023-06-05 11:31:03 +02:00
provider.go SSO SAML: Remove SettingProvider settings from SSO interactions (#94900) 2024-10-21 11:28:55 +02:00
setting.go Search: parallel chunk I/O for KV-backed snapshots (#126090) 2026-06-09 18:12:08 +00:00
setting_anonymous.go Revert "Anonymous: Enforce org role Viewer setting (#102070)" (#103043) 2025-03-31 10:31:53 +01:00
setting_auth_proxy.go AuthProxy: Allow disabling Auth Proxy cache (#83755) 2024-03-01 11:31:06 +01:00
setting_azure.go Azure: Use SSO settings in plugin context (#112058) 2025-10-10 11:46:26 +01:00
setting_azure_test.go OAuth: Add support for new user identity flags for grafana-azure-sdk-go (#98703) 2025-01-24 12:48:27 +00:00
setting_cloud_migration.go CloudMigrations: Allow to customize snapshot encryption algo from config (#117601) 2026-02-20 09:49:56 +01:00
setting_data_proxy.go Data Source: Add forward_user_agent option to preserve client User-Agent (#124244) 2026-05-06 12:15:38 +02:00
setting_feature_toggles.go Feature Toggles: Support setting via configOverrides command-line flag (#121498) 2026-03-31 09:00:03 -04:00
setting_feature_toggles_test.go Feature Toggles: Support setting via configOverrides command-line flag (#121498) 2026-03-31 09:00:03 -04:00
setting_folder.go fix(folders): set maxNestedFolderDepth in NewAPIService for multi-tenant environments (#119325) 2026-03-03 14:37:49 +01:00
setting_folder_test.go Chore: Remove remaining ptr constructor helper functions (#124553) 2026-05-11 21:00:39 +03:00
setting_grafana_javascript_agent.go Chore: Upgrade Grafana Faro to v2, removing web_vitals_attribution_enabled (#117516) 2026-02-10 05:43:30 -05:00
setting_grpc.go backend: replace grpcServer feature flag with grpc_server.enabled config (#122871) 2026-04-17 15:38:52 -03:00
setting_jwt.go Auth: Support JWT configs tls_client_ca and jwk_set_bearer_token_file (#109095) 2025-08-26 09:50:06 -03:00
setting_k8s_dashboard_cleanup.go App platform: Add cleanup job for dashboards when going through /apis (kubectl) (#102506) 2025-03-22 23:47:27 +01:00
setting_openfeature.go OpenFeature: Add client-side response cache for flag evaluations (#121569) 2026-04-01 12:26:21 +02:00
setting_openfeature_test.go OpenFeature: Add context attributes to frontend settings (#112105) 2025-10-10 13:43:24 +02:00
setting_plugins.go Plugins: preinstall grafana-assistant-app on Enterprise (#124462) 2026-05-08 13:56:00 +02:00
setting_plugins_test.go Auth: Use dedicated token for requests to Grafana.com (#122269) 2026-05-05 09:55:22 -04:00
setting_provisioning_test.go Provisioning: Capability-based config-driven supported resources (#125856) 2026-06-08 13:57:38 +02:00
setting_quota.go Alerting: Guided legacy alerting upgrade dry-run (#80071) 2024-01-05 18:19:12 -05:00
setting_remote_cache.go RemoteCache: Refactor remote cache settings (#95672) 2024-11-04 17:35:31 +01:00
setting_search.go Search: Add search index configuration options (#55525) 2022-09-20 19:09:55 -04:00
setting_secrets_manager.go Secrets: GC worker deletes secure value after N attempts to clean it up (#119512) 2026-05-06 15:50:49 -03:00
setting_secrets_manager_test.go Revert "Secrets: Remove unused register_api_server setting" (#116004) 2026-01-09 11:01:46 +01:00
setting_secure_socks_proxy.go chore(perf): Pre-allocate where possible (enable prealloc linter) (#88952) 2024-06-14 14:16:36 -04:00
setting_secure_socks_proxy_test.go Plugins: Pass PDC file contents in requests (#84783) 2024-03-22 13:52:24 +01:00
setting_session_test.go Chore: Fix goimports grouping in other backend platform packages (#62422) 2023-01-30 08:26:42 +00:00
setting_smtp.go Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
setting_smtp_test.go Config: Can add static headers to email messages (#79365) 2023-12-14 12:59:43 -06:00
setting_storage.go Storage: externalize allow_unsanitized_svg_upload (#52703) 2022-07-25 21:11:17 +04:00
setting_test.go Auth: Use dedicated token for requests to Grafana.com (#122269) 2026-05-05 09:55:22 -04:00
setting_time_picker.go Dashboard: Add configurable quick ranges for the time picker (#102254) 2025-06-12 17:51:46 +02:00
setting_time_picker_test.go Dashboard: Add configurable quick ranges for the time picker (#102254) 2025-06-12 17:51:46 +02:00
setting_unified_alerting.go Alerting: auto-sync Mimir Alertmanager config into Grafana ExtraConfiguration (#119910) 2026-05-12 10:17:08 +02:00
setting_unified_alerting_test.go Alerting: Allow restricting contact point integration types (#118858) 2026-04-20 14:41:15 -04:00
setting_unified_storage.go Search: parallel chunk I/O for KV-backed snapshots (#126090) 2026-06-09 18:12:08 +00:00
setting_unified_storage_test.go Add search ring replica extension setting (#125096) 2026-05-20 12:07:16 +02:00
settings_rbac.go AuthZ: Feat: BRA for ST on mode-5 (#125557) 2026-06-01 21:03:56 +02:00
settings_zanzana.go Authz: Add concurrency limiter to zanzana gRPC server (#123430) 2026-04-24 08:44:01 -06:00
settings_zanzana_test.go Unistore: Add per-resource namespace rollout for Zanzana (#122301) 2026-04-10 13:11:21 -05:00