File size: 751 Bytes
503b0e9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/usr/bin/env bash
set -euo pipefail
DBOPS_ROOT=${DBOPS_ROOT:-/data/adaptai/platform/dbops}
echo "[preflight] DBOPS_ROOT=$DBOPS_ROOT"
echo "[preflight] Symlinks"
ls -l "$DBOPS_ROOT/data" "$DBOPS_ROOT/logs" || true
echo "[preflight] Disk space"
df -h "$DBOPS_ROOT" | sed -n '1,2p'
echo "[preflight] Binaries"
for b in qdrant/qdrant dragonfly/dragonfly-x86_64 redis/redis-server java/jre11/bin/java; do
test -e "$DBOPS_ROOT/binaries/$b" && echo "ok: $b" || echo "missing: $b"
done
echo "[preflight] Open ports"
ss -tlnp | egrep ':17000|:1800[0-2]|:1801[0-2]|:17542' || true
echo "[preflight] Log rotation (supervisor)"
grep -H "logfile_maxbytes" -n "$DBOPS_ROOT"/supervisor/conf.d/*.conf | sed -n '1,200p' || true
echo "[preflight] done"
exit 0
|