Skip to content

Commit a222aab

Browse files
committed
Increase timeouts and buffer size.
1 parent 067c2f1 commit a222aab

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

deploy/tasks/buildah-oci-ta.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ spec:
3333
- name: BUILD_ARGS
3434
description: Array of --build-arg values ("arg=value" strings)
3535
type: array
36-
default: []
36+
default: [ ]
3737
- name: BUILD_ARGS_FILE
3838
description: Path to a file with build arguments, see https://www.mankier.com/1/buildah-build#--build-arg-file
3939
type: string
@@ -76,7 +76,7 @@ spec:
7676
description: Additional key=value labels that should be applied to the
7777
image
7878
type: array
79-
default: []
79+
default: [ ]
8080
- name: PREFETCH_INPUT
8181
description: In case it is not empty, the prefetched content should
8282
be made available to the build.
@@ -142,7 +142,7 @@ spec:
142142
- name: BYTE_BUFFER_SIZE
143143
description: The byte buffer size to use for the domain proxy.
144144
type: string
145-
default: 1024
145+
default: 32768
146146
- name: PROXY_TARGET_WHITELIST
147147
description: Comma separated whitelist of target hosts for the domain proxy.
148148
type: string
@@ -189,7 +189,7 @@ spec:
189189
optional: true
190190
secretName: $(params.ENTITLEMENT_SECRET)
191191
- name: shared
192-
emptyDir: {}
192+
emptyDir: { }
193193
- name: trusted-ca
194194
configMap:
195195
items:
@@ -198,9 +198,9 @@ spec:
198198
name: $(params.caTrustConfigMapName)
199199
optional: true
200200
- name: varlibcontainers
201-
emptyDir: {}
201+
emptyDir: { }
202202
- name: workdir
203-
emptyDir: {}
203+
emptyDir: { }
204204
stepTemplate:
205205
env:
206206
- name: ACTIVATION_KEY

domain-proxy/common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ import (
1313

1414
const (
1515
ByteBufferSizeKey = "BYTE_BUFFER_SIZE"
16-
DefaultByteBufferSize = 1024
16+
DefaultByteBufferSize = 32768
1717
DomainSocketKey = "DOMAIN_SOCKET"
1818
DefaultDomainSocket = "/tmp/domain-socket.sock"
1919
ConnectionTimeoutKey = "CONNECTION_TIMEOUT"
20-
DefaultConnectionTimeout = 1000 * time.Millisecond
20+
DefaultConnectionTimeout = 10000 * time.Millisecond
2121
IdleTimeoutKey = "IDLE_TIMEOUT"
22-
DefaultIdleTimeout = 30000 * time.Millisecond
22+
DefaultIdleTimeout = 60000 * time.Millisecond
2323
)
2424

2525
var Logger *log.Logger

0 commit comments

Comments
 (0)