fix(nextcloud): Database corruption recovery and conservative Apache tuning

- Restored clean SQLite database from pre-migration backup
- Fixed severe database corruption (rowid ordering, page corruption, index issues)
- Applied conservative MaxRequestWorkers=15 for SQLite stability
- Database integrity now perfect, all health checks passing
- Ready for future MySQL migration with clean data

[ci skip]
This commit is contained in:
OpenClaw 2026-03-12 13:38:37 +00:00
parent db1e301eea
commit fd6c1cca93

View file

@ -93,15 +93,15 @@ resource "kubernetes_config_map" "apache_tuning" {
} }
data = { data = {
"mpm_prefork.conf" = <<-EOF "mpm_prefork.conf" = <<-EOF
# Tuned for container with 4 CPU and 3Gi memory limit using Redis + SQLite # Conservative SQLite-safe configuration (post-database restoration)
# Each worker uses ~80-120MB RSS. 25 workers = ~2.5GB max (fits in 3Gi limit) # Balance between avoiding health check timeouts and preventing SQLite lock contention
# Higher count handles concurrent users and prevents health check timeouts # 15 workers = safe concurrency for SQLite while handling multiple users + health checks
<IfModule mpm_prefork_module> <IfModule mpm_prefork_module>
StartServers 5 StartServers 4
MinSpareServers 3 MinSpareServers 2
MaxSpareServers 8 MaxSpareServers 6
MaxRequestWorkers 25 MaxRequestWorkers 15
MaxConnectionsPerChild 200 MaxConnectionsPerChild 150
</IfModule> </IfModule>
EOF EOF
} }