Skip to content

chore(router): remove mondaytweaks memory-leak flags after upstream #3035 - #9

Merged
arutkowski00 merged 1 commit into
monday-tweaksfrom
feature/adamru/validate-disable-memory-tweaks
Jul 7, 2026
Merged

chore(router): remove mondaytweaks memory-leak flags after upstream #3035#9
arutkowski00 merged 1 commit into
monday-tweaksfrom
feature/adamru/validate-disable-memory-tweaks

Conversation

@arutkowski00

Copy link
Copy Markdown
Collaborator

Summary

Removed flags / code

Flag Removed behavior
ClearSlowPlanCacheOnClose slowplancache sync.Map clear on Close
CallOnRouterConfigReloadOnHotReload OnRouterConfigReload in hot-reload path
SkipPlanCacheOnEvictDuringMuxShutdown OnEvict guard during mux shutdown
DrainWebsocketSubscriptionsBeforeCacheClose sync WS drain before cache close
CloseExecutorOnGraphMuxShutdown Executor.Close() + gm.executor
NilGraphMuxCachesOnShutdown cache niling, wsHandler/mux drop, graphMuxList delete
ResetExecutionConfigProtoOnReload proto.Reset after manifest reload
SkipManifestReloadWhenMapperUnchanged mapper hash skip

Still present (not flag-guarded): schemaDocument removed from planWithMetaData (structural ~200MB pin fix from #3).

Test plan

  • go test ./core/... ./pkg/slowplancache/... — 406 passed
  • Run platform-api mirror reload benchmark (scripts/run-memory-tweak-validation.sh) on staging manifest — confirm retained inuse stays well below pre-fix baseline
  • Smoke-test config reload on stage platform-api router after deploy

…undergraph#3035

Local reload benchmarks showed ~7.6 MB/reload retained with flags off vs
pre-fix ~260 MB, so the flag-guarded reload cleanup is redundant with
upstream graphMux closure fixes. Drop the eight memory-leak toggles and
their guarded code while keeping behavior/perf tweaks and the structural
schemaDocument removal in cached plans.
@github-actions github-actions Bot added the router label Jul 7, 2026
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

Router-nonroot image scan passed

✅ No security vulnerabilities found in image:

ghcr.io/mondaycom/cosmo/router:sha-f9a8b96a4e36fc824723296cc3d8a6f2fdf3ca6f-nonroot

@arutkowski00
arutkowski00 merged commit 98cdbf5 into monday-tweaks Jul 7, 2026
24 of 29 checks passed
@arutkowski00
arutkowski00 deleted the feature/adamru/validate-disable-memory-tweaks branch July 7, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant