-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
confusing defaults when enabling scaling stanza #8355
Comments
Okay, this is confusing. I'll update the processing to make this work better. But here's the gist... The rest it is mostly as you recommended: for your example, There is one addition bit; when a scaling stanza is present with a min, the default task group count is
I'll update the docs so that the new rules for |
This might sound nitpicky, but there are subtle nuances what can lead to confusion (not harmful), just confusing:
👍👍👍 |
To the first nit: on any job submission (create or update), if The the second nit: there was a lot of debate during RFC as to whether |
…messages * made api.Scaling.Max a pointer, so we can detect (and complain) when it is neglected * added checks to HCL parsing that it is present * when Scaling.Max is absent/invalid, don't return extraneous error messages during validation * tweak to multiregion handling to ensure that the count is valid on the interpolated regional jobs resolves #8355
*** I am not too hung up about this for now at all. note: my thoughts could be driven by having used AWS' ASG, so that's there! (min, max, desired)
Ohhh ... the various possible combinations are making my head hurt, and a little voice in my head is saying that "how about just make everything mandatory to be specified 😈 " Anyway, anything is fine by me, just as long as the |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Nomad version
Output from
nomad version
Nomad v0.12.0-beta2 (5b80d4e)
Operating system and Environment details
CentOS 7/8, Ubuntu 16.04/18.04
Issue
For the scaling stanza, the
min
value should use the default group count of1
.It overrides the default group count of
1
with themin
value in thescaling
stanza.Reproduction steps
starting with the default job file, perform the steps mentioned below ...
Job file (if appropriate)
scaling
so I proceed to "just" add the scaling stanza (I would assume this should work)only this much doesn't work ... it complains about
min
not set with error and some spurious whitespaces and a bracket ...min
value to0
...BUG! (I think), The unspecified default group count of
1
was over-ridden by themin
value.Also, the error about
max
has gone away as it plans to kill off the running instance (!!)Even if I add
min = 0
andmax = 10
, the error is the same.Expected behavior
Possible solutions could be:
min
should use the current defaultcount
of1
max
should default to the jobcount
, which is1
.count
of1
???Nomad Client logs (if appropriate)
na
Nomad Server logs (if appropriate)
na
The text was updated successfully, but these errors were encountered: