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

Automated cherry pick of #11946 #11977

Conversation

jpbetz
Copy link
Contributor

@jpbetz jpbetz commented Jun 5, 2020

Cherry pick of #11946 on release-3.4.

#11946: etcdserver, et al: add --unsafe-no-fsync flag

While the policy is usually to NOT backport features to stable branches, I think we should consider making an exception for this given that (a) it is intended to be used in test and (b) it has a lot of promise to speed up tests significantly. If this makes a noticeable dent in k8s test times, and I think it might, it could really help the project.

cc @gyuho @jingyih @dims

This makes it possible to run an etcd node for testing and development
without placing lots of load on the file system.

Fixes etcd-io#11930.

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
@jpbetz jpbetz force-pushed the automated-cherry-pick-of-#11946-release-3.4 branch from 2d89bec to 78f6798 Compare June 5, 2020 03:21
@dims
Copy link
Contributor

dims commented Jun 5, 2020

w00t! thanks @jpbetz

@@ -258,6 +258,7 @@ func newConfig() *config {
fs.IntVar(&cfg.ec.ExperimentalCompactionBatchLimit, "experimental-compaction-batch-limit", cfg.ec.ExperimentalCompactionBatchLimit, "Sets the maximum revisions deleted in each compaction batch.")

// unsafe
fs.BoolVar(&cfg.ec.UnsafeNoFsync, "unsafe-no-fsync", false, "Disables fsync, unsafe, will cause data loss.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we please mark it as hidden flag?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like it already is, although I'm not sure that is what we had intended for master:

etcd/etcdmain/help.go

Lines 26 to 31 in 49f91d6

usageline = `Usage:
etcd [flags]
Start an etcd server.
etcd --version

... no unsafe-no-fsync section

Copy link
Contributor

Choose a reason for hiding this comment

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

excellent. thanks @jpbetz

@gyuho gyuho merged commit 91b1a91 into etcd-io:release-3.4 Jun 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants