Abhishek Chennaka has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/17725


Change subject: KUDU-3204: Add a metric for amount of available space
......................................................................

KUDU-3204: Add a metric for amount of available space

This commit adds two metrics to server entity.
wal_dir_space_available_bytes - Exposes the free space available in the
wal directory
data_dirs_space_available_bytes - Exposes the sum of free space in each
of the data directories.

We ensure the reserved space is being accounted for. This is specified by
the flags fs_data_dirs_reserved_bytes and fs_wal_dir_reserved_bytes in
data directories and wal directories respectively. For calculating the
total free space in data directories, we ensure we are not counting the
same device/filesystem twice by getting and checking for uniqueness
of the filesystemID of each of the data directories before summing it up.

Change-Id: I58a7419847d080498aaf431d1dab098e1af71ad0
---
M src/kudu/server/CMakeLists.txt
M src/kudu/server/server_base.cc
M src/kudu/util/env.h
M src/kudu/util/env_posix.cc
4 files changed, 50 insertions(+), 1 deletion(-)



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I58a7419847d080498aaf431d1dab098e1af71ad0
Gerrit-Change-Number: 17725
Gerrit-PatchSet: 1
Gerrit-Owner: Abhishek Chennaka <[email protected]>

Reply via email to