cardano-rosetta icon indicating copy to clipboard operation
cardano-rosetta copied to clipboard

postgresql database use 100% cpu after restart container.

Open ghost opened this issue 3 years ago • 3 comments

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.

ghost avatar Dec 21 '21 08:12 ghost

What is your host machine spec?

rhyslbw avatar Dec 21 '21 11:12 rhyslbw

What is your host machine spec?

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

ghost avatar Dec 21 '21 15:12 ghost

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

AlanVerbner avatar Feb 11 '22 11:02 AlanVerbner