fix(nextcloud): Increase Apache MaxRequestWorkers to resolve health check timeouts

- Increase MaxRequestWorkers from 10 to 25 for 4 CPU + 3Gi memory container
- Update Apache tuning for Redis + SQLite backend (not pure SQLite)
- Resolves CrashLoopBackOff caused by health probe timeouts
- Allows handling concurrent users without MaxRequestWorkers limit errors

[ci skip]
This commit is contained in:
OpenClaw 2026-03-12 13:14:20 +00:00
parent cedb90be33
commit db1e301eea

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 6Gi memory limit and SQLite backend # Tuned for container with 4 CPU and 3Gi memory limit using Redis + SQLite
# Each worker uses ~100-200MB RSS. 10 workers = ~2GB max # Each worker uses ~80-120MB RSS. 25 workers = ~2.5GB max (fits in 3Gi limit)
# Low count prevents fork bomb when SQLite locks cause request pileup # Higher count handles concurrent users and prevents health check timeouts
<IfModule mpm_prefork_module> <IfModule mpm_prefork_module>
StartServers 3 StartServers 5
MinSpareServers 2 MinSpareServers 3
MaxSpareServers 5 MaxSpareServers 8
MaxRequestWorkers 10 MaxRequestWorkers 25
MaxConnectionsPerChild 100 MaxConnectionsPerChild 200
</IfModule> </IfModule>
EOF EOF
} }