forked from db-benchmarks/db-benchmarks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
250 lines (241 loc) · 6.62 KB
/
docker-compose.yml
File metadata and controls
250 lines (241 loc) · 6.62 KB
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
version: '2.4'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
networks:
- default
container_name: "elasticsearch_engine"
mem_limit: ${mem}m # used for testing with limited capabilities, e.g. RAM capped at 256MB
cpuset: ${cpuset} # used for testing with limited capabilities, e.g. single physical core
privileged: true # we give containers all privileges since otherwise (as previous tests showed) in-docker and on-host performances can differe significantly
mem_swappiness: 0 # we disable swappiness since it can lower test results quality
ulimits:
memlock: # as recommended on https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_disable_swapping
soft: -1
hard: -1
nproc: 65535 # as recommended on https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_increase_ulimits_for_nofile_and_nproc
nofile:
soft: 262144
hard: 262144
ports:
- "127.0.0.1:9200:9200"
environment:
- "ES_JAVA_OPTS=${ES_JAVA_OPTS}"
- cluster.name=docker-cluster
- discovery.type=single-node
- xpack.security.http.ssl.enabled=false
- xpack.license.self_generated.type=trial
- bootstrap.memory_lock=true # as said on https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_disable_swapping it needs to be done for performance
volumes:
- ./tests/${test}/elasticsearch/idx${suffix}:/usr/share/elasticsearch/data
- ./tests/${test}/elasticsearch/config${suffix}:/usr/share/elasticsearch/config/:rw
clickhouse:
image: clickhouse/clickhouse-server:24.4.3.25
networks:
- default
container_name: "clickhouse_engine"
mem_limit: ${mem}m
cpuset: ${cpuset}
privileged: true
mem_swappiness: 0
ulimits:
memlock:
soft: -1
hard: -1
nproc: 65535
nofile:
soft: 262144
hard: 262144
ports:
- "127.0.0.1:8123:8123"
- "127.0.0.1:9000:9000"
volumes:
- ./tests/${test}/clickhouse/data${suffix}:/var/lib/clickhouse
mysql:
image: mysql:9.1.0
platform: linux/x86_64
networks:
- default
container_name: "mysql_engine"
mem_limit: ${mem}m
cpuset: ${cpuset}
privileged: true
mem_swappiness: 0
ulimits:
memlock:
soft: -1
hard: -1
nproc: 65535
nofile:
soft: 262144
hard: 262144
ports:
- "127.0.0.1:3306:3306"
volumes:
- ./tests/${test}/mysql/data${suffix}:/var/lib/mysql
- ./tests/${test}/data:/input
command: --secure-file-priv="/input/" --innodb-ft-min-token-size=1
environment:
- MYSQL_DATABASE=default
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=
mysql_percona:
image: percona:8.0.36-28
platform: linux/x86_64
networks:
- default
container_name: "mysql_percona_engine"
mem_limit: ${mem}m
cpuset: ${cpuset}
privileged: true
mem_swappiness: 0
ulimits:
memlock:
soft: -1
hard: -1
nproc: 65535
nofile:
soft: 262144
hard: 262144
ports:
- "127.0.0.1:3302:3306"
volumes:
- ./tests/${test}/mysql_percona/data${suffix}:/var/lib/mysql
- ./tests/${test}/data:/input
command: --secure-file-priv="/input/" --innodb-ft-min-token-size=1
environment:
- MYSQL_DATABASE=default
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_ROOT_PASSWORD=
manticoresearch:
image: ${MANTICORE_IMAGE:-manticoresearch/manticore:7.0.0}
networks:
- default
container_name: "manticoresearch_engine"
mem_limit: ${mem}m
cpuset: ${cpuset}
privileged: true
mem_swappiness: 0
ulimits:
memlock:
soft: -1
hard: -1
nproc: 65535
nofile:
soft: 262144
hard: 262144
ports:
- "127.0.0.1:${MANTICORE_MYSQL_PORT:-9306}:9306"
- "127.0.0.1:${MANTICORE_HTTP_PORT:-9308}:9308"
environment:
- EXTRA=1
volumes:
- ./tests/${test}/manticoresearch/idx${suffix}:/var/lib/manticore
- ./tests/${test}/data:/input
- ./tests/${test}/manticoresearch/manticore${suffix}.conf:/etc/manticoresearch/manticore.conf
postgres:
image: postgres:17.0
networks:
- default
container_name: "postgres_engine"
mem_limit: ${mem}m
cpuset: ${cpuset}
privileged: true
mem_swappiness: 0
ulimits:
memlock:
soft: -1
hard: -1
nproc: 65535
nofile:
soft: 262144
hard: 262144
ports:
- "127.0.0.1:5432:5432"
volumes:
- ./tests/${test}/postgres/data${suffix}:/var/lib/postgresql/data
- ./tests/${test}/data:/input
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=default
typesense:
image: typesense/typesense:27.1
container_name: "typesense_engine"
networks:
- default
mem_limit: ${mem}m
cpuset: ${cpuset}
privileged: true
mem_swappiness: 0
ports:
- "127.0.0.1:8108:8108"
command: '--data-dir /data --api-key=manticore --enable-cors'
ulimits:
memlock:
soft: -1
hard: -1
nproc: 65535
nofile:
soft: 262144
hard: 262144
volumes:
- ./tests/${test}/typesense/data${suffix}:/data
- ./tests/${test}/data:/input
quickwit:
image: quickwit/quickwit:v0.8.2
container_name: "quickwit_engine"
networks:
- default
mem_limit: ${mem}m
cpuset: ${cpuset}
privileged: true
mem_swappiness: 0
ports:
- "127.0.0.1:7280:7280"
command: 'run'
ulimits:
memlock:
soft: -1
hard: -1
nproc: 65535
nofile:
soft: 262144
hard: 262144
volumes:
- ./tests/${test}/quickwit/data${suffix}:/quickwit/qwdata
- ./tests/${test}/quickwit/quickwit.yaml:/quickwit/config/quickwit.yaml
meilisearch:
image: getmeili/meilisearch:v1.11.1
networks:
- default
container_name: "meilisearch_engine"
mem_limit: ${mem}m
cpuset: ${cpuset}
privileged: true
mem_swappiness: 0
ulimits:
memlock:
soft: -1
hard: -1
nproc: 65535
nofile:
soft: 262144
hard: 262144
ports:
- "127.0.0.1:7700:7700"
volumes:
- ./tests/${test}/meilisearch/data${suffix}:/meili_data:rw
- ./tests/${test}/data:/input
entrypoint: ["meilisearch"]
command:
- --http-addr
- 0.0.0.0:7700
- --env
- development
- --no-analytics
- --max-indexing-memory=2Gb
- --max-indexing-threads=24
networks:
default:
driver: bridge
name: test_engines_default