From db1e301eea5c2b0081dde183087708d77f24fdbb Mon Sep 17 00:00:00 2001 From: OpenClaw Date: Thu, 12 Mar 2026 13:14:20 +0000 Subject: [PATCH] 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] --- stacks/nextcloud/main.tf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/stacks/nextcloud/main.tf b/stacks/nextcloud/main.tf index 4d34aed7..9d63269e 100644 --- a/stacks/nextcloud/main.tf +++ b/stacks/nextcloud/main.tf @@ -93,15 +93,15 @@ resource "kubernetes_config_map" "apache_tuning" { } data = { "mpm_prefork.conf" = <<-EOF - # Tuned for container with 6Gi memory limit and SQLite backend - # Each worker uses ~100-200MB RSS. 10 workers = ~2GB max - # Low count prevents fork bomb when SQLite locks cause request pileup + # Tuned for container with 4 CPU and 3Gi memory limit using Redis + SQLite + # Each worker uses ~80-120MB RSS. 25 workers = ~2.5GB max (fits in 3Gi limit) + # Higher count handles concurrent users and prevents health check timeouts - StartServers 3 - MinSpareServers 2 - MaxSpareServers 5 - MaxRequestWorkers 10 - MaxConnectionsPerChild 100 + StartServers 5 + MinSpareServers 3 + MaxSpareServers 8 + MaxRequestWorkers 25 + MaxConnectionsPerChild 200 EOF }