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

release-20.2: util/log: stop syncing writes excessively #58996

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

knz
Copy link
Contributor

@knz knz commented Jan 14, 2021

Backport 1/1 commits from #58995.

(Not a clean backport - I had to adapt 50% of the change. But the purpose and end result is the same.)

/cc @cockroachdb/release


Requested by @bdarnell

@knz knz requested a review from a team as a code owner January 14, 2021 14:21
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz knz requested review from bdarnell and itsbilal January 14, 2021 14:21
Release note (cli change): Previously, for certain log files
CockroachDB would both flush individual writes (i.e. propagate them
from within the `cockroach` process to the OS) and also synchronize
writes (i.e. ask the OS to confirm the log data was written to
disk). The per-write synchronization part was unnecessary and, in
fact, found to be possibly detrimental to performance and operating
cost, so it was removed. Meanwhile, the log data continues to be
flushed as previously, and CockroachDB also periodically (every 30s)
request synchronization, also as previously.
@knz knz force-pushed the backport20.2-58995 branch from 6dd938a to 46d6f16 Compare January 19, 2021 16:23
Copy link
Contributor

@itsbilal itsbilal 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 7 of 7 files at r1, 1 of 1 files at r2.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @bdarnell)

@knz knz merged commit f9f3155 into cockroachdb:release-20.2 Jan 19, 2021
@knz knz deleted the backport20.2-58995 branch January 19, 2021 17:03
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