Update for non-function based deployments

Fixes #551
This commit is contained in:
Alex Ellis 2018-03-03 10:58:34 +00:00 committed by GitHub
parent 1e4b0e3c0b
commit 67bda365cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,12 @@ To override the Content-Type of all your responses set the `content_type` enviro
### I don't want to use the watchdog
This is an unsupported use-case for the OpenFaaS project however if your container exposes HTTP POST on port 8080 then the OpenFaaS API gateway and other tooling will manage your container.
This is an unsupported use-case for the OpenFaaS project however if your container conforms to the requirements below then the OpenFaaS API gateway and other tooling will manage and scale your service.
You will need to provide a lock-file at `/tmp/.lock` so that the orchestration system can run healthchecks on your container. If you are using Docker Swarm make sure you provide a `HEALTHCHECK` instruction in your Dockerfile - samples are given in the `faas` repository.
* Expose TCP port 8080 over HTTP
* Create `/tmp/.lock` or in whatever location responds to the OS tempdir syscall
### Tuning auto-scaling