Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

Constraints

Nicholas Jackson edited this page Jan 16, 2018 · 1 revision

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"
Clone this wiki locally