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

cluster: display memory usage #1994

Merged
merged 4 commits into from
Sep 22, 2022
Merged

cluster: display memory usage #1994

merged 4 commits into from
Sep 22, 2022

Conversation

nexustar
Copy link
Collaborator

@nexustar nexustar commented Jul 22, 2022

What problem does this PR solve?

What is changed and how it works?

  • add --process flag to display subcommand to show memorg usage and quota

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Code changes

  • Has exported function/method change
  • Has exported variable/fields change
  • Has interface methods change
  • Has persistent data change

Side effects

  • Possible performance regression
  • Increased code complexity
  • Breaking backward compatibility

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Release notes:

NONE

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jul 22, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • AstroProfundis

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 22, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 22, 2022

Codecov Report

Base: 23.47% // Head: 49.88% // Increases project coverage by +26.41% 🎉

Coverage data is based on head (5a51a83) compared to base (7e0cd81).
Patch coverage: 68.57% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #1994       +/-   ##
===========================================
+ Coverage   23.47%   49.88%   +26.41%     
===========================================
  Files         285      309       +24     
  Lines       33266    36233     +2967     
===========================================
+ Hits         7808    18073    +10265     
+ Misses      24588    16111     -8477     
- Partials      870     2049     +1179     
Flag Coverage Δ
cluster 41.43% <67.69%> (?)
dm 23.87% <40.35%> (?)
playground 12.99% <0.00%> (?)
tiup ?
unittest 20.57% <9.09%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/cluster/operation/action.go 66.04% <ø> (ø)
pkg/cluster/operation/check.go 47.42% <0.00%> (ø)
pkg/cluster/operation/operation.go 80.65% <ø> (ø)
pkg/cluster/manager/display.go 50.26% <61.76%> (+48.51%) ⬆️
components/cluster/command/display.go 44.29% <69.23%> (+15.30%) ⬆️
pkg/cluster/operation/systemd.go 73.91% <78.57%> (ø)
components/dm/command/display.go 46.67% <80.00%> (+11.11%) ⬆️
pkg/cluster/spec/instance.go 65.67% <100.00%> (+47.64%) ⬆️
pkg/cluster/task/action.go 75.86% <100.00%> (+75.86%) ⬆️
main.go 0.00% <0.00%> (-100.00%) ⬇️
... and 254 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nexustar nexustar added this to the v1.11.0 milestone Aug 10, 2022
@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 26, 2022
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 22, 2022
@nexustar
Copy link
Collaborator Author

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 8b0dd4f

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 22, 2022
@nexustar
Copy link
Collaborator Author

/merge

@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 22, 2022
@ti-chi-bot ti-chi-bot merged commit c294184 into pingcap:master Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/L Denotes a PR that changes 100-499 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants