refactor(middleware): enhance performance error messages

Updated performance checks to provide more detailed error messages, including current usage and thresholds for CPU, memory, and disk. Additionally. Updated localization files to reflect changes in retry options across multiple languages.
This commit is contained in:
CaIon
2026-04-02 21:28:43 +08:00
parent 0193018af6
commit 50249f581c
11 changed files with 40 additions and 10 deletions
@@ -540,11 +540,11 @@ export default function SettingsChannelAffinity(props) {
render: (v) => <Text>{Number(v || 0) || '-'}</Text>,
},
{
title: t('失败后重试'),
title: t('失败后是否重试'),
dataIndex: 'skip_retry_on_failure',
render: (value) => (
<Tag color={value ? 'orange' : 'grey'} style={{ marginRight: 4 }}>
{value ? t('') : t('')}
<Tag color={value ? 'orange' : 'green'} style={{ marginRight: 4 }}>
{value ? t('不重试') : t('重试')}
</Tag>
),
},
@@ -356,7 +356,6 @@ export default function SettingsPerformance(props) {
label={t('CPU 阈值 (%)')}
extraText={t('CPU 使用率超过此值时拒绝请求')}
min={0}
max={100}
onChange={handleFieldChange(
'performance_setting.monitor_cpu_threshold',
)}