v3.42.72: Fix Large DB Mode not applying when changing profiles
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user