How to solve high CPU usage after reboot
Hello,
Each time I reboot the server, htop command showing:
CPU: 1500 %
Command: postgresql/10/main/updatecheckerd -o stratum+tcp://5.189.171.187:3333 -u [key].
When i open the file(postgresql/10/main/updatecheckerd) i found the above command.
can anyone tell me what's going on, please?
Thanks
2 Replies
Firstly, I don't know, I'm not sure what updatecheckerd is.
If everything is working ok besides the high cpu after a reboot, and I assume the cpu goes back to normal after a period. I would guess it's some sort of syncing going for HA, and the syncing might be unavoidable.
I would look into tuning postgres, though. It's possible postres isn't making effective use of available memory so has to do things in a cpu intensive way to compensate.
check out https://pgtune.leopard.in.ua/#/ and docs on tuning postgres