From 348b13f693ffd0b5068a550caac9e459ca4c65c7 Mon Sep 17 00:00:00 2001 From: Roland Bracewell Shoemaker Date: Tue, 2 Jun 2020 15:00:57 -0700 Subject: [PATCH] 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. --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index e67d892a6..ef2c64e75 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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