cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

Use Config File on startup

Open pxlogan opened this issue 5 years ago • 3 comments

**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

pxlogan avatar Feb 22 '21 11:02 pxlogan

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!

github-actions[bot] avatar Aug 31 '23 11:08 github-actions[bot]

This is still a fairly common request. But it really shouldn't be assigned to me.
@knz can you help triage?

BramGruneir avatar Aug 31 '23 15:08 BramGruneir

yep fair

knz avatar Aug 31 '23 15:08 knz