fix(config): use resource profile defaults for Jobs, DumpJobs, ClusterParallelism
- ClusterParallelism now defaults to recommended profile (1 for small VMs) - Jobs and DumpJobs now use profile values instead of raw CPU counts - Small VMs (4 cores, 32GB) will now get 'conservative' or 'balanced' profile with lower parallelism to avoid 'out of shared memory' errors This fixes the issue where small VMs defaulted to ClusterParallelism=2 regardless of detected resources, causing restore failures on large DBs.
This commit is contained in:
@@ -662,7 +662,7 @@ func (m RestoreExecutionModel) View() string {
|
||||
|
||||
// Parse and display error in a clean, structured format
|
||||
errStr := m.err.Error()
|
||||
|
||||
|
||||
// Extract key parts from the error message
|
||||
errDisplay := formatRestoreError(errStr)
|
||||
s.WriteString(errDisplay)
|
||||
@@ -1030,7 +1030,7 @@ func formatRestoreError(errStr string) string {
|
||||
|
||||
// First, try to extract a clean error summary
|
||||
errLines := strings.Split(errStr, "\n")
|
||||
|
||||
|
||||
// Find the main error message (first line or first ERROR:)
|
||||
mainError := ""
|
||||
hint := ""
|
||||
|
||||
@@ -870,7 +870,7 @@ func (m SettingsModel) View() string {
|
||||
fmt.Sprintf("Database: %s@%s:%d", m.config.User, m.config.Host, m.config.Port),
|
||||
fmt.Sprintf("Backup Dir: %s", m.config.BackupDir),
|
||||
fmt.Sprintf("Compression: Level %d", m.config.CompressionLevel),
|
||||
fmt.Sprintf("Profile: %s | Cluster: %d parallel | Jobs: %d",
|
||||
fmt.Sprintf("Profile: %s | Cluster: %d parallel | Jobs: %d",
|
||||
m.config.ResourceProfile, m.config.ClusterParallelism, m.config.Jobs),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user