Yifan Zhang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/16319


Change subject: KUDU-3180: prioritize larger mem-stores in time-based flusing
......................................................................

KUDU-3180: prioritize larger mem-stores in time-based flusing

Current time-based flush policy will always pick a mem-store
that haven't been flushed in a long time instead of a mem-store
anchoring more memory, this may lead to:
- more memory used by mem-stores.
- more small rowsets on disk so we need to do more compaction.

This patch improve current flush policy by considering both
mem-stores' size and time since last flush. When a mem-store
become large or old enough, it will be more likely to flush,
then we can avoid anchoring large (but below the threshold)
mem-stores or WALs for too long.

Change-Id: I0a826643709a4990e40b0a49f89f4ea34f14163b
---
M src/kudu/tablet/tablet_replica-test.cc
M src/kudu/tablet/tablet_replica_mm_ops.cc
2 files changed, 36 insertions(+), 27 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/19/16319/1
--
To view, visit http://gerrit.cloudera.org:8080/16319
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I0a826643709a4990e40b0a49f89f4ea34f14163b
Gerrit-Change-Number: 16319
Gerrit-PatchSet: 1
Gerrit-Owner: Yifan Zhang <[email protected]>

Reply via email to