mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-03-16 21:07:30 +01:00
Add busyTimeout config setting
Entire-Checkpoint: 81097a6c52a2
This commit is contained in:
@@ -88,6 +88,7 @@ type DbConfig struct {
|
||||
MaxOpenConnections int `json:"max-open-connections"`
|
||||
MaxIdleConnections int `json:"max-idle-connections"`
|
||||
ConnectionMaxIdleTimeMins int `json:"max-idle-time-minutes"`
|
||||
BusyTimeoutMs int `json:"busy-timeout-ms"`
|
||||
}
|
||||
|
||||
type NodeStateRetention struct {
|
||||
|
||||
@@ -201,6 +201,10 @@ var configSchema = `
|
||||
"max-idle-time-minutes": {
|
||||
"description": "Maximum idle time for a connection in minutes (default: 10).",
|
||||
"type": "integer"
|
||||
},
|
||||
"busy-timeout-ms": {
|
||||
"description": "SQLite busy timeout in milliseconds. When a write is blocked, SQLite retries with backoff for up to this duration before returning SQLITE_BUSY (default: 60000).",
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user