Skip to content

Add metrics for thread cpu consumption#9833

Merged
OneSizeFitsQuorum merged 35 commits intomasterfrom
cpu-monitor
May 31, 2023
Merged

Add metrics for thread cpu consumption#9833
OneSizeFitsQuorum merged 35 commits intomasterfrom
cpu-monitor

Conversation

@THUMarkLau
Copy link
Contributor

@THUMarkLau THUMarkLau commented May 12, 2023

Dashboard

The dashboard contains serveral panel, including thread pool cpu usage percentage, module cpu usage percentage, thread pool user mode(vs kernel mode) percentage, module user mode percentage, thread pool core size, thread pool active thread count, thread pool done task count, thread pool waiting task count.

image
image
image
image

Performance issue

I have done performance comparsion between this branch and master branch(commit: 1392e03) using IoT Benchmark in the same environment(8C 32G 5TB HDD) in standalone mode. I changed the default pull period for Prometheus from 15 seconds to 10 seconds in order to make the performance issues as obvious as possible. The result is shown as follow:

master branch

bcba9d27ec2104f3ca04ed343273e85 6326602fd4585c15ede97f71e117996

cpu-metrics

1b9b5e8a5eab027ad2f757a73764b5c 951b7968c42168ff943c4eb53ea5ca0

Conclusion

There is nearly no effect on write throughput and query ops of the system.

@THUMarkLau THUMarkLau marked this pull request as draft May 13, 2023 10:23
@THUMarkLau THUMarkLau marked this pull request as ready for review May 25, 2023 09:12
Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

PTAL

Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

Awesome Work!I have left some issues, PTAL~

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
8.8% 8.8% Duplication

Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

LGTM

@OneSizeFitsQuorum OneSizeFitsQuorum merged commit 9967d8b into master May 31, 2023
@OneSizeFitsQuorum OneSizeFitsQuorum deleted the cpu-monitor branch May 31, 2023 13:34
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.

2 participants