コンテンツのステージング

ステージングは、クライアントがインストール前にパッケージを事前にダウンロードするために使用されます。 これにより、パッケージのインストールをスケジュールされたらすぐに開始できるため、メンテナンスウィンドウに必要な時間を短縮できます。

1. コンテンツステージングの有効化

You can manage content staging across your entire organization. In the SUSE Multi-Linux Manager Web UI, navigate to Admin  Organizations to see a list of available organizations. Click the name of an organization, and check the Enable Staging Contents box to allow clients in this organization to stage package data.

組織を作成および管理するには、SUSE Multi-Linux Manager管理者としてログインする必要があります。

You can also enable staging at the command prompt by editing /etc/sysconfig/rhn/up2date, and adding or editing these lines:

stagingContent=1
stagingContentWindow=24

The stagingContentWindow parameter is a time value expressed in hours and determines when downloading starts. It is the number of hours before the scheduled installation or update time. In this example, content is downloaded 24 hours before the installation time. The start time for download depends on the selected contact method for a system.

次回、アクションがスケジュールされると、パッケージは自動的にダウンロードされますが、インストールはされません。 スケジュールされた時間に、ステージングされたパッケージがインストールされます。

2. コンテンツステージングの設定

コンテンツステージングを設定するために使用される次の2つのパラメータがあります。

  • salt_content_staging_advance is the advance time for the content staging window to open, in hours. これは、インストールが開始されるまでの時間数で、この時間に達するとパッケージのダウンロードを開始できます。

  • salt_content_staging_window is the duration of the content staging window, in hours. これは、インストールが開始されるまでにクライアントがパッケージをステージングする必要がある時間数です。

For example, if salt_content_staging_advance is set to six hours, and salt_content_staging_window is set to two hours, the staging window opens six hours before the installation time, and remain open for two hours. No packages are downloaded in the four remaining hours until installation starts.

If you set the same value for both salt_content_staging_advance and salt_content_staging_window packages are able to be downloaded until installation begins.

Configure the content staging parameters in /usr/share/rhn/config-defaults/rhn_java.conf.

デフォルト値:

  • salt_content_staging_advance: 8 hours

  • salt_content_staging_window: 8 hours

これらのパラメータを正しく機能させるには、コンテンツステージングを有効にする必要があります。