-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-work.yml
189 lines (185 loc) · 3.76 KB
/
docker-compose-work.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
---
version: "3.8"
services:
# ------------------------------------------------ PRODUCERS
prod-01:
container_name: prod-01
image: ${KSUNAMI_IMG}:${KSUNAMI_VER}
deploy:
resources:
limits:
cpus: '0.2'
memory: 128M
command:
- --brokers=${BROKERS}
- --topic=workload01
- --partitioner=murmur2_random
- --min-sec=3540
- --min=10
- --max-sec=60
- --max=1000
- --up=spike-in
- --down=ease-out
- --key=int:10-1000
- --payload=alpha:100
- -vv
prod-02:
container_name: prod-02
image: ${KSUNAMI_IMG}:${KSUNAMI_VER}
deploy:
resources:
limits:
cpus: '0.2'
memory: 128M
command:
- --brokers=${BROKERS}
- --topic=workload02
- --partitioner=random
- --min-sec=300
- --min=2
- --max-sec=30
- --max=10000
- --up=spike-out
- --down=linear
- --key=bytes:15
- --payload=bytes:50
- -vv
prod-03:
container_name: prod-03
image: ${KSUNAMI_IMG}:${KSUNAMI_VER}
deploy:
resources:
limits:
cpus: '0.2'
memory: 128M
command:
- --brokers=${BROKERS}
- --topic=workload03
- --partitioner=fnv1a_random
- --min-sec=60
- --min=50
- --max-sec=60
- --max=100
- --up=ease-in-out
- --down=ease-in-out
- --key=alpha:30
- --payload=alpha:20
- -vv
# ------------------------------------------------ CONSUMERS
# Group "cons-01" contains 2 members: "cons-01_a" and "cons_01_b"
cons-01a:
container_name: cons-01a
image: ${CP_KCAT_IMG}:${CP_KCAT_VER}
deploy:
resources:
limits:
cpus: '0.2'
memory: 64M
command:
- kafkacat
- -b
- ${BROKERS}
- -C
- -G
- cons-01
- workload01
- -f
- ${KCAT_REC_FMT}
cons-01b:
container_name: cons-01b
image: ${CP_KCAT_IMG}:${CP_KCAT_VER}
deploy:
resources:
limits:
cpus: '0.2'
memory: 64M
command:
- kafkacat
- -b
- ${BROKERS}
- -C
- -G
- cons-01
- workload01
- -f
- ${KCAT_REC_FMT}
# Group "cons-02" contains only 1 member
cons-02:
container_name: cons-02
image: ${CP_KCAT_IMG}:${CP_KCAT_VER}
deploy:
resources:
limits:
cpus: '0.2'
memory: 64M
command:
- kafkacat
- -b
- ${BROKERS}
- -C
- -G
- cons-02
- workload02
- -f
- ${KCAT_REC_FMT}
# Group "cons-03" contains 3 members: "cons-03_a", "cons-03_b" and "cons-03_c"
cons-03a:
container_name: cons-03a
image: ${CP_KCAT_IMG}:${CP_KCAT_VER}
deploy:
resources:
limits:
cpus: '0.2'
memory: 64M
command:
- kafkacat
- -b
- ${BROKERS}
- -C
- -G
- cons-03
- workload03
- -f
- ${KCAT_REC_FMT}
cons-03b:
container_name: cons-03b
image: ${CP_KCAT_IMG}:${CP_KCAT_VER}
deploy:
resources:
limits:
cpus: '0.2'
memory: 64M
command:
- kafkacat
- -b
- ${BROKERS}
- -C
- -G
- cons-03
- workload03
- -f
- ${KCAT_REC_FMT}
cons-03c:
container_name: cons-03c
image: ${CP_KCAT_IMG}:${CP_KCAT_VER}
deploy:
resources:
limits:
cpus: '0.2'
memory: 64M
command:
- kafkacat
- -b
- ${BROKERS}
- -C
- -G
- cons-03
- workload03
- -f
- ${KCAT_REC_FMT}
networks:
default:
# Attach to the (assumed existing) bridge network, created by `docker-compose-infra.yml`
external: true
name: ${NETWORK_NAME}
driver: bridge