From a759f4d3dba216c6ecd3d478a0902dd98bf00ceb Mon Sep 17 00:00:00 2001 From: Alexander Renz Date: Sun, 18 Jan 2026 21:23:35 +0100 Subject: [PATCH] v3.42.72: Fix Large DB Mode not applying when changing profiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Critical fix: Large DB Mode settings (reduced parallelism, increased locks) were not being reapplied when user changed resource profiles in Settings. This caused cluster restores to fail with 'out of shared memory' errors on low-resource VMs even when Large DB Mode was enabled. Now ApplyResourceProfile() properly applies LargeDBMode modifiers after setting base profile values, ensuring parallelism stays reduced. Example: balanced profile with Large DB Mode: - ClusterParallelism: 4 → 2 (halved) - MaxLocksPerTxn: 2048 → 8192 (increased) This allows successful cluster restores on low-spec VMs. --- internal/config/config.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/config/config.go b/internal/config/config.go index 79f106f..aa4f482 100755 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -445,6 +445,12 @@ func (c *Config) ApplyResourceProfile(profileName string) error { // Apply profile settings c.ResourceProfile = profile.Name + + // If LargeDBMode is enabled, apply its modifiers + if c.LargeDBMode { + profile = cpu.ApplyLargeDBMode(profile) + } + c.ClusterParallelism = profile.ClusterParallelism c.Jobs = profile.Jobs c.DumpJobs = profile.DumpJobs