Skip to content

Commit bbd91c8

Browse files
kixelatedclaude
andcommitted
cdn: disable health check loop and enable heap profiling
Remove check_health from the monitor loop to stop false-positive health alerts. Add jemalloc heap profiling config to moq-relay service. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a31effb commit bbd91c8

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

cdn/common/monitor.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ check_health() {
122122

123123
while true; do
124124
check_memory
125-
check_health
126125

127126
# Use memory backoff if alerting, otherwise check every 60s
128127
if [[ "$MEMORY_STATE" == "alerting" ]]; then

cdn/relay/moq-relay.service.tftpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ User=root
1010
WorkingDirectory=/var/lib/moq
1111
Environment="RUST_LOG=info"
1212
Environment="RUST_BACKTRACE=1"
13+
Environment="MALLOC_CONF=prof:true,prof_active:true,prof_prefix:/tmp/moq-relay.heap"
1314

1415
ExecStart=/var/lib/moq/pkg/bin/moq-relay \
1516
--listen [::]:443 \

0 commit comments

Comments
 (0)