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: check add CPU frequency check output #1663

Merged
merged 3 commits into from
Dec 13, 2021

Conversation

srstack
Copy link
Collaborator

@srstack srstack commented Dec 10, 2021

What problem does this PR solve?

close #1636

Currently tiup cluster check does not support checking io scheduler settings, please submit a new issue to support him.
The problem of cpufreq check result output will be completed in this issue.

What is changed and how it works?

add CPU frequency check output

# Physical server
192.168.1.1  cpu-governor  Pass    CPU frequency governor is performance

# VM or Cloud Host
192.168.1.1  cpu-governor  Warn    Unable to determine current CPU frequency governor policy

# Fail
192.168.1.1  cpu-governor  Fail       CPU frequency governor is powersave, should use performance

Check List

Tests

  • Manual test (add detailed scripts or steps below)
./tiup-cluster check ~/topology.yaml

test with VM
image

Code changes

  • Has exported function/method change

Side effects

Related changes

Release notes:

NONE

@srstack srstack self-assigned this Dec 10, 2021
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Dec 10, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • nexustar

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/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Dec 10, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 10, 2021

Codecov Report

Merging #1663 (ca34485) into master (b01e507) will increase coverage by 34.36%.
The diff coverage is 21.42%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1663       +/-   ##
===========================================
+ Coverage   15.77%   50.13%   +34.36%     
===========================================
  Files         152      296      +144     
  Lines       15261    27235    +11974     
===========================================
+ Hits         2407    13655    +11248     
+ Misses      12337    11510      -827     
- Partials      517     2070     +1553     
Flag Coverage Δ
cluster 43.22% <21.42%> (?)
dm 26.31% <0.00%> (?)
integrate 50.13% <21.42%> (+34.36%) ⬆️
playground 13.47% <ø> (?)
tiup 15.77% <ø> (ø)
unittest ∅ <ø> (∅)

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

Impacted Files Coverage Δ
pkg/cluster/operation/check.go 48.61% <21.42%> (ø)
pkg/cluster/ansible/inventory.go 0.00% <0.00%> (ø)
pkg/cluster/task/download.go 81.81% <0.00%> (ø)
components/playground/instance/tidb.go 84.61% <0.00%> (ø)
components/dm/command/edit_config.go 83.33% <0.00%> (ø)
components/cluster/command/prune.go 84.61% <0.00%> (ø)
pkg/base52/base52.go 87.50% <0.00%> (ø)
pkg/cluster/manager/reload.go 70.93% <0.00%> (ø)
components/playground/instance/process.go 84.90% <0.00%> (ø)
components/dm/command/enable.go 71.42% <0.00%> (ø)
... and 238 more

Continue to review full report at Codecov.

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

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Dec 10, 2021
@AstroProfundis AstroProfundis added this to the v1.8.1 milestone Dec 13, 2021
@AstroProfundis
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

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

Commit hash: ca34485

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Dec 13, 2021
@ti-chi-bot ti-chi-bot merged commit 3f0c568 into pingcap:master Dec 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 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.

The tiup cluster check command is added to print the results of the check for cpufreq module and I/O scheduler
5 participants