このコンテンツは選択した言語では利用できません。

Chapter 3. Performing cross-site operations with the CLI


Use the Data Grid command line interface (CLI) to connect to Data Grid Server clusters, manage clusters, and push state transfer to backup locations.

3.1. Bringing backup locations offline and online

Take backup locations offline manually and bring them back online.

Prerequisites

  • Create a CLI connection to Data Grid.

Procedure

  1. Check if backup locations are online or offline with the site status command:

    site status --cache=<cache-name-here> --site=NYC
    Note

    --site is an optional argument. If not set, the CLI returns all backup locations for that specific cache.

    Tip

    Replace --cache=<cache-name-here> with --all-caches option to get the backup location status for all caches.

  2. Manage backup locations as follows:

    • Bring backup locations online with the bring-online command:

      site bring-online --cache=<cache-name-here> --site=NYC
    • Take backup locations offline with the take-offline command:

      site take-offline --cache=<cache-name-here> --site=NYC
Tip

Replace --cache=<cache-name-here> with --all-caches option to bring a backup location online, or take a backup location offline, for all caches.

For more information and examples, run the help site command.

3.2. Configuring cross-site state transfer modes

You can configure cross-site state transfer operations to happen automatically when Data Grid detects that backup locations come online. Alternatively, you can use the default mode, which is to manually perform state transfer.

Prerequisites

  • Create a CLI connection to Data Grid.

Procedure

  1. Use the site command to configure state transfer modes, as in the following examples:

    • Retrieve the current state transfer mode.

      site state-transfer-mode get --cache=<cache-name-here> --site=NYC
    • Configure automatic state transfer operations for a cache and backup location.

      site state-transfer-mode set --cache=<cache-name-here> --site=NYC --mode=AUTO
Tip

Run the help site command for more information and examples.

3.3. Pushing state to backup locations

Transfer the cache state to backup locations.

Prerequisites

  • Create a CLI connection to Data Grid.

Procedure

  • Use the site push-site-state command to push state transfer, as in the following example:

    site push-site-state --cache=<cache-name-here> --site=NYC
Tip

Replace --cache=<cache-name-here> with --all-caches option to push state transfer for all caches. Pushing the state has an high resource demand, so use this option with caution.

For more information and examples, run the help site command.

Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2026 Red Hat
トップに戻る