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

rfc: system.region_liveness #107966

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

jeffswenson
Copy link
Collaborator

Create draft RFC for the system.region_liveness table.

Informs: CC-24173
Release note: none

@jeffswenson jeffswenson requested review from fqazi and a team August 1, 2023 18:46
@jeffswenson jeffswenson requested a review from a team as a code owner August 1, 2023 18:46
@cockroach-teamcity
Copy link
Member

This change is Reviewable

docs/RFCS/20230731_region_liveness.md Outdated Show resolved Hide resolved
docs/RFCS/20230731_region_liveness.md Show resolved Hide resolved
within 15 seconds, `unavailalbe_at` is set to start the process of fencing out
the region.

15 seconds is chosen because it gives enough time for leases to transfer in the
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there any setting this number is based on?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think the value we care about here is COCKROACH_RANGE_LEASE_DURATION.

defaultRangeLeaseDuration = envutil.EnvOrDefaultDuration(
.

But the sql server's may not have the kv server's configuration for that value.

@fqazi
Copy link
Collaborator

fqazi commented Aug 1, 2023

Just my initial pass, I'll take another deeper look tomorrow

docs/RFCS/20230731_region_liveness.md Show resolved Hide resolved
docs/RFCS/20230731_region_liveness.md Outdated Show resolved Hide resolved
docs/RFCS/20230731_region_liveness.md Outdated Show resolved Hide resolved
Create draft RFC for the `system.region_liveness` table.

Informs: CC-24173
Release note: none
@jeffswenson jeffswenson force-pushed the jeffswenson-region-liveness branch from 263a6ab to 4068ff2 Compare August 16, 2023 14:25
@jeffswenson
Copy link
Collaborator Author

TYFT the reviews 😄 I replied to all of your comments and adjusted the RFC based on your feedback.

Copy link
Contributor

@chrisseto chrisseto left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@fqazi fqazi left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @chrisseto and @jeffswenson)

@jeffswenson
Copy link
Collaborator Author

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 18, 2023

Build succeeded:

@craig craig bot merged commit 2623b60 into cockroachdb:master Sep 18, 2023
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