Skip to content

Commit

Permalink
Bump compose to use gateway_invoke for nats-queue-worker
Browse files Browse the repository at this point in the history
This change means the gateway is used to invoke functions
asynchronously rather than directly so that the scale from zero
path can execute.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
  • Loading branch information
alexellis committed May 7, 2019
1 parent 681d884 commit 1390621
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docker-compose.arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ services:
DOCKER_API_VERSION: "1.30"
basic_auth: "${BASIC_AUTH:-true}"
secret_mount_path: "/run/secrets/"
gateway_invoke: "true"
faas_gateway_address: "gateway"
deploy:
placement:
constraints:
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.armhf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ services:
ack_wait: "5m5s" # Max duration of any async task / request
basic_auth: "${BASIC_AUTH:-true}"
secret_mount_path: "/run/secrets/"
gateway_invoke: "true"
faas_gateway_address: "gateway"
deploy:
resources:
limits:
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,16 @@ services:
- "node.platform.os == linux"

queue-worker:
image: openfaas/queue-worker:0.7.1
image: openfaas/queue-worker:0.7.2
networks:
- functions
environment:
max_inflight: "1"
ack_wait: "5m5s" # Max duration of any async task / request
basic_auth: "${BASIC_AUTH:-true}"
secret_mount_path: "/run/secrets/"
gateway_invoke: "true"
faas_gateway_address: "gateway"
deploy:
resources:
limits:
Expand Down

0 comments on commit 1390621

Please sign in to comment.