Update resources example in init command

This commit is contained in:
Seth Vargo 2016-10-30 21:32:08 -04:00
parent 434db4de28
commit aa8f137450
No known key found for this signature in database
GPG key ID: 905A90C2949E8787

View file

@ -157,8 +157,16 @@ job "example" {
}
}
# We must specify the resources required for this task to ensure
# it runs on a machine with enough capacity.
# The "resources" stanza describes the requirements a task needs to
# execute. Resource requirements include memory, disk space, network,
# cpu, and more. This ensures the task will execute on a machine that
# contains enough resource capacity.
#
# For more information and examples on the "resources" stanza, please see
# the online documentation at:
#
# https://www.nomadproject.io/docs/job-specification/resources.html
#
resources {
cpu = 500 # 500 MHz
memory = 256 # 256MB