grafana/docs/sources
Kristin Laemmert 50244ed4a1
Experimental Feature Toggle: databaseReadReplica (#89232)
This adds a version of the SQLStore that includes a ReadReplica. The primary DB can be accessed directly - from the caller's standpoint, there is no difference between the SQLStore and ReplStore unless they wish to explicitly call the ReadReplica() and use that for the DB sessions.

Currently only the stats service GetSystemStats and GetAdminStats are using the ReadReplica(); if it's misconfigured or if the databaseReadReplica feature flag is not turned on, it will fall back to the usual (SQLStore) behavior.

Testing requires a database and read replica - the replication should already be configured. I have been testing this locally with a docker mysql setup (https://medium.com/@vbabak/docker-mysql-master-slave-replication-setup-2ff553fceef2) and the following config:

[feature_toggles]
databaseReadReplica = true

[database]
type = mysql
name = grafana
user = grafana
password = password
host = 127.0.0.1:3306

[database_replica]
type = mysql
name = grafana
user = grafana
password = password
host = 127.0.0.1:3307
2024-06-18 11:07:15 -04:00
..
administration [DOC] Add feature toggle for admin page (#88954) 2024-06-17 18:01:31 +01:00
alerting Alerting docs: update Introduction page (#89155) 2024-06-18 09:44:56 +02:00
breaking-changes Docs: What’s new & Upgrade guide & Breaking changes v11.0 (#86369) 2024-05-13 10:27:45 -04:00
dashboards Docs: Rename variables pages (#87844) 2024-05-23 11:31:49 -04:00
datasources [docs/sources/datasources/prometheus/configure-prometheus-data-source] Replace outdated text content in the Grafana UI with updated content (#88548) 2024-06-03 12:42:34 +03:00
developers Docs: Use bearer auth not basic auth in IAM doc examples (#88984) 2024-06-11 10:35:22 +03:00
explore Logs: Added support for numeric log levels (#87366) 2024-06-05 13:56:36 +02:00
fundamentals [docs/sources/fundamentals] Replace docs/reference shortcode with ref URIs (#88080) 2024-06-06 15:42:40 +01:00
getting-started Docs: update docs for dashgpt GA G11 (#84842) 2024-03-21 10:43:43 -04:00
introduction add catchpoint to plugin list (#87438) 2024-06-12 10:05:07 -04:00
panels-visualizations Fix typo in dashboard-variables destinations and also use Grafana Cloud docs if they exist (#89244) 2024-06-14 17:27:22 +01:00
release-notes fix typos (#83414) 2024-02-26 10:52:44 -07:00
search Explicitly set all front matter labels in the source files (#71548) 2023-07-18 09:10:12 +01:00
setup-grafana Experimental Feature Toggle: databaseReadReplica (#89232) 2024-06-18 11:07:15 -04:00
shared alerting: notes on label matchers (#89269) 2024-06-18 09:22:23 +02:00
troubleshooting Docs: fix broken links (#71911) 2023-07-20 12:39:59 -04:00
tutorials Docs: How to access Grafana in fundamentals tutorial (#88488) 2024-05-30 15:04:17 +02:00
upgrade-guide Docs: What’s new & Upgrade guide & Breaking changes v11.0 (#86369) 2024-05-13 10:27:45 -04:00
whatsnew feat: Updated whats-new-in-v11-0.md with release video (#87953) 2024-06-11 15:56:20 -04:00
_index.md Update description of Grafana OSS (#89088) 2024-06-13 08:18:26 +02:00
cli.md Explicitly set all front matter labels in the source files (#71548) 2023-07-18 09:10:12 +01:00
menu.yaml Docs: library panel (#35272) 2021-06-04 20:13:56 +02:00