Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana SQLite3 supports WAL #479

Merged
merged 1 commit into from
Jun 5, 2023
Merged

Conversation

dark5un
Copy link
Contributor

@dark5un dark5un commented May 22, 2023

In recent deployments we found out that Grafana SQLite3 is locking with an error "Database locked, sleeping then retrying".

Following an issue raised in Grafana we are introducing a solution we found useful. Seems that enabling WAL (Write-Ahead Logging, https://sqlite.org/wal.html) in grafana.ini resolves the problem.

Using this new Grafana spec property called grafana.database.wal enables this feature.

Copy link
Contributor

@psycofdj psycofdj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dark5un for this PR

Would you mind changing the spec description and explain that the possible values are true or false ? Also, specifying no value at all will let grafana falls in its own default value

@dark5un
Copy link
Contributor Author

dark5un commented Jun 5, 2023

Done! Thank you @psycofdj !

@dark5un dark5un requested a review from psycofdj June 5, 2023 10:03
Signed-off-by: Jamie Van Dyke <jamie.vandyke@digital.cabinet-office.gov.uk>
@dark5un dark5un requested a review from psycofdj June 5, 2023 10:17
@psycofdj psycofdj merged commit 01f5aa8 into cloudfoundry:master Jun 5, 2023
@dark5un dark5un deleted the sqlite3-wal branch June 5, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants