Use Config File on startup
**Is your feature request related to a problem? Please describe. ** A clear and concise description of what the problem is. Ex. I'm always frustrated when
It would be extremely useful to have a configuration file that could be read on deployment or startup of a node or cluster that could set it up without having to pass in reams of command line options and manually running SET CLUSTER SETTINGS
Describe the solution you'd like A clear and concise description of what you want to happen.
A single file that can be included at deployment and startup listing all existing command line and cluster setting options, set to their default values, with comments indicating other values. Or some sensible alternative.
For example:
cockroach start --configuration cockroach.conf # (or .json or .yml) cockroach start --configuration /tmp/foobar.conf
Or if you want to be really flash, you can just say
cockroach start
and it looks in for a file called cockroach.conf in the current directory and if it exists, uses that. Could maybe also enable an environment variable for the location.
cockroach.conf contains:
advertise-addr localhost:26257 # blah blah blah advertise-sql-addr localhost:8080 # blah blah blah attrs NONE # blah blah blah . . . no-color DISABLED # blah blah blah vmodule NONE # blah blah blah
gz#6078
gz#5106
Jira issue: CRDB-3101
We have marked this issue as stale because it has been inactive for 18 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to CockroachDB!
This is still a fairly common request. But it really shouldn't be assigned to me.
@knz can you help triage?
yep fair