bench: Cloud seeding
Some checks failed
CI / Test (OTP 27.2 / Elixir 1.18.2) (push) Failing after 0s
CI / Test (OTP 28.4 / Elixir 1.19.4 + E2E) (push) Failing after 0s

This commit is contained in:
2026-03-20 14:19:58 +01:00
parent 6bd0143de4
commit 070464f2eb
3 changed files with 216 additions and 38 deletions

View File

@@ -265,7 +265,7 @@ common_parrhesia_env+=( -e PARRHESIA_LIMITS_MAX_NEGENTROPY_ITEMS_PER_SESSION=100
cmd="${1:-}"
if [[ -z "$cmd" ]]; then
echo "usage: cloud-bench-server.sh <start-*|wipe-data-*|cleanup>" >&2
echo "usage: cloud-bench-server.sh <start-*|wipe-data-*|count-data-*|cleanup>" >&2
exit 1
fi
@@ -626,6 +626,14 @@ EOF
wait_port 3355 120 haven
;;
count-data-parrhesia-pg)
docker exec pg psql -U parrhesia -d parrhesia -At -c "SELECT count(*) FROM events"
;;
count-data-nostream)
docker exec nostream-db psql -U nostr_ts_relay -d nostr_ts_relay -At -c "SELECT count(*) FROM events"
;;
cleanup)
cleanup_containers
;;