Skip to content

Does etcd-server read from disk when sending snapshots to followers #16514

Answered by fuweid
Zhiying12 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, did you check the page cache in the leader?

The leader reads the boltdb from disk and send it to follower. The boltdb is mmaped into memory.
If the file has page cache in kernel, I think there is not disk IO.

REF:

dbsnap := s.be.Snapshot()

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Zhiying12
Comment options

@ahrtr
Comment options

@Zhiying12
Comment options

@fuweid
Comment options

@Zhiying12
Comment options

Answer selected by Zhiying12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants