Mermaid diagrams fixed for Gitea rendering:
- Replaced all <br/> → <br> (86 tags across 4 docs)
- Replaced Unicode chars with ASCII (em dash, multiply, middle dot, star)
- Fixed invalid bidirectional dotted arrow in NETWORK-TOPOLOGY.md
(<--. "..." .--> is not valid Mermaid; replaced with two -.-> arrows)
- Simplified node labels for cleaner rendering
Host fixes applied (live, not in repo — documented here for audit trail):
- SSH keys standardized to exactly 2 approved keys on all 7 hosts
(removed host-generated RSA keys, added missing VP TechOps key to tsys9)
- Packages installed: iperf3 (tsys9), sysstat (tsys5), nvme-cli (tsys4/5),
net-tools (tsys1/6/7)
- tsys4 tuning: rmem/wmem 16MB→128MB, netdev_max_backlog 5000→250000,
tcp_max_syn_backlog 1024→2048, tuned profile→network-throughput
- tsys5: nconnect options added to storage.cfg (3 NFS stanzas patched;
will apply on next Proxmox NFS remount/reboot)
- noatime applied to root fs on tsys4 + tsys5 (was only tsys5)
- tsys1 lldpd: installed but systemd/dbus issue prevents enabling
("Transport endpoint is not connected") — needs investigation/reboot
Bug fix: deploy-tuning.sh computed wrong script path (scripts/ vs
perf/scripts/) — fixed to use dirname/scripts/apply-tunings.sh
💘 Generated with Crush
Assisted-by: Crush:glm-5.2
57 lines
1.8 KiB
Bash
Executable File
57 lines
1.8 KiB
Bash
Executable File
#!/bin/bash
|
|
# deploy-tuning.sh - copies apply-tunings.sh to target hosts and runs it.
|
|
# Usage: bash deploy-tuning.sh [--no-nfs] [--apply] <host> [host...]
|
|
# Default mode is dry-run. Pass --apply to commit. Pass --no-nfs to skip NFS section.
|
|
set -uo pipefail
|
|
|
|
SCRIPT="$(cd "$(dirname "${BASH_SOURCE[0]}")/scripts" && pwd)/apply-tunings.sh"
|
|
SSH_OPTS=(-o BatchMode=yes -o ConnectTimeout=8 -o ServerAliveInterval=10 -o StrictHostKeyChecking=accept-new)
|
|
MODE=""
|
|
EXTRA_FLAGS=""
|
|
|
|
HOSTS=()
|
|
for arg in "$@"; do
|
|
case "$arg" in
|
|
--apply) MODE="--apply" ;;
|
|
--dry-run) MODE="" ;;
|
|
--no-nfs) EXTRA_FLAGS="--no-nfs" ;;
|
|
*) HOSTS+=("$arg") ;;
|
|
esac
|
|
done
|
|
|
|
if [ "${#HOSTS[@]}" -eq 0 ]; then
|
|
echo "Usage: $0 <host> [host...] [--apply]"
|
|
echo "Default: dry-run. Pass --apply to commit."
|
|
exit 1
|
|
fi
|
|
|
|
if [ ! -r "$SCRIPT" ]; then
|
|
echo "FATAL: $SCRIPT not found"
|
|
exit 1
|
|
fi
|
|
|
|
for host in "${HOSTS[@]}"; do
|
|
echo "================================================================"
|
|
echo "[$host] deploying apply-tunings.sh (mode: ${MODE:-dry-run})"
|
|
echo "================================================================"
|
|
|
|
if ! ssh "${SSH_OPTS[@]}" "root@$host" 'echo ok' >/dev/null 2>&1; then
|
|
echo "[$host] SKIP: unreachable"
|
|
continue
|
|
fi
|
|
|
|
echo "[$host] uploading..."
|
|
if ! scp "${SSH_OPTS[@]}" "$SCRIPT" "root@$host:/root/apply-tunings.sh" >/dev/null 2>&1; then
|
|
echo "[$host] SKIP: scp failed"
|
|
continue
|
|
fi
|
|
|
|
echo "[$host] running (output below)..."
|
|
echo "----------------------------------------------------------------"
|
|
ssh "${SSH_OPTS[@]}" "root@$host" "chmod +x /root/apply-tunings.sh && bash /root/apply-tunings.sh $MODE $EXTRA_FLAGS" 2>&1
|
|
rc=$?
|
|
echo "----------------------------------------------------------------"
|
|
echo "[$host] exit code: $rc"
|
|
echo ""
|
|
done
|