Jobs::PeriodicalUpdates is the cause of high CPU (over 100%)

I think this is the list of tasks used by this job: discourse/app/jobs/scheduled/periodical_updates.rb at 1472e47aae5bfdfb6fd9abfe89beb186c751f514 · discourse/discourse · GitHub

I’m not an expert to analyse this, I see two settings mentionned

  • automatically download gravatars, I don’t thnink it would explain a high CPU usage
  • rebake_old_posts_count this one is now hidden, but maybe you did set up a lot of old posts to rebake every 15 minutes months ago. It would explain this cpu usage a bit more