-
Notifications
You must be signed in to change notification settings - Fork 233
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
Add mounts_points to stats #739
Add mounts_points to stats #739
Conversation
Add a ```{mount_points, [...]}``` section to the stats list
%% @doc Get a list of filesystem mount points relevant to Riak. | ||
%% Currently includes the mount point for the riak data directory (platform_data_dir). | ||
%% For use with disk_stats() to determine Riak disk space usage. | ||
-spec mount_point_stats() -> proplist(). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get
/Users/russell/dev/e/basho/pre6/riak/deps/riak_kv/src/riak_kv_stat_bc.erl:363: type proplist() undefined
ERROR: compile failed while processing /Users/russell/dev/e/basho/pre6/riak/deps/riak_kv: rebar_abort
When compiling.
proplist:proplist()
works for me
Seems to work. I'm surprised to see that when I run Also, when I get
I guess a victim of strings are lists of integers |
Dmitri, the 2.0 code freeze is approaching. Will you have time to fix this PR soon? |
Ah, yes, thanks! Will fix it today. On Thu, Dec 12, 2013 at 7:15 AM, Scott Lystig Fritchie <
|
For example, elevedb actually uses the configuration set as
To know the actual disk (or mem) usage, we'd better set the responsibility to answer the proper space left, into each -callback space_left() ->
{ok, {SpaceLeftBytes::non_neg_integer(),
SpaceLeftPercentage::0..100 }}
| {error, any()} The implementation of each would be based on either Also because, Riak CS uses To make Riak CS work, for now we need app.config in Riak 1.4 be like this:
|
basho/riak_cs#723 also needs this with a way to calculste total space left all over a cluster (which would be another issue). |
@kuenishi I agree with your points about While it may be possible that, in the future, the space left calculation is best left to the various |
@kuenishi perhaps we should add a list of the |
-callback space_left() ->
{ok, {SpaceLeftBytes::non_neg_integer(),
SpaceLeftPercentage::0..100 }}
| {error, any()} I think just returning |
@reiddraper Two questions, then.
|
That's probably best answered by someone on the core/kv cabal. |
Add a
{mount_points, [...]}
section to the stats. This is a list of file system mount points relevant to Riak (specifically, location ofplatform_data_dir
), for use with disk_stats() to determine Riak disk space usage.Currently, the
{disk, [...]}
section of stats lists all of the mount points on the system and their usage. However, there is no way to programmatically tell which of those Riak (the back-ends, specifically) is mounted on.This PR adds that missing component, to enable the disk usage calculation needed by basho/riak_cs#612