Clair's PostgreSQL instance has 100% CPU usage

Solution Verified - Updated -

Issue

The PostgreSQL instance has been at 100% CPU usage since TRUNCATE commands were used to clean up space in a high sized table, which was not correctly garbage collected:

postgres=# TRUNCATE TABLE uo_vuln, uo_enrich, update_operation;

Environment

  • Quay 3.6.2
  • Clair 4.3.5
  • External PostgreSQL database

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content