Translated message

A translation of this page exists in English.

データベースリソースを消費する大量の Actions::Katello::Host タスクの削除

Solution In Progress - Updated -

Issue

  • Satellite 6 のパフォーマンスが低下しています。
  • ユーザーインターフェイスのアクションが遅いです。
  • 全体的に動作が遅いです。
  • タスクが想定内の時間枠で処理されません。
  • Postgres によるディスク容量の消費量が多いです (/var/lib/pgsql)。

Satellite 6 サーバーの Actions::Katello::Host::* タイプのタスクが 10,000 個を超える場合、Satellite を最適な動作に戻すには、即時削除と自動クリーンアップが必要です。

大部分は、以下の 4 つのタイプで構成されています。

 Actions::Katello::Host::GenerateApplicability
 Actions::Katello::Host::UploadPackageProfile
 Actions::Katello::Host::UploadProfiles  
 Actions::Katello::Host::Update

保存されているホストタスクの数は、簡単なクエリーで確認できます。

#  echo "select count(label) from foreman_tasks_tasks where label like 'Actions::Katello::Host%';" | sudo -u postgres psql -d foreman
could not change directory to "/root"count 
-------
  120346
(1 row)

この数が 10,000 を超えている場合は、停止したタスクを消去することを検討する必要があります。多くの場合、これらのタイプのタスクは、チェックされていない場合は、Satellite データベース内のタスクの 90% 強を構成しています。これらのタスクは小規模であり、通常は関連データを保持しないため、たとえ短時間でも保持すべきではありません。

Environment

Satellite 6.6 以降

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