Vertex AI에서 Ray 클러스터 삭제

Vertex AI 클러스터의 Ray에서 애플리케이션 개발을 마쳤으면 불필요한 비용 청구를 방지하기 위해 클러스터를 삭제합니다.

콘솔

  1. Google Cloud 콘솔에서 Vertex AI의 Ray 페이지로 이동합니다.

    Ray 페이지로 이동

  2. 삭제하려는 Vertex AI 클러스터의 Ray를 선택합니다.

  3. 삭제를 클릭합니다.

Python용 Vertex AI SDK

Vertex AI 클러스터의 Ray에 연결한 같은 Python 환경에서 다음을 실행합니다.

# Shut down the Ray on Vertex AI 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, REGION, CLUSTER_NAME).