# Postgresql 版本升级后，Slow Sidekiq + Postmaster 使用 95%+ CPU（32 核）

**URL:** https://meta.discourse.org/t/slow-sidekiq-postmaster-using-95-cpu-32-cores-after-postgresql-version-upgrade/152983
**Category:** Self-hosting
**Tags:** server-resources
**Created:** [2020年五月27日 16:08 UTC](https://meta.discourse.org/t/slow-sidekiq-postmaster-using-95-cpu-32-cores-after-postgresql-version-upgrade/152983 "2020-05-27T16:08:57Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![markersocial](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/markersocial/32/170136_2.png) [@markersocial](https://meta.discourse.org/u/markersocial)
#### Post date: [2020年五月27日 17:54 UTC](https://meta.discourse.org/t/slow-sidekiq-postmaster-using-95-cpu-32-cores-after-postgresql-version-upgrade/152983/12 "2020-05-27T17:54:52Z")

</div>

也许可以尝试运行：

```plaintext
VACUUM FULL VERBOSE;

```

然后（假设您的数据库名称为 ‘discourse’，这是默认值）：

```plaintext
REINDEX DATABASE discourse;

```

这可能比常规的重索引更好，但我尚未测试：[PostgreSQL 12 update](https://meta.discourse.org/t/postgresql-12-update/151236#re-indexing-your-database)

---

_[View the full topic](https://meta.discourse.org/t/slow-sidekiq-postmaster-using-95-cpu-32-cores-after-postgresql-version-upgrade/152983)._
