Skip to content

Commit d6603ac

Browse files
committed
Added benchmark nodes doc
Signed-off-by: Effi-S <effi.szt@gmail.com>
1 parent 00e672e commit d6603ac

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Setting up 2 nodes Benchmarking on 2 Severs
2+
3+
To setup AWS EC2 nodes See: [AWS Setup 2 Machines](../../../token/core/zkatdlog/nogh/v1/validator/bench/transfer_service/aws_setup_2_machines.md)
4+
5+
Architecture:
6+
1. Machine 1 is the server
7+
2. Machine 2 is the client sending to the server and gathering the metrics
8+
9+
Setup:
10+
1. Add ssh pubkey of server to client `known_hosts`
11+
2. Start the server:
12+
13+
```bash
14+
cd token/core/zkatdlog/nogh/v1/validator/bench/transfer_service/
15+
GOGC=10000 go run ./server/
16+
```
17+
3. In the client, Rsync the node data from the server:
18+
19+
```bash
20+
cd token/core/zkatdlog/nogh/v1/validator/bench/transfer_service/
21+
22+
rsync -avz MyServerName:/.../fabric-token-sdk/token/core/zkatdlog/nogh/v1/validator/bench/transfer_service/out/ ./out
23+
```
24+
4. Replace the IP:
25+
```bash
26+
sed 's#127.0.0.1#123.456.789#g' ./out/testdata/fsc/nodes/test-node.0/client-config.yaml -i
27+
```
28+
5. Start client and tee output to file
29+
30+
```bash
31+
GOGC=10000 nohup go run ./client/ -benchtime=30s -count=5 -workloads=transfer-service -cpu=1,2,4,8,16,32,48,64 -numConn=1,2,4,8 2>&1 | tee out.txt &
32+
```
33+
34+
Running Local Benchmark:
35+
36+
```bash
37+
GOGC=10000 go test ./token/core/zkatdlog/nogh/v1/validator/bench/transfer_service/ -run ^$ -ben
38+
ch=BenchmarkLocalTransferService -benchtime=30s -count=5 -cpu=1,4,8,16,32,64
39+
```
40+
Other benchamrks:
41+
```
42+
GOGC=10000 go test -bench=BenchmarkAPIGRPC -benchtime=30s -count=5 -cpu=32 2>&1
43+
```
44+
45+

0 commit comments

Comments
 (0)