sqs-operator v0.1.11: fix ensureService UI port, FILE_LOCK=NO for H2

This commit is contained in:
Naeel
2026-04-08 22:17:41 +03:00
parent 7ea7e9b360
commit a04d72052e
2 changed files with 24 additions and 10 deletions
@@ -16,11 +16,12 @@ func GenerateConfig(tenantID, externalHost string, persistence bool, autoCreateQ
persistenceBlock := ""
if persistence {
// H2 база данных хранит очереди и сообщения между рестартами pod.
// Файл /data/elasticmq.db — на PVC тенанта.
// FILE_LOCK=NO — отключает file-lock, который остаётся при принудительном kill JVM
// (kubectl rollout restart). Один pod на тенанта — конкурентный доступ исключён.
persistenceBlock = `
messages-storage {
enabled = true
uri = "jdbc:h2:/data/elasticmq"
uri = "jdbc:h2:/data/elasticmq;FILE_LOCK=NO"
}`
} else {
persistenceBlock = `