RelayMiner RPS Testing
Light load test
make test_baseline_static_server_load R=10000 C=1000
Quick test
make test_baseline_static_server_load R=5000 C=500 D=10s
Maximum load test
make test_baseline_static_server_load R=200000 T=32 C=15000 D=45s
β‘ RelayMiner Only Load Test
Session Validity Critical
This test generates real RelayRequest data with proper cryptographic signatures. Sessions expire periodically (typically every few blocks), which will cause ALL requests to fail validation once the session changes during your test.
This test covers:
RelayMiner request processing performance
Signature verification overhead
Backend service communication latency
Request validation and response serialization
Resource contention under high load
Default Configuration:
Rate: 512 requests per second
Threads: 16 worker threads
Connections: 256 concurrent connections
Duration: 300 seconds (5 minutes)
Command:
Custom parameters:
Service Configuration
The "static" service must be configured:
Service ID:
staticCompute units per relay: 1 (minimal)
Backend: nginx-chainid server
π Test Parameters
All RPS tests support flexible parameter configuration:
R
Requests per second
512-100k
t
Worker threads
16
c
Concurrent connections
256-5000
d
Test duration
30s-300s
Parameter Selection Guidelines:
Light load: R=100-1000, c=50-500, d=30s-60s
Medium load: R=1000-5000, c=500-2000, d=60s-300s
Heavy load: R=5000+, c=2000+, d=300s+
π Monitoring Results
π₯οΈ Test Output
RPS tests provide detailed performance metrics and diagnostics.
Key Metrics to Monitor:
Requests/sec: Actual vs. target RPS
Latency percentiles: 50th, 90th, 99th, 99.9th percentiles
Error rates: Connection errors, timeouts, validation failures
Resource usage: CPU, memory, connection pool utilization
Sample Output:
Last updated
Was this helpful?
