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

SDSTOR-12187 : PartitionUtilization Endpoint #271

Merged
merged 1 commit into from
Jan 8, 2024
Merged

SDSTOR-12187 : PartitionUtilization Endpoint #271

merged 1 commit into from
Jan 8, 2024

Conversation

shosseinimotlagh
Copy link
Contributor

@shosseinimotlagh shosseinimotlagh commented Jan 8, 2024

Expose PartitionUtilization as volume used size divided by AM total size

Testing:

in one terminal, run
bin/test_volume --gtest_filter=VolTest.init_io_test --remove_file_on_shutdown=1 --delete_volume=1 --run_time=10000 --http_port=5000 --max_volume=1 --p_volume_size=100 --max_disk_capacity=1

in another terminal, run the below command to get the volume uuid:
nublox-tools/AM/hs_http_cli_tool.py get_object --name test_files/vol0

run the below API command:
curl http://localhost:5000/api/v1/utilization/[volumeUUID]

@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2024

Codecov Report

Attention: 16 lines in your changes are missing coverage. Please review.

Comparison is base (6dc0544) 45.07% compared to head (821f897) 45.31%.

Files Patch % Lines
src/homeblks/homeblks_http_server.cpp 12.50% 14 Missing ⚠️
src/homeblks/home_blks.cpp 0.00% 2 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@               Coverage Diff               @@
##           stable/v3.x     #271      +/-   ##
===============================================
+ Coverage        45.07%   45.31%   +0.23%     
===============================================
  Files              134      126       -8     
  Lines            17197    16376     -821     
  Branches          2059     1944     -115     
===============================================
- Hits              7752     7421     -331     
+ Misses            8724     8254     -470     
+ Partials           721      701      -20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

src/homeblks/home_blks.cpp Outdated Show resolved Hide resolved
src/api/vol_interface.hpp Outdated Show resolved Hide resolved
Expose volume used size divided by AM total size
Copy link
Contributor

@raakella1 raakella1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG!

@shosseinimotlagh shosseinimotlagh merged commit e0712d5 into eBay:stable/v3.x Jan 8, 2024
16 checks passed
@shosseinimotlagh shosseinimotlagh deleted the SDSTOR-12187 branch January 9, 2024 19:32
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.

4 participants