Gemini Enterprise Agent Platform で Ray クラスタを削除する

Gemini Enterprise Agent Platform の Ray クラスタでアプリケーションの開発が完了したら、不要な課金を避けるためにクラスタを削除します。

コンソール

  1. コンソールで、[Agent Platform の Ray] ページに移動します。 Google Cloud

    [Ray] ページに移動

  2. 削除する Gemini Enterprise Agent Platform の Ray クラスタを選択します。

  3. [削除] をクリックします。

Agent Platform SDK for Python

Gemini Enterprise Agent Platform の Ray クラスタに接続したときと同じ Python 環境から、次のコマンドを実行します。

# Shut down the Ray on Agent Platform if currently connected
ray.shutdown()

# Delete cluster
vertex_ray.delete_ray_cluster(CLUSTER_RESOURCE_NAME)

ここで

  • CLUSTER_RESOURCE_NAME: CLUSTER_RESOURCE_NAME='projects/{}/locations/{}/persistentResources/{}'.format(PROJECT_ID, LOCATION, CLUSTER_NAME)