Constraints - hashicorp/faas-nomad GitHub Wiki
CPU and Memory Limits
Datacenters
By default the Nomad provider will use a default datacenter for a deployed function of dc1
, this can be overridden by setting the label datacenters
, which takes a comma separated list of datacenters to deploy the funtion into.
i.e.
$ faas-cli deploy -l datacenters=dc1,dc2
or from a stack file...
functions:
facedetect:
lang: go-opencv
handler: ./facedetect
image: nicholasjackson/func_facedetect
limits:
memory: 512
cpu: 1000
labels:
datacentres: "dc1"