diff --git a/src/utils/calculator.js b/src/utils/calculator.js index 7d86d41..d5ad6c8 100644 --- a/src/utils/calculator.js +++ b/src/utils/calculator.js @@ -521,9 +521,15 @@ function selectWarningInfoMessages( // Memory warnings if (totalMemory < 256 * SIZE_UNIT_MAP['MB']) { - warnings.push('this tool not being optimal', 'for low memory systems') + warnings.push( + 'этот инструмент не предназначен', + 'для систем с низким количеством ОЗУ', + ) } else if (totalMemory > 100 * SIZE_UNIT_MAP['GB']) { - warnings.push('this tool not being optimal', 'for very high memory systems') + warnings.push( + 'этот инструмент не предназначен', + 'для систем с очень большим количеством ОЗУ', + ) } // Advanced features compilation warnings @@ -531,8 +537,8 @@ function selectWarningInfoMessages( if (warnings.length > 0) warnings.push('') warnings.push( - 'wal_compression = lz4 requires PostgreSQL', - 'to be compiled with --with-lz4', + 'wal_compression = lz4 требует, чтобы PostgreSQL', + 'был скомпилирован с флагом --with-lz4', ) } @@ -540,8 +546,8 @@ function selectWarningInfoMessages( if (warnings.length > 0) warnings.push('') warnings.push( - 'io_method = io_uring requires PostgreSQL', - 'to be compiled with --with-liburing', + 'io_method = io_uring требует, чтобы PostgreSQL', + 'был скомпилирован с флагом --with-liburing', ) } @@ -552,19 +558,19 @@ function selectWarningInfoMessages( dbSize !== DB_SIZE_LESS_RAM ) { const driveName = { - [HARD_DRIVE_SSD]: 'SSDs', - [HARD_DRIVE_NVME]: 'NVMe drives', - [HARD_DRIVE_SAN]: 'SAN storage', + [HARD_DRIVE_SSD]: 'SSD', + [HARD_DRIVE_NVME]: 'NVME', + [HARD_DRIVE_SAN]: 'SAN', }[hdType] if (warnings.length > 0) warnings.push('') warnings.push( - `Cost parameters for Data Warehouses on ${driveName} are left at defaults`, - 'to avoid catastrophic index scan selections', - 'Monitor query planner behavior and adjust random_page_cost if necessary', + `Параметры стоимости для хранилищ данных на ${driveName} оставлены со значениями по умолчанию,`, + 'чтобы избежать катастрофического выбора при сканировании индексов.', + 'Следите за поведением планировщика запросов и при необходимости корректируйте random_page_cost.', ) } - return warnings.length > 0 ? ['WARNING', ...warnings] : [] + return warnings.length > 0 ? ['ВНИМАНИЕ', ...warnings] : [] }