From c1d87d72accf2575f5938ee140afa7782ee25257 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80=20?= =?UTF-8?q?=22axel=5Fverse=22=20=D0=9C=D1=83=D0=B4=D1=80=D0=BE=D0=B2?= Date: Tue, 8 Sep 2026 23:37:43 +0300 Subject: [PATCH] =?UTF-8?q?FEAT:=20=D0=BF=D0=B5=D1=80=D0=B5=D0=B2=D0=BE?= =?UTF-8?q?=D0=B4=20=D0=BF=D1=80=D0=B5=D0=B4=D1=83=D0=BF=D1=80=D0=B5=D0=B6?= =?UTF-8?q?=D0=B4=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/calculator.js | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) 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] : [] }