-
-
Notifications
You must be signed in to change notification settings - Fork 630
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
Extremely slow periodic database operation #98
Comments
I have tested in another faster server, and this periodic stats gathering is running for hours with no way to know when it will finish (it's still in the first table), and it will run again tomorrow since the period is roughly 24h. My understanding is this is used only to provide info about the db columns for the internal api (*:9030)? If so, this is extremely wasteful and the user couldn't care less, so please, could you stop doing it? 😃 I'd suggest an extra startup param |
Sure, it makes sense to add the parameter that controls the stats collection. However, the parameter will specify the period of stats collection in hours with default of 24. If you set it to 0, the stats will not be collected. Also, it is surprising to me that the stats collection is killing your server as it is done only in a single thread. We run multiple instances of Blockbook on our servers and do not notice it at all. |
Thanks for the quick fix! |
I noticed blockbook will run an extremely IO intensive function periodically:
This is causing all the IO of my server to be taken, rendering all other processes unresponsive.
What is the reason for this? Is this operation just for statistics purpose, can it be made optional?
The text was updated successfully, but these errors were encountered: