mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 16:56:47 +00:00
Add max_idle_conns_* to gateway compose file
- adds max_idle_conns_* default values to docker-compose.yml to make it easier to override as a user doing testing/tuning - make Golang durations easier to read 300s -> 5m Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
This commit is contained in:
parent
ee7cbaa360
commit
e63150ef70
@ -8,17 +8,19 @@ services:
|
||||
- functions
|
||||
environment:
|
||||
functions_provider_url: "http://faas-swarm:8080/"
|
||||
read_timeout: "300s" # Maximum time to read HTTP request
|
||||
write_timeout: "300s" # Maximum time to write HTTP response
|
||||
upstream_timeout: "300s" # Maximum duration of upstream function call - should be more than read_timeout and write_timeout
|
||||
dnsrr: "true" # Temporarily use dnsrr in place of VIP while issue persists on PWD
|
||||
read_timeout: "5m5s" # Maximum time to read HTTP request
|
||||
write_timeout: "5m5s" # Maximum time to write HTTP response
|
||||
upstream_timeout: "5m" # Maximum duration of upstream function call - should be more than read_timeout and write_timeout
|
||||
dnsrr: "true" # Temporarily use dnsrr in place of VIP while issue persists on PWD
|
||||
faas_nats_address: "nats"
|
||||
faas_nats_port: 4222
|
||||
direct_functions: "true" # Functions are invoked directly over the overlay network
|
||||
direct_functions: "true" # Functions are invoked directly over the overlay network
|
||||
direct_functions_suffix: ""
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
scale_from_zero: "true"
|
||||
scale_from_zero: "true" # Enable if you want functions to scale from 0/0 to min replica count upon invoke
|
||||
max_idle_conns: 1024
|
||||
max_idle_conns_per_host: 1024
|
||||
deploy:
|
||||
resources:
|
||||
# limits: # Enable if you want to limit memory usage
|
||||
@ -45,8 +47,8 @@ services:
|
||||
networks:
|
||||
- functions
|
||||
environment:
|
||||
read_timeout: "300s" # set both here, and on your functions
|
||||
write_timeout: "300s" # set both here, and on your functions
|
||||
read_timeout: "5m5s" # set both here, and on your functions
|
||||
write_timeout: "5m5s" # set both here, and on your functions
|
||||
DOCKER_API_VERSION: "1.30"
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
@ -95,7 +97,7 @@ services:
|
||||
- functions
|
||||
environment:
|
||||
max_inflight: "1"
|
||||
ack_wait: "300s" # Max duration of any async task / request
|
||||
ack_wait: "5m5s" # Max duration of any async task / request
|
||||
basic_auth: "${BASIC_AUTH:-true}"
|
||||
secret_mount_path: "/run/secrets/"
|
||||
deploy:
|
||||
|
Loading…
x
Reference in New Issue
Block a user