Skip to content
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

Updates to cockroach demo docs #5363

Merged
merged 1 commit into from
Sep 11, 2019
Merged

Updates to cockroach demo docs #5363

merged 1 commit into from
Sep 11, 2019

Conversation

ericharmeling
Copy link
Contributor

@ericharmeling ericharmeling commented Sep 3, 2019

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
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.

LGTM with one small correction

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ericharmeling and @rmloveland)


v19.2/cockroach-demo.md, line 49 at r1 (raw file):

Flag | Description
-----|------------
`--demo-locality` | Specify [locality](start-a-node.html#locality) information for each demo node. The input is a colon-separated list of key-value pairs, where the i<sup>th</sup> pair is the locality setting for the i<sup>th</sup> demo cockroach node.<br><br>For example, the following option assigns node 1's region to `us-east1` and availability zone to `1`, node 2's region to `us-east2` and availability zone to `2`, and node 3's region to `us-east3` and availability zone to `3`: `--demo-locality=region=us-east1,az=1:region=us-east1,az=2:region=us-east1,az=3`. You can also include 

"You can also include" at end is incomplete....

Copy link
Contributor

@rmloveland rmloveland left a comment

Choose a reason for hiding this comment

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

LGTM with same comment as Jesse

Copy link
Contributor Author

@ericharmeling ericharmeling left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @jseldess)


v19.2/cockroach-demo.md, line 49 at r1 (raw file):

Previously, jseldess (Jesse Seldess) wrote…

"You can also include" at end is incomplete....

Done.

Copy link
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.

Thanks, @ericharmeling! LMGM

@ericharmeling
Copy link
Contributor Author

@rmloveland @jseldess
Sorry y'all, I added more changes to this to take care of a few more issues that are very much related (see updated comment). Please re-review. Thanks!

Copy link
Contributor

@rmloveland rmloveland left a comment

Choose a reason for hiding this comment

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

LGTM

@rmloveland
Copy link
Contributor

@ericharmeling would you mind updating

  • the PR title, and
  • the commit description in git

so they match the contents of these new updates? That way we will know what's in here when it pops up in search results or when looking at git log

@ericharmeling ericharmeling changed the title Changed commas to colons in --demo-locality flag Updates to cockroach demo docs Sep 10, 2019
@ericharmeling
Copy link
Contributor Author

ericharmeling commented Sep 10, 2019

would you mind updating

  • the PR title, and
  • the commit description in git

so they match the contents of these new updates? That way we will know what's in here when it pops up in search results or when looking at git log

@rmloveland Sure thing! Done.

Copy link
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.

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ericharmeling and @jseldess)


_includes/v19.2/sql/partitioning-enterprise.md, line 1 at r2 (raw file):

Partitioning is an enterprise-only feature. Each instance of `cockroach demo` loads a temporary enterprise license that expires after an hour of usage. If you want to use enterprise-only features outside of a `cockroach demo` instance, [request a trial enterprise license](https://www.cockroachlabs.com/get-cockroachdb/), and then [set the license key](enterprise-licensing.html#set-the-trial-or-enterprise-license-key).

nit: after an hour of usage > after an hour.


v19.2/cockroach-demo.md, line 12 at r2 (raw file):

<span class="version-tag">New in v19.2:</span> Each instance of `cockroach demo` loads a temporary [enterprise license](https://www.cockroachlabs.com/get-cockroachdb) that expires after an hour of usage.

after an hour of usage > after an hour


v19.2/cockroach-demo.md, line 59 at r2 (raw file):

`--safe-updates` | Disallow potentially unsafe SQL statements, including `DELETE` without a `WHERE` clause, `UPDATE` without a `WHERE` clause, and `ALTER TABLE ... DROP COLUMN`.<br><br>**Default:** `true` for [interactive sessions](use-the-built-in-sql-client.html#session-and-output-types); `false` otherwise<br><br>Potentially unsafe SQL statements can also be allowed/disallowed for an entire session via the `sql_safe_updates` [session variable](set-vars.html).
`--set` | Set a [client-side option](use-the-built-in-sql-client.html#client-side-options) before starting the SQL shell or executing SQL statements from the command line via `--execute`. This flag may be specified multiple times, once per option.<br><br>After starting the SQL shell, the `\set` and `unset` commands can be use to enable and disable client-side options as well.
`--with-load` |  <span class="version-tag">New in v19.2:</span> Run a demo [`movr`](movr.html) workload against the pre-loaded `movr` database.

Should we add an example for this, or somehow cover it in an example?


v19.2/show-locality.md, line 31 at r2 (raw file):

{% include copy-clipboard.html %}
~~~ shell
$ cockroach demo movr --nodes=3 --demo-locality=region=us-east1:region=us-central1:region=us-west1

Ugh, the command is showing up different on the page: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/36ca844770fbc027139bcdde066263bbdfec9873/v19.2/show-locality.html#show-locality

Also in other places where we feature the --demo-locality flag: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/36ca844770fbc027139bcdde066263bbdfec9873/v19.2/cockroach-demo.html#load-a-sample-dataset-and-start-an-interactive-sql-shell

This is probably due to some JS we're using to string certain things out of code samples. We'll have to look at it. We might need @benesch.

Copy link
Contributor Author

@ericharmeling ericharmeling left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @benesch and @jseldess)


_includes/v19.2/sql/partitioning-enterprise.md, line 1 at r2 (raw file):

Previously, jseldess (Jesse Seldess) wrote…

nit: after an hour of usage > after an hour.

Done.


v19.2/cockroach-demo.md, line 12 at r2 (raw file):

Previously, jseldess (Jesse Seldess) wrote…

after an hour of usage > after an hour

Done.


v19.2/cockroach-demo.md, line 59 at r2 (raw file):

Previously, jseldess (Jesse Seldess) wrote…

Should we add an example for this, or somehow cover it in an example?

Yes. I just added a small one.


v19.2/show-locality.md, line 31 at r2 (raw file):

Previously, jseldess (Jesse Seldess) wrote…

Ugh, the command is showing up different on the page: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/36ca844770fbc027139bcdde066263bbdfec9873/v19.2/show-locality.html#show-locality

Also in other places where we feature the --demo-locality flag: http://cockroach-docs-review.s3-website-us-east-1.amazonaws.com/36ca844770fbc027139bcdde066263bbdfec9873/v19.2/cockroach-demo.html#load-a-sample-dataset-and-start-an-interactive-sql-shell

This is probably due to some JS we're using to string certain things out of code samples. We'll have to look at it. We might need @benesch.

We discussed offline... rebasing master.

… and `movr` database are preloaded (Fixes #5378)

- Added prose that `cockroach demo` loads a temporary enterprise license (Fixes #5379)
- Added `--with-load` flag to run `demo` with `movr` workload (Fixes #5377)
- Replaced comas with colons in copy-paste demo statements (Fixes #5333)
@ericharmeling ericharmeling merged commit 7dbcee5 into master Sep 11, 2019
@ericharmeling ericharmeling deleted the demo-args branch September 11, 2019 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants