mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
apologize profusely about locking on windows
This commit is contained in:
parent
9f84be81a2
commit
a5923e5b00
@ -33,10 +33,12 @@ To start etcd automatically using custom settings at startup in Linux, using a [
|
||||
##### -max-snapshots
|
||||
+ Maximum number of snapshot files to retain (0 is unlimited)
|
||||
+ default: 5
|
||||
+ The default for users on Windows is unlimited, and manual purging down to 5 (or your preference for safety) is recommended.
|
||||
|
||||
##### -max-wals
|
||||
+ Maximum number of wal files to retain (0 is unlimited)
|
||||
+ default: 5
|
||||
+ The default for users on Windows is unlimited, and manual purging down to 5 (or your preference for safety) is recommended.
|
||||
|
||||
##### -cors
|
||||
+ Comma-separated white list of origins for CORS (cross-origin resource sharing).
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
package etcdmain
|
||||
|
||||
// TODO(barakmich): So because file locking on Windows is untested, the
|
||||
// temporary fix is to default to unlimited snapshots and WAL files, with manual
|
||||
// removal. Perhaps not the most elegant solution, but it's at least safe and
|
||||
// we'd totally love a PR to fix the story around locking.
|
||||
const (
|
||||
defaultMaxSnapshots = 0
|
||||
defaultMaxWALs = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user