Will Berkeley has uploaded this change for review. ( http://gerrit.cloudera.org:8080/11639
Change subject: [compaction] KUDU-2056: Expose a metric for how much a tablet needs to be compacted ...................................................................... [compaction] KUDU-2056: Expose a metric for how much a tablet needs to be compacted This adds a new metric 'average_diskrowset_height' that reflects how uncompacted a tablet replica is. This metric is obtained by integrating the height function with respect to the by-data-size probability distribution used by the compaction policy. To implement the integration, I piggy-backed on the function that computes the CDF for the rowset layout, since computing the integral requires computing the CDF and it seemed wasteful to first compute the CDF, then go through an almost entirely similar bit of logic to compute the average height. Change-Id: I98493b901d37bb278167ba2fe98d322a86a1f0f9 --- M src/kudu/tablet/compaction_policy-test.cc M src/kudu/tablet/compaction_policy.cc M src/kudu/tablet/rowset_info.cc M src/kudu/tablet/rowset_info.h M src/kudu/tablet/tablet.cc M src/kudu/tablet/tablet_metrics.cc M src/kudu/tablet/tablet_metrics.h 7 files changed, 284 insertions(+), 53 deletions(-) git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/39/11639/1 -- To view, visit http://gerrit.cloudera.org:8080/11639 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I98493b901d37bb278167ba2fe98d322a86a1f0f9 Gerrit-Change-Number: 11639 Gerrit-PatchSet: 1 Gerrit-Owner: Will Berkeley <[email protected]>
