Skip to content

fix: reduce shadow wstunnel memory usage#542

Draft
Sam6734 wants to merge 1 commit into
interlink-hq:mainfrom
Sam6734:reduce-shadow-memory
Draft

fix: reduce shadow wstunnel memory usage#542
Sam6734 wants to merge 1 commit into
interlink-hq:mainfrom
Sam6734:reduce-shadow-memory

Conversation

@Sam6734

@Sam6734 Sam6734 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Each FullMesh shadow pod runs its own wstunnel server. Wstunnel defaults its Tokio worker-thread count to the number of CPUs visible on the Kubernetes node, so the small per-worker tunnel process created many unnecessary threads and consumed about 480 MiB on our cluster

Set TOKIO_WORKER_THREADS=1 for the wstunnel container because each deployment handles one worker tunnel.

Performed Isolated test using the same ghcr.io/erebe/wstunnel:latest image with one Tokio thread: 11 MiB

Signed-off-by: Sam <55770131+Sam6734@users.noreply.github.com>
@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for interlink-dev canceled.

Name Link
🔨 Latest commit f7644a2
🔍 Latest deploy log https://app.netlify.com/projects/interlink-dev/deploys/6a59417c6d15250008deb5d3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant