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

document the support for writing the wal and snapshots on separate disks #2442

Closed
kelseyhightower opened this issue Mar 5, 2015 · 6 comments
Assignees
Milestone

Comments

@kelseyhightower
Copy link
Contributor

etcd supports writing the write ahead log and snapshots in different directories, the database administrator can optimize log compaction (snapshotting) by using separate disks for the log (wal) and the snapshot.

This is easy to do in the places we need it most. While a single SSD can be costly in the cloud, multiple disks (non-SSD) are relatively inexpensive.

@xiang90
Copy link
Contributor

xiang90 commented Mar 5, 2015

This is not only a doc issue. etcd needs to support snap-dir and wal-dir separately.

@kelseyhightower
Copy link
Contributor Author

@xiang90 I think the snapshots are in a different director under the data dir

So we can mount

/var/lib/etcd
/var/lib/etcd/snapshot

@xiang90
Copy link
Contributor

xiang90 commented Mar 5, 2015

@kelseyhightower Oh, right. You can do that without the support from etcd.

@xiang90 xiang90 added this to the v2.2.0 milestone Aug 25, 2015
@xiang90 xiang90 self-assigned this Aug 27, 2015
@xiang90
Copy link
Contributor

xiang90 commented Aug 28, 2015

@kelseyhightower After thinking this more, I found it would be hard for people to mount.

They have to understand the data dir layout of etcd and create all the dirs before initialize etcd.

/cc @philips Any opinion on this one?

@philips
Copy link
Contributor

philips commented Aug 30, 2015

I would rather we have explicit flags/environment variables for each dir instead of having the user poke around and assume things about the etcd data layout.

@adohe-zz
Copy link

@xiang90 @philips I totally agree with philips, we should have explicit flags/environment for each dir, have default value for each dir, and document it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants