Skip to content

docgen: add generator for all defined settings#23531

Merged
dt merged 1 commit intocockroachdb:masterfrom
dt:settings-doc
Mar 7, 2018
Merged

docgen: add generator for all defined settings#23531
dt merged 1 commit intocockroachdb:masterfrom
dt:settings-doc

Conversation

@dt
Copy link
Copy Markdown
Contributor

@dt dt commented Mar 7, 2018

Release note: none.

@dt dt requested review from a team, jseldess, knz and madelynnblue March 7, 2018 15:54
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@dt
Copy link
Copy Markdown
Contributor Author

dt commented Mar 7, 2018

@benesch I'm not quite sure where it makes sense -- if it makes sense -- to add to makefile since this depends on ~everything, but I'd certainly want it run on an explicit make generate I think?

Copy link
Copy Markdown
Contributor

@jseldess jseldess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a great, @dt! Just a few questions/comments. Also, in our current cluster settings doc, we have a warning:

Many cluster settings are intended for tuning CockroachDB internals. Before changing these settings, we strongly encourage you to discuss your goals with Cockroach Labs; otherwise, you use them at your own risk.

And we then list only the settings that customers can safely change without consulting us. Do you think it's time for us to change this approach and just embed all settings on that page?

return err
}

// SettingsDefaultOverrides documents the effect of several migrations add an
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't figure out what several migrations add an explicit value... is trying to say.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was missing a that. Fixed.

@@ -0,0 +1,52 @@
| SETTING | TYPE | DEFAULT | DESCRIPTION |
|---------------------------------------------------|-------------------|----------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| cloudstorage.gs.default.key | string | | if set, JSON key to use during Google Cloud Storage operations |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we should put backticks around the settings, types, and defaults?

| `debug.panic_on_failed_assertions` | `boolean` | `false` | panic when an assertion fails rather than reporting |

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done for name and value, type doesn't seem like a literal?

return v, ok
}

// ReadableTypes maps our short type identifiers to friendlier names.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@dt
Copy link
Copy Markdown
Contributor Author

dt commented Mar 7, 2018

We hide some settings from show all cluster settings and those are also hidden here -- I think everything else we should document, though I think we keep that warning at the top of the page that embeds this table. I just wanted to stop hand-maintaining the table.

@dt dt requested review from benesch and removed request for knz March 7, 2018 19:03
@dt dt merged commit b6c934c into cockroachdb:master Mar 7, 2018
@dt dt deleted the settings-doc branch March 7, 2018 19:37
@madelynnblue
Copy link
Copy Markdown
Contributor

Can we get a followup PR to add a docgen rule for this so it stays in sync?

rmloveland added a commit to cockroachdb/docs that referenced this pull request Mar 8, 2018
The settings we want to keep hidden are also hidden from the
auto-generated table, according to the discussion at
cockroachdb/cockroach#23531
rmloveland added a commit to cockroachdb/docs that referenced this pull request Mar 14, 2018
The settings we want to keep hidden are also hidden from the
auto-generated table, according to the discussion at
cockroachdb/cockroach#23531
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants