juju set-constraints
¶
See also: constraints, model-constraints, set-model-constraints
Summary¶
Sets machine constraints for an application.
Usage¶
juju set-constraints [options] <application> <constraint>=<value> ...
Options¶
Flag |
Default |
Usage |
---|---|---|
|
false |
Do not use web browser for authentication |
|
Model to operate in. Accepts [<controller name>:]<model name>|<model UUID> |
Examples¶
juju set-constraints mysql mem=8G cores=4
juju set-constraints -m mymodel apache2 mem=8G arch=amd64
Details¶
Sets constraints for an application, which are used for all new machines
provisioned for that application. They can be viewed with juju constraints
.
By default, the model is the current model.
Application constraints are combined with model constraints, set with juju set-model-constraints
, for commands (such as ‘juju deploy’) that
provision machines for applications. Where model and application constraints
overlap, the application constraints take precedence.
Constraints for a specific model can be viewed with juju model-constraints
.
This command requires that the application to have at least one unit. To apply
constraints to
the first unit set them at the model level or pass them as an argument
when deploying.