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

subscan observer exhausts MySQL resources #108

Open
armorsun opened this issue Mar 10, 2021 · 3 comments
Open

subscan observer exhausts MySQL resources #108

armorsun opened this issue Mar 10, 2021 · 3 comments

Comments

@armorsun
Copy link

armorsun commented Mar 10, 2021

Hi I use the docker-compose method to start the Subscan-observer and Subscan-api, they work fine until synced about 2000000 blocks. After synced about 2000000 blocks, the MySQL container started to consume a lot of CPU resources
(100%) and I observed that the MySQL connections exceed 2000. After stopped the Subscan-observer, the MySQL container became normal.

Is the 2000 connections to MySQL normal? Is there a recommendation hardware requirement for the MySQL?

@freehere107
Copy link
Collaborator

@armorsun Thank you reply, we have not encountered this problem. you can use MySQL console when CPU 100 ,

show processlis maybe can find some issue

@armorsun
Copy link
Author

Currently I am using an instance with 20 core CPU and the CPU utilization is about 95%. The attached image is the result of show processlist

Screen Shot 2021-03-12 at 16 37 19

@freehere107
Copy link
Collaborator

@armorsun hello, I haven't had a similar situation, have you run it recently?

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

No branches or pull requests

2 participants