Add busyTimeout config setting

Entire-Checkpoint: 81097a6c52a2
This commit is contained in:
2026-03-16 11:30:21 +01:00
parent e4f3fa9ba0
commit df93dbed63
4 changed files with 11 additions and 1 deletions

View File

@@ -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 {

View File

@@ -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"
}
}
}