Some checks failed
Go / build-and-release (push) Has been cancelled
- Add 'serve' subcommand for ephemeral RAM-based relay at /dev/shm with open ACL mode for testing and benchmarking - Fix e-tag and p-tag decoding to use ValueHex()/ValueBinary() methods instead of Value() which returns raw bytes for binary-optimized storage - Document all command-line tools in readme.adoc (relay-tester, benchmark, stresstest, blossomtest, aggregator, convert, FIND, policytest, etc.) - Switch Docker images from Alpine to Debian for proper libsecp256k1 Schnorr signature and ECDH support required by Nostr - Upgrade Docker Go version from 1.21 to 1.25 - Add ramdisk mode (--ramdisk) to benchmark script for eliminating disk I/O bottlenecks in performance measurements - Add docker-compose.ramdisk.yml for tmpfs-based benchmark volumes - Add test coverage for privileged policy with binary-encoded p-tags - Fix blossom test to expect 200 OK for anonymous uploads when auth is not required (RequireAuth=false with ACL mode 'none') - Update follows ACL to handle both binary and hex p-tag formats - Grant owner access to all users in serve mode via None ACL - Add benchmark reports from multi-relay comparison run - Update CLAUDE.md with binary tag handling documentation - Bump version to v0.30.2
78 lines
1.8 KiB
YAML
78 lines
1.8 KiB
YAML
# Docker Compose override file for ramdisk-based benchmarks
|
|
# Uses /dev/shm (tmpfs) for all database storage to eliminate disk I/O bottlenecks
|
|
# and measure raw relay performance.
|
|
#
|
|
# Usage: docker compose -f docker-compose.yml -f docker-compose.ramdisk.yml up
|
|
# Or via run-benchmark.sh --ramdisk
|
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
# Next.orly.dev relay with Badger
|
|
next-orly-badger:
|
|
volumes:
|
|
- /dev/shm/benchmark/next-orly-badger:/data
|
|
|
|
# Next.orly.dev relay with DGraph
|
|
next-orly-dgraph:
|
|
volumes:
|
|
- /dev/shm/benchmark/next-orly-dgraph:/data
|
|
|
|
# DGraph Zero - cluster coordinator
|
|
dgraph-zero:
|
|
volumes:
|
|
- /dev/shm/benchmark/dgraph-zero:/data
|
|
|
|
# DGraph Alpha - data node
|
|
dgraph-alpha:
|
|
volumes:
|
|
- /dev/shm/benchmark/dgraph-alpha:/data
|
|
|
|
# Next.orly.dev relay with Neo4j
|
|
next-orly-neo4j:
|
|
volumes:
|
|
- /dev/shm/benchmark/next-orly-neo4j:/data
|
|
|
|
# Neo4j database
|
|
neo4j:
|
|
volumes:
|
|
- /dev/shm/benchmark/neo4j:/data
|
|
- /dev/shm/benchmark/neo4j-logs:/logs
|
|
|
|
# Khatru with SQLite
|
|
khatru-sqlite:
|
|
volumes:
|
|
- /dev/shm/benchmark/khatru-sqlite:/data
|
|
|
|
# Khatru with Badger
|
|
khatru-badger:
|
|
volumes:
|
|
- /dev/shm/benchmark/khatru-badger:/data
|
|
|
|
# Relayer basic example
|
|
relayer-basic:
|
|
volumes:
|
|
- /dev/shm/benchmark/relayer-basic:/data
|
|
|
|
# Strfry
|
|
strfry:
|
|
volumes:
|
|
- /dev/shm/benchmark/strfry:/data
|
|
- ./configs/strfry.conf:/etc/strfry.conf
|
|
|
|
# Nostr-rs-relay
|
|
nostr-rs-relay:
|
|
volumes:
|
|
- /dev/shm/benchmark/nostr-rs-relay:/data
|
|
- ./configs/config.toml:/app/config.toml
|
|
|
|
# Rely-SQLite relay
|
|
rely-sqlite:
|
|
volumes:
|
|
- /dev/shm/benchmark/rely-sqlite:/data
|
|
|
|
# PostgreSQL for relayer-basic
|
|
postgres:
|
|
volumes:
|
|
- /dev/shm/benchmark/postgres:/var/lib/postgresql/data
|