test: add ledger load test commands
This commit is contained in:
1 parent
5b4cb5a2a3
commit
a54070cfad
6 files changed
+1060
No files matched your search
@@ -0,0 +1,22 @@
|
||||
# GL load test
|
||||
|
||||
This command exercises the write and read paths of the gRPC ledger service.
|
||||
Each simulated transaction:
|
||||
|
||||
1. appends a `CREATED` lifecycle event;
|
||||
2. posts a balanced transfer between two generated user wallet accounts;
|
||||
3. reads the committed journal;
|
||||
4. rebuilds the receiving wallet balance;
|
||||
5. appends a `SUCCESSFUL` lifecycle event.
|
||||
|
||||
Ledger accounts are created implicitly by `AppendJournal`; GL does not expose a
|
||||
separate wallet-creation RPC.
|
||||
|
||||
Start GL, then run:
|
||||
|
||||
```bash
|
||||
go run ./cmd/gl-loadtest -duration 30s -concurrency 20 -wallets 1000
|
||||
```
|
||||
|
||||
Use a fresh `-run-id` for every dataset. The command generates one automatically
|
||||
when the flag is omitted.
|
||||
Reference in new issue
Block a user