Set docker volumes to cache consistency mode (#4838)

(Only applies to OS X)

boulder is, typically, not a long lived docker container, and we don't
really care about synchronous consistency between the host fs and
container fs. cached provides the best performance for read-heavy
workloads, which is what is typically slowest on container startup
(at least from my experience).

This change provides a 30-40% speedup on OS X.
This commit is contained in:
Roland Bracewell Shoemaker 2020-06-02 15:00:57 -07:00 committed by GitHub
parent 86ac3d9e6b
commit 348b13f693
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -13,8 +13,8 @@ services:
# non-ASCII to stdout.
PYTHONIOENCODING: "utf-8"
volumes:
- .:/go/src/github.com/letsencrypt/boulder
- ./.gocache:/root/.cache/go-build
- .:/go/src/github.com/letsencrypt/boulder:cached
- ./.gocache:/root/.cache/go-build:cached
networks:
bluenet:
ipv4_address: 10.77.77.77