Skip to content

Commit e59cbfb

Browse files
committed
Blockade config: Formatting; use start_delay instead of sleep.
1 parent 35a73e8 commit e59cbfb

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

contrib/blockade/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.blockade

contrib/blockade/blockade.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ containers:
1818
- 5080
1919
- 6080
2020
command: /gobin/dgraph zero --my=zero1:5080 --replicas 3 --idx 1 --bindall --expose_trace --profile_mode block --block_rate 10 --logtostderr -v=2
21-
volumes: {"/home/dmai/go/bin": "/gobin"}
21+
volumes:
22+
"/home/dmai/go/bin": "/gobin"
2223

2324
zero2:
2425
image: dgraph/dgraph:latest
@@ -31,7 +32,8 @@ containers:
3132
- 5081
3233
- 6081
3334
command: /gobin/dgraph zero -o 1 --my=zero2:5081 --replicas 3 --peer=zero1:5080 --idx 2 --bindall --expose_trace --profile_mode block --block_rate 10 --logtostderr -v=2
34-
volumes: {"/home/dmai/go/bin": "/gobin"}
35+
volumes:
36+
"/home/dmai/go/bin": "/gobin"
3537

3638
zero3:
3739
image: dgraph/dgraph:latest
@@ -71,7 +73,8 @@ containers:
7173
expose:
7274
- 8182
7375
- 9182
74-
command: sh -xc 'sleep 10; /gobin/increment -addr=dg2:9182 -num=10000 -wait=1s & echo "Starting dg2"; /gobin/dgraph alpha --my=dg2:7182 --lru_mb=1024 --zero=zero1:5080 -o 102 --expose_trace --trace 1.0 --profile_mode block --block_rate 10 --logtostderr -v=2'
76+
start_delay: 10
77+
command: sh -xc '/gobin/increment -addr=dg2:9182 -num=10000 -wait=1s & echo "Starting dg2"; /gobin/dgraph alpha --my=dg2:7182 --lru_mb=1024 --zero=zero1:5080 -o 102 --expose_trace --trace 1.0 --profile_mode block --block_rate 10 --logtostderr -v=2'
7578
volumes:
7679
"/home/dmai/go/bin": "/gobin"
7780

@@ -85,7 +88,8 @@ containers:
8588
expose:
8689
- 8183
8790
- 9183
88-
command: sh -xc 'sleep 15; /gobin/increment -addr=dg3:9183 -num=10000 -wait=1s & echo "Starting dg3"; /gobin/dgraph alpha --my=dg3:7183 --lru_mb=1024 --zero=zero1:5080 -o 103 --expose_trace --trace 1.0 --profile_mode block --block_rate 10 --logtostderr -v=2'
91+
start_deplay: 15
92+
command: sh -xc '/gobin/increment -addr=dg3:9183 -num=10000 -wait=1s & echo "Starting dg3"; /gobin/dgraph alpha --my=dg3:7183 --lru_mb=1024 --zero=zero1:5080 -o 103 --expose_trace --trace 1.0 --profile_mode block --block_rate 10 --logtostderr -v=2'
8993
volumes:
9094
"/home/dmai/go/bin": "/gobin"
9195

0 commit comments

Comments
 (0)