b2b8efff7d
This change turns off fsync on the postgres container used for tests. This reduces migration time significantly when initializing new satellite databases. The change also includes a new benchmark for satellite initialization in testplanet. $ benchstat old.txt new.txt name old time/op new time/op delta Run_Satellite/Postgres-16 1.36s ± 0% 0.08s ± 0% ~ (p=1.000 n=1+1) Change-Id: Ic954767133864770cf652b0dfdcd6b109a167b5f
45 lines
1.5 KiB
YAML
45 lines
1.5 KiB
YAML
# Support services used by tests
|
|
|
|
version: "3.4"
|
|
|
|
services:
|
|
postgres:
|
|
hostname: postgres
|
|
command: -c fsync=off
|
|
image: postgres
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
ports:
|
|
- "5532:5432"
|
|
crdb1:
|
|
hostname: crdb1
|
|
command: [ "start-single-node", "--insecure", "--store=type=mem,size=2GiB", "--http-addr=localhost:8086", "--cache=512MiB", "--max-sql-memory=512MiB" ]
|
|
image: cockroachdb/cockroach
|
|
ports:
|
|
- "26356:26257"
|
|
crdb2:
|
|
hostname: crdb2
|
|
command: [ "start-single-node", "--insecure", "--store=type=mem,size=2GiB", "--http-addr=localhost:8086", "--cache=512MiB", "--max-sql-memory=512MiB" ]
|
|
image: cockroachdb/cockroach
|
|
ports:
|
|
- "26357:26257"
|
|
crdb3:
|
|
hostname: crdb3
|
|
command: [ "start-single-node", "--insecure", "--store=type=mem,size=2GiB", "--http-addr=localhost:8086", "--cache=512MiB", "--max-sql-memory=512MiB" ]
|
|
image: cockroachdb/cockroach
|
|
ports:
|
|
- "26358:26257"
|
|
crdb4:
|
|
hostname: crdb4
|
|
command: [ "start-single-node", "--insecure", "--store=type=mem,size=2GiB", "--http-addr=localhost:8086", "--cache=512MiB", "--max-sql-memory=512MiB" ]
|
|
image: cockroachdb/cockroach
|
|
ports:
|
|
- "26359:26257"
|
|
crdb5:
|
|
hostname: crdb5
|
|
command: [ "start-single-node", "--insecure", "--store=type=mem,size=2GiB", "--http-addr=localhost:8086", "--cache=512MiB", "--max-sql-memory=512MiB" ]
|
|
image: cockroachdb/cockroach
|
|
ports:
|
|
- "26360:26257"
|