호스트 유지보수 이벤트는 일반적으로 2주에 한 번 발생하지만 더 자주 실행될 수 있습니다.
이 문서에서는 유지보수 이벤트 중 워크로드 중단을 최소화하는 방법을 설명합니다.
유지보수 이벤트 전에 사전 알림 수신
가상 머신(VM) 인스턴스의 유지보수 일정을 모니터링하고 시스템 재시작을 통해 워크로드가 전환되도록 준비할 수 있습니다.
호스트 이벤트에 대한 사전 알림을 받으려면 /computeMetadata/v1/instance/maintenance-event 메타데이터 값을 모니터링합니다.
메타데이터 서버 요청으로 NONE이 반환되면 VM이 중지되도록 예약되지 않은 것입니다. 예를 들어 VM 내에서 다음 명령어를 실행합니다.
메타데이터 서버가 TERMINATE_ON_HOST_MAINTENANCE를 반환하면 VM이 중지되도록 예약된 것입니다. Compute Engine에서는 GPU VM에 1시간 전에 알림을 전송하지만 일반적인 VM의 경우에는 중지 60초 전에 알림을 전송합니다. 애플리케이션이 유지보수 이벤트 중에 전환되도록 구성합니다. 예를 들어 다음 방법 중 하나를 사용할 수 있습니다.
진행 중인 작업을 Cloud Storage 버킷으로 임시 이전한 후 VM이 다시 시작된 후에 해당 데이터를 검색하도록 애플리케이션을 구성합니다.
보조 영구 디스크에 데이터를 씁니다.
VM이 자동으로 다시 시작되면 영구 디스크를 다시 연결할 수 있으며 애플리케이션이 작업을 다시 시작할 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-03-06(UTC)"],[[["VMs with attached GPUs must be stopped during Compute Engine maintenance events because they cannot be live migrated."],["You must configure these GPU-attached VMs to stop for host maintenance events, with the option to automatically restart afterward."],["Data on Local SSD disks attached to GPU VMs is unrecoverable if the VM is restarted during a host maintenance event."],["You can monitor the `/computeMetadata/v1/instance/maintenance-event` metadata value to receive advance notice of host maintenance events, with GPU VMs receiving a 1-hour notice to prepare for shutdown."],["To minimize disruptions, you can temporarily move in-progress work to Cloud Storage or write data to a secondary Persistent Disk, ensuring it is retrievable after the VM restarts."]]],[]]