limit the number of connections to prevent Bazel
from running out of file handles.
@@ -687,6 +687,7 @@ def remote_caching_flags(platform):
# https://github.com/bazelbuild/bazel/issues/5382 and as part of that keep
# or remove the `--disk_cache=` flag.
"--disk_cache=",
+ "--remote_max_connections=200",
"--experimental_remote_platform_override=properties:{name:\"platform\" value:\"" + platform + "\"}",
"--remote_http_cache=https://storage.googleapis.com/bazel-buildkite-cache"]
if platform in ["ubuntu1404", "ubuntu1604", "ubuntu1804", "macos", "windows"]:
