Skip to content
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

chore: Enable retrieve disk status of store node from client #3274

Merged
merged 8 commits into from
Oct 9, 2023

Conversation

siyuan0322
Copy link
Collaborator

Add a interface get_store_state() in Connection class that could get the disk status.

>>> conn = gs.conn(grpc_endpoint, gremlin_endpoint)
>>> conn.get_store_state()
{2: totalSpace: 528311816192
usableSpace: 37503909888
, 0: totalSpace: 528311816192
usableSpace: 37503909888
, 1: totalSpace: 528311816192
usableSpace: 37503909888
, 3: totalSpace: 528311816192
usableSpace: 37503909888
}

lidongze0629
lidongze0629 previously approved these changes Oct 8, 2023
@siyuan0322 siyuan0322 changed the title Enable retrieve disk status of store node from client chore: Enable retrieve disk status of store node from client Oct 8, 2023
Committed-by: siyuanzhang.zsy from Dev container
Committed-by: siyuanzhang.zsy from Dev container
Committed-by: siyuanzhang.zsy from Dev container
Committed-by: siyuanzhang.zsy from Dev container

Committed-by: siyuanzhang.zsy from Dev container
Committed-by: siyuanzhang.zsy from Dev container

Committed-by: siyuanzhang.zsy from Dev container
Committed-by: siyuanzhang.zsy from Dev container
Committed-by: siyuanzhang.zsy from Dev container

Committed-by: siyuanzhang.zsy from Dev container

Committed-by: siyuanzhang.zsy from Dev container
@codecov-commenter
Copy link

Codecov Report

Merging #3274 (56449eb) into main (7314f8c) will increase coverage by 24.10%.
Report is 6 commits behind head on main.
The diff coverage is 25.92%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #3274       +/-   ##
===========================================
+ Coverage   42.06%   66.17%   +24.10%     
===========================================
  Files         101      101               
  Lines       10987    11013       +26     
===========================================
+ Hits         4622     7288     +2666     
+ Misses       6365     3725     -2640     
Files Coverage Δ
python/graphscope/__init__.py 83.33% <100.00%> (+0.47%) ⬆️
python/graphscope/client/rpc.py 71.01% <50.00%> (-2.71%) ⬇️
python/graphscope/client/connection.py 38.59% <42.85%> (+0.27%) ⬆️
python/graphscope/client/session.py 66.72% <11.76%> (+0.46%) ⬆️

... and 65 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 22eb24e...56449eb. Read the comment docs.

@siyuan0322 siyuan0322 merged commit 314fe42 into alibaba:main Oct 9, 2023
28 of 31 checks passed
@siyuan0322 siyuan0322 deleted the zsy/disk-status branch October 9, 2023 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants