-
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
nomad config validate
doesn't include command line flags in validation
#25205
Comments
Hi @gautamg795! I double checked this with a minimal configuration and I think what might be happening is you're missing the data_dir = "/tmp"
server {
enabled = true
}
client {
enabled = true
} Using the As an aside, we generally don't recommend having the server and client together, because the server uses resources your workloads will need, and the server doesn't have any way of capping resources it uses. |
Ah so we're not actually running server and client on the same machine -- we distribute this config file to every machine, then a startup script runs nomad with But I'm realizing this is actually pretty hard to solve, as any number of command line args to nomad can make or break the config file. So maybe this is a feature request for |
nomad config validate
doesn't allow client
and server
config to coexistnomad config validate
doesn't include command line flags in validation
Ah, ok, I understand what you're trying to do now. Note that So typically what folks do is have multiple config files. Ex.
|
Nomad version
Output from
nomad version
Nomad v1.8.4
BuildDate 2024-09-17T20:18:34Z
Revision 22ab32e
Operating system and Environment details
macOS 15.3.1 (though issue is not OS-specific)
Issue
Running
nomad config validate
doesn't work on aconfig.hcl
file that contains bothclient {}
andserver {}
blocks.My understanding is that this is a valid configuration (we use it in production), and just launch the agent with the
-client
or-server
flag as appropriate for the machine.Reproduction steps
Expected Result
Config is validated
Actual Result
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: