feat: zombie parent, swap, and OOM metrics + Tdarr hardening #35
@ -90,7 +90,7 @@ zombie_parents() {
|
||||
}
|
||||
|
||||
swap_mb() {
|
||||
free | awk '\''/^Swap:/ {printf "%.0f", $3/1024}'\''
|
||||
free | awk '\''/^Swap:/ {printf "%.0f", $3/1024; found=1} END {if (!found) print "0"}'\''
|
||||
}
|
||||
|
||||
oom_events() {
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# test-audit-collectors.sh — validates homelab-audit.sh collector output format
|
||||
#
|
||||
# Extracts each collector function from the audit script's COLLECTOR_SCRIPT
|
||||
# heredoc and runs it locally, checking that output matches the expected
|
||||
# key=value format. Exits non-zero on first failure.
|
||||
# Re-implements each collector function inline and runs it locally, checking
|
||||
# that output matches the expected format. Exits non-zero on any failure.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
@ -26,8 +26,6 @@ services:
|
||||
container_name: tdarr-node
|
||||
init: true
|
||||
restart: unless-stopped
|
||||
mem_limit: 28g
|
||||
memswap_limit: 30g
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
@ -41,6 +39,8 @@ services:
|
||||
- /mnt/NV2/tdarr-cache:/temp
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 28g
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
|
||||
Loading…
Reference in New Issue
Block a user