worker: GOMEMLIMIT 560MiB, замер oom/memlimit в limits

This commit is contained in:
2026-11-09 18:12:07 +03:00
parent 1bcc4d4960
commit 1289df31b1
3 changed files with 7 additions and 0 deletions
+2
View File
@@ -414,6 +414,8 @@ def scenario_limits(c):
'worker_anon_memory_max_mib': round(anon_max[0] / 1048576, 1),
'worker_memory_peak_incl_page_cache_mib': round(int(peak) / 1048576, 1) if peak.isdigit() else peak,
'oom_kill_events': oom.get('oom_kill', 0),
'go_memlimit': sh('docker', 'exec', cid, 'printenv', 'GOMEMLIMIT', check=False).stdout.strip(),
'oom_events': oom.get('oom', 0),
'worker_memory_limit_mib': round(int(limit) / 1048576, 1) if limit.isdigit() else limit,
'pixel_budget': 60_000_000, 'decoded_rgba_per_image_mib': round(6000 * 6000 * 4 / 1048576, 1),
'variant_sizes': th}