Skip to content
Snippets Groups Projects
Unverified Commit a783ac33 authored by Stan Hu's avatar Stan Hu
Browse files

demo: Activate PostgreSQL slow logs

This commit will cause PostgreSQL to log any database statements taking
longer than 500 ms. This is useful to flag any slow queries running in
Praefect.
parent 284a2395
No related merge requests found
......@@ -47,6 +47,11 @@ resource "google_sql_database_instance" "praefect_sql" {
settings {
tier = "db-f1-micro"
database_flags {
name = "log_min_duration_statement"
value = "500"
}
ip_configuration{
ipv4_enabled = true
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment