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

[Bug] CPU Spike and Extended Duration in BanyanDB's etcd Watching Registration Process #11972

Closed
2 of 3 tasks
hanahmily opened this issue Mar 4, 2024 · 0 comments · Fixed by apache/skywalking-banyandb#413
Closed
2 of 3 tasks
Assignees
Labels
bug Something isn't working and you are sure it's a bug! database BanyanDB - SkyWalking native database

Comments

@hanahmily
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar issues.

Apache SkyWalking Component

BanyanDB (apache/skywalking-banyandb)

What happened

During the etcd watching registration process in BanyanDB, I've noticed that the process takes longer than expected. Additionally, there is a significant CPU spike during this process.

{"level":"info","module":"ETCD","name":"measure","kind":"group","time":"2024-03-03T23:53:17Z","message":"registering watcher"}                               │
│ {"level":"info","module":"ETCD","name":"measure","kind":"measure","time":"2024-03-03T23:53:17Z","message":"registering watcher"}                             │
│ {"level":"info","module":"ETCD","name":"measure","kind":"indexRuleBinding","time":"2024-03-03T23:53:32Z","message":"registering watcher"}                    │
│ {"level":"info","module":"ETCD","name":"measure","kind":"indexRule","time":"2024-03-03T23:53:43Z","message":"registering watcher"}                           │
│ {"level":"info","module":"ETCD","name":"measure","kind":"topNAggregation","time":"2024-03-03T23:53:54Z","message":"registering watcher"}                     │
│ {"level":"info","module":"ETCD","name":"stream","kind":"group","time":"2024-03-03T23:53:54Z","message":"registering watcher"}                                │
│ {"level":"info","module":"ETCD","name":"stream","kind":"stream","time":"2024-03-03T23:53:54Z","message":"registering watcher"}                               │
│ {"level":"info","module":"ETCD","name":"stream","kind":"indexRuleBinding","time":"2024-03-03T23:53:54Z","message":"registering watcher"}                     │
│ {"level":"info","module":"ETCD","name":"stream","kind":"indexRule","time":"2024-03-03T23:53:54Z","message":"registering watcher"}                            │
│ {"level":"info","module":"ETCD","name":"liaison","kind":"group","time":"2024-03-03T23:53:54Z","message":"registering watcher"}                               │
│ {"level":"info","module":"ETCD","name":"liaison","kind":"stream","time":"2024-03-03T23:53:54Z","message":"registering watcher"}                              │
│ {"level":"info","module":"ETCD","name":"liaison","kind":"group","time":"2024-03-03T23:53:54Z","message":"registering watcher"}                               │
│ {"level":"info","module":"ETCD","name":"liaison","kind":"measure","time":"2024-03-03T23:53:54Z","message":"registering watcher"} 

What you expected to happen

The etcd watching registration process should be completed in a reasonable amount of time without causing a CPU spike.

How to reproduce

  1. Using OAP to create schema in BanyanDB, don't have to insert any data to DB.
  2. Restart BanyanDB.
  3. Monitor the CPU usage and etcd watching registration process duration

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@hanahmily hanahmily added the bug Something isn't working and you are sure it's a bug! label Mar 4, 2024
@hanahmily hanahmily added this to the BanyanDB - 0.6.0 milestone Mar 4, 2024
@hanahmily hanahmily self-assigned this Mar 4, 2024
@wu-sheng wu-sheng added the database BanyanDB - SkyWalking native database label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working and you are sure it's a bug! database BanyanDB - SkyWalking native database
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants