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

postgresql database use 100% cpu after restart container. #451

Open
ghost opened this issue Dec 21, 2021 · 3 comments
Open

postgresql database use 100% cpu after restart container. #451

ghost opened this issue Dec 21, 2021 · 3 comments

Comments

@ghost
Copy link

ghost commented Dec 21, 2021

my cardano rosetta docker container cause high disk io, after I restart docker container. cardano-node worked well, but /network/status cann't get latest block.

I attach into the container, find postgres use 100% cpu. Querying sql is DELETE FROM "block" WHERE "id"=3160744, which has run for more than 1 hour.

If you need any log file to diagnose, I'm glad to help.

@rhyslbw
Copy link
Collaborator

rhyslbw commented Dec 21, 2021

What is your host machine spec?

@ghost
Copy link
Author

ghost commented Dec 21, 2021

What is your host machine spec?

2 core 8G memory,
usually there will be 4G free memory left.

@AlanVerbner
Copy link
Contributor

@rhyslbw could this be related to db-sync rolling back the data to the previous epoch?

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