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

*: add the scheduling configuration metrics #1406

Merged
merged 1 commit into from
Jan 7, 2019

Conversation

rleungx
Copy link
Member

@rleungx rleungx commented Jan 3, 2019

What problem does this PR solve?

For now, we can only find the parameters of the configuration through the log, which is not friendly.

What is changed and how it works?

This PR adds some important configurations into metrics.

Check List

  • Need to update the documentation
  • Need to update the tidb-ansible repository

Signed-off-by: rleungx <rleungx@gmail.com>
@rleungx rleungx added the component/metrics Metrics. label Jan 3, 2019
@rleungx rleungx requested a review from nolouch January 3, 2019 10:01
disableReplaceOfflineReplica = 1
}

configs["disable_makeup_replica"] = disableMakeUpReplica
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just do configs["disable_makeup_replica"] = !s.opt.IsMakeUpReplicaEnabled()?

Copy link
Member Author

@rleungx rleungx Jan 3, 2019

Choose a reason for hiding this comment

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

It seems we can not convert bool to float64 here.

Copy link
Contributor

@huachaohuang huachaohuang left a comment

Choose a reason for hiding this comment

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

LGTM

@huachaohuang huachaohuang merged commit 4bb9b96 into tikv:master Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants