GL redistribution load test
This fixed-count scenario creates ten run-scoped user accounts for an operator- selected asset. It verifies that all ten start at zero, funds only the first person with 10,000, and then submits 10,000,000 user-to-user transfers.
The first nine transfers give every other person 45. The remaining transfers use reproducible random senders, receivers, and positive integer amounts while reserving a minimum balance of 45 for every person. The test finishes by reading all ten balances from GL and fails unless every balance is at least 45 and their sum is exactly 10,000.
Start GL, then run:
go run ./cmd/gl-redistribution-loadtest
Asset number: 7
For automation, pass the asset without the prompt:
go run ./cmd/gl-redistribution-loadtest -asset-id 7 -concurrency 32
The defaults are 10,000,000 transfers against 127.0.0.1:8600. Use a fresh
-run-id for every dataset; one is generated automatically. -transactions
can be reduced for a smoke test, and -seed makes the random sequence repeatable.