Skip to content

server: make first node and store ID easy to change#69493

Merged
craig[bot] merged 3 commits intocockroachdb:masterfrom
tbg:tutorial-visualize-ts
Aug 28, 2021
Merged

server: make first node and store ID easy to change#69493
craig[bot] merged 3 commits intocockroachdb:masterfrom
tbg:tutorial-visualize-ts

Conversation

@tbg
Copy link
Copy Markdown
Member

@tbg tbg commented Aug 27, 2021

This is to enable the (sorry, internal) runbook to visualize a copy of the
internal timeseries data of a cluster. While writing the runbook I found some
sharp nails that this PR addresses. Mainly, the running node (n1) on top of
which the timeseries data is imported used to clobber some data for n1. The
interim solution is to start that server with a very high NodeID/StoreID (via
a manual code change & build). This isn't the most user-friendly, but it's
enough to unblock us and besides, the code changes here also constitute a
desirable cleanup.

tbg added 2 commits August 27, 2021 22:07
Disable the internal timeseries write loop when starting cockroach
purely to visualize a dump obtained via `./cockroach debug tsdump`.

Release justification: low-impact debug-only fix
Release note: None
The existing constant was previously not used in all places, meaning
that changing FirstNodeID in one place would lead to a malfunctioning
system.

Release justification: low-risk change that is required for tsdump
runbook
Release note: None
@tbg tbg requested review from a team as code owners August 27, 2021 20:13
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Add a constant for the FirstStoreID. This allows one-off builds of
CockroachDB that use a nonstandard first NodeID and StoreID, which
is helpful for local metrics visualization (via the `tsdump` command).

Release justification: low-risk change to unblock the tsdump runbook.
Release note: None
@tbg tbg force-pushed the tutorial-visualize-ts branch from 619f281 to 12fb324 Compare August 28, 2021 12:26
@tbg tbg requested a review from erikgrinaker August 28, 2021 13:46
Copy link
Copy Markdown
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, 4 of 4 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @erikgrinaker)

@tbg
Copy link
Copy Markdown
Member Author

tbg commented Aug 28, 2021

TFTR!

bors r=knz

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 28, 2021

Build failed (retrying...):

craig bot pushed a commit that referenced this pull request Aug 28, 2021
69478: kv: use txn deadline as MaxTimestampBound for bound staleness reads r=nvanbenschoten a=nvanbenschoten

Fixes #69343.

This commit updates Txn.NegotiateAndSend to respect any prior set transaction
deadline. It does so by applying the deadline to the bounded staleness header's
`MaxTimestampBound`. This is necessary to prevent the bounded staleness read
from choosing a dynamic timestamp that is incoherent with the schema for the
table being read.

Release justification: fix to new functionality

69493: server: make first node and store ID easy to change r=knz a=tbg

This is to enable the (sorry, internal) [runbook] to visualize a copy of the
internal timeseries data of a cluster. While writing the runbook I found some
sharp nails that this PR addresses. Mainly, the running node (n1) on top of
which the timeseries data is imported used to clobber some data for n1. The
interim solution is to start that server with a very high NodeID/StoreID (via
a manual code change & build). This isn't the most user-friendly, but it's
enough to unblock us and besides, the code changes here also constitute a
desirable cleanup.

[runbook]: https://cockroachlabs.atlassian.net/wiki/spaces/TS/pages/2168520776/Exporting+Internal+Timeseries+beta


Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
Co-authored-by: Tobias Grieger <tobias.b.grieger@gmail.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 28, 2021

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 28, 2021

Build succeeded:

@craig craig bot merged commit 8afc07a into cockroachdb:master Aug 28, 2021
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.

3 participants