컴퓨팅 인스턴스는 수명 주기에 따라 여러 상태로 전환될 수 있습니다. 인스턴스를 만들 때 Compute Engine은 인스턴스를 시작할 리소스를 프로비저닝합니다. 이후 인스턴스가 스테이징으로 이동하여 첫 부팅을 준비합니다. 인스턴스가 시작되면 실행 중인 것으로 간주됩니다. 실행 중인 인스턴스는 삭제될 때까지 반복적으로 중지 및 재시작 또는 일시중지 및 재개를 반복할 수 있습니다.
다음 다이어그램은 Compute Engine가 인스턴스에 설정할 수 있는 다양한 상태를 보여줍니다.
앞의 다이어그램에 표시된 상태는 다음과 같습니다.
PROVISIONING: 인스턴스의 첫 번째 단계에서 Compute Engine이 인스턴스에 리소스를 할당합니다.
STAGING: Compute Engine에서 다음 중 한 가지 이유로 첫 부팅을 위해 인스턴스를 준비하고 있습니다.
Compute Engine에서 여전히 인스턴스를 만들고 구성하는 중입니다.
사용자 또는 예약된 작업에서 인스턴스 재시작 또는 재개를 요청했습니다.
이 상태에서는 인스턴스가 아직 실행되고 있지 않습니다.
RUNNING: Compute Engine에서 인스턴스를 부팅 중이거나 인스턴스가 실행 중입니다. 이 상태에서 인스턴스를 중지, 일시중지 또는 삭제할 수 있습니다. 또한 Compute Engine은 예약된 작업을 위해 인스턴스를 중지하거나 삭제하거나, 인스턴스가 관리형 인스턴스 그룹(MIG)의 일부이고 하드웨어 오류가 발생한 경우 인스턴스를 복구할 수 있습니다.
PENDING_STOP: 인스턴스가 단계적으로 종료되고 있습니다. 이 종료 프로세스는 단계적 종료를 사용 설정하고 인스턴스 중지 또는 삭제를 요청했거나 Compute Engine에서 예약된 중지 또는 삭제를 위해 자동으로 종료하는 경우에만 발생합니다. 다음 중 하나가 발생하면 인스턴스 상태가 STOPPING으로 변경됩니다.
단계적 종료를 수동으로 종료합니다.
단계적 종료 기간이 타임아웃됩니다. 아직 실행 중인 작업이 있으면 Compute Engine에서 강제로 중지합니다.
STOPPING: 인스턴스가 게스트 OS를 종료합니다. 이는 다음 시나리오에서 발생합니다.
사용자 또는 예약된 작업에서 인스턴스 중지 또는 삭제를 요청했습니다.
하드웨어 오류가 발생했습니다.
종료 시간은 인스턴스 유형에 따라 다르지만 하드웨어 오류로 인해 인스턴스가 중지되는 경우 종료 시간이 다를 수 있습니다. Compute Engine은 게스트 OS를 종료한 후 인스턴스 상태를 TERMINATED로 설정한 다음 중지 작업을 완료하거나 인스턴스와 연결된 모든 리소스를 삭제합니다.
TERMINATED: Compute Engine에서 중지 작업을 완료했습니다.
연결된 리소스는 사용자가 분리하지 않는 한 연결된 상태로 유지됩니다. 이 상태에서는 다시 시작하거나 삭제할 때까지 인스턴스가 중지된 상태로 유지됩니다.
REPAIRING: Compute Engine에서 인스턴스를 복구합니다.
Compute Engine은 내부 오류가 발생하거나 유지보수로 인해 인스턴스의 호스트 서버를 사용할 수 없는 경우 인스턴스를 복구합니다. 인스턴스가 복구되는 동안은 다음과 같은 상황이 발생합니다.
Compute Engine에서 인스턴스를 복구하면 인스턴스 상태가 복구 작업이 시작되기 전의 원래 상태로 돌아갑니다.
이 상태는 STAGING, RUNNING, SUSPENDING, STOPPING일 수 있습니다.
SUSPENDING: 사용자가 인스턴스 일시중지를 요청한 후 Compute Engine에서 인스턴스 일시중지 작업을 시작했습니다. 이 상태에서는 일시중지 작업이 완료될 때까지 기다릴 수 밖에 없습니다.
SUSPENDED: Compute Engine에서 일시중지 작업을 완료했습니다.
이 상태에서 인스턴스를 재개하거나 삭제할 수 있습니다. 인스턴스가 SUSPENDED 상태로 60일 이상 유지되면 Compute Engine은 인스턴스를 중지하고 상태를 TERMINATED로 전환합니다.
하드웨어 고장
드물지만 예상치 못한 중단, 하드웨어 오류, 기타 시스템 문제로 인해 컴퓨팅 인스턴스가 실패할 수 있습니다. 영구 스토리지 볼륨을 사용하고, 정기적으로 데이터를 백업하고, 단일 인스턴스 오류가 치명적인 영향을 주지 않도록 시스템을 설계하여 하드웨어 장애를 완화하는 것이 좋습니다. 자세한 내용은 강력한 시스템 설계 방법을 참조하세요.
인스턴스에 장애가 발생하면 Compute Engine은 동일한 부팅 디스크, 메타데이터, 인스턴스 설정을 사용하여 인스턴스를 자동으로 다시 시작합니다. 인스턴스의 자동 다시 시작 동작을 수정하려면 VM 호스트 유지보수 정책 설정을 참조하세요.
가격 책정
컴퓨팅 인스턴스의 요금은 다음과 같이 청구됩니다.
CPU 사용량의 경우 인스턴스가 다음 상태일 때 요금이 청구됩니다.
RUNNING
PENDING_STOP
메모리 사용량의 경우 인스턴스가 다음 상태일 때 요금이 청구됩니다.
RUNNING
PENDING_STOP
SUSPENDING
SUSPENDED
디스크나 외부 IP 주소와 같이 연결된 리소스의 경우 인스턴스 상태와 관계없이 리소스가 존재하는 동안 요금이 청구됩니다.
[[["이해하기 쉬움","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-08-04(UTC)"],[[["\u003cp\u003eCompute Engine instances transition through various states, including \u003ccode\u003ePROVISIONING\u003c/code\u003e, \u003ccode\u003eSTAGING\u003c/code\u003e, \u003ccode\u003eRUNNING\u003c/code\u003e, \u003ccode\u003ePENDING_STOP\u003c/code\u003e, \u003ccode\u003eSTOPPING\u003c/code\u003e, \u003ccode\u003eTERMINATED\u003c/code\u003e, \u003ccode\u003eREPAIRING\u003c/code\u003e, \u003ccode\u003eSUSPENDING\u003c/code\u003e, and \u003ccode\u003eSUSPENDED\u003c/code\u003e, each representing a different stage in the instance lifecycle.\u003c/p\u003e\n"],["\u003cp\u003eUnderstanding the lifecycle states of a Compute Engine instance is crucial for effective troubleshooting, managing resources, and planning instance migrations.\u003c/p\u003e\n"],["\u003cp\u003eInstances in \u003ccode\u003eRUNNING\u003c/code\u003e and \u003ccode\u003ePENDING_STOP\u003c/code\u003e states incur charges for CPU and memory usage, while memory charges also apply during \u003ccode\u003eSUSPENDING\u003c/code\u003e and \u003ccode\u003eSUSPENDED\u003c/code\u003e states, and resources like disks and IP addresses are charged regardless of the instance's current state.\u003c/p\u003e\n"],["\u003cp\u003eCompute Engine automatically restarts failed instances, but this behavior can be modified through the VM host maintenance policy settings.\u003c/p\u003e\n"],["\u003cp\u003eThe shutdown process of an instance may be graceful, provided that the user enabled graceful shutdown, otherwise the instance will be forced to shut down upon request.\u003c/p\u003e\n"]]],[],null,["*** ** * ** ***\n\nThis document explains the lifecycle of a Compute Engine instance, covering\nthe various states it can go through from creation to deletion. To learn how\nto check the state of one or more instances, see the following:\n\n- [View a list of instances](/compute/docs/instances/get-list)\n\n- [View the details of a single instance](/compute/docs/instances/view-vm-details)\n\nBy understanding the lifecycle of an instance, you can do the following more\neffectively:\n\n- Troubleshoot instance issues.\n\n- Manage instance resources.\n\n- Plan instance migrations.\n\nInstance states\n\nA compute instance can transition through different states as part of its\nlifecycle. When creating an instance, Compute Engine provisions\nresources to start it, after which the instance moves into staging and prepares\nfor first boot. After the instance starts, it's considered running. A running\ninstance can be repeatedly stopped and restarted, or suspended and resumed,\nuntil its deletion.\n\nThe following diagram shows the different states that Compute Engine can\nset an instance to:\n\nThe states shown in the preceding diagram are as follows:\n\n- **`PROVISIONING`**: in the first stage of an instance,\n Compute Engine allocates resources for the instance.\n\n- **`STAGING`**: Compute Engine is preparing the instance for first\n boot due to one of the following reasons:\n\n - Compute Engine is still creating and configuring the instance.\n\n - You, or a scheduled operation, have requested to restart or resume the\n instance.\n\n In this state, the instance isn't running yet.\n- **`RUNNING`**: Compute Engine is booting up the instance, or the\n instance is running. In this state, you can stop, suspend, or delete the\n instance. Additionally, Compute Engine can stop or delete the\n instance for scheduled actions, or repair it if the instance is part of\n a managed instance group (MIG) and a hardware error occurs.\n\n- **`PENDING_STOP`** : the instance is gracefully shutting down. This shutdown\n process happens only if you've enabled\n [graceful shutdown](/compute/docs/instances/graceful-shutdown-overview) and\n you've requested to stop or delete the instance, or Compute Engine\n is doing so automatically for a scheduled stop or deletion. The instance\n state changes to `STOPPING` when one of the following happens:\n\n - You manually end the graceful shutdown.\n\n - The graceful shutdown period times out. If any tasks are still running,\n then Compute Engine forcefully stops them.\n\n- **`STOPPING`**: the instance is shutting down its guest OS, which happens in\n the following scenarios:\n\n - You, or a scheduled operation, have requested to stop or delete the\n instance.\n\n - A hardware error occurred.\n\n The shutdown time depends on the\n [instance type](/compute/docs/instances/suspend-stop-reset-instances-overview#stopping-instance);\n however, if the instance is stopping due to a hardware error, the shutdown\n time might vary. After Compute Engine shuts down the guest OS, it\n sets the instance state to `TERMINATED`, and then either completes the stop\n operation or deletes the instance and all attached resources.\n- **`TERMINATED`**: Compute Engine has completed the stop operation.\n The attached resources remain attached unless you detach them. In this\n state, the instance remains stopped until you restart or delete it.\n\n- **`REPAIRING`**: Compute Engine is repairing the instance.\n Compute Engine repairs an instance if it encounters an internal\n error or the instance's host server is unavailable due to maintenance. While\n an instance is in repair, the following happens:\n\n - You can't use it.\n\n - The [service level agreement (SLA)](/compute/sla) doesn't cover it.\n\n If Compute Engine successfully repairs the instance, then it returns\n the instance state to its original state before the repair operation began.\n This state can be `STAGING`, `RUNNING`, `SUSPENDING`, or `STOPPING`.\n- **`SUSPENDING`**: Compute Engine has started the suspend operation\n of the instance after you've requested to suspend it. In this state, you can\n only wait for the suspend operation to complete.\n\n- **`SUSPENDED`** : Compute Engine has completed the suspend operation.\n In this state, you can resume or delete the instance. If an instance remains\n in the `SUSPENDED` state for more than 60 days, then Compute Engine\n stops the instance and transitions its state to `TERMINATED`.\n\nHardware failure\n\nRarely, a compute instance might fail due to an unexpected outage, hardware\nerror, or another system issue. Google recommends mitigating hardware failures\nby using persistent storage volumes, routinely backing up your data, and\ndesigning your system so that a single instance failure isn't catastrophic. For\nmore information, see how to\n[design robust systems](/compute/docs/robustsystems).\n\nIf an instance fails, then Compute Engine automatically restarts the\ninstance using the same boot disk, metadata, and instance settings. To modify\nthe automatic restart behavior of an instance, see\n[Set VM host maintenance policy](/compute/docs/instances/setting-instance-scheduling-options).\n\nPricing\n\nYou're charged for a compute instance as follows:\n\n- For CPU usage, you're charged when the instance is in the following states:\n\n - `RUNNING`\n\n - `PENDING_STOP`\n\n- For memory usage, you're charged when the instance is in the following\n states:\n\n - `RUNNING`\n\n - `PENDING_STOP`\n\n - `SUSPENDING`\n\n - `SUSPENDED`\n\n- For attached resources like disks or external IP addresses, you're charged\n until the resources exist, regardless of the instance state.\n\nFor more information, see [VM instance pricing](/compute/vm-instance-pricing).\n\nWhat's next\n\n- Learn how to view the state of one or more compute instances:\n\n - [Get a list of VMs](/compute/docs/instances/get-list)\n\n - [View the details of a VM](/compute/docs/instances/view-vm-details)\n\n- Learn more about\n [suspending, stopping, or resetting instances](/compute/docs/instances/suspend-stop-reset-instances-overview).\n\n- Learn more about\n [live migration during maintenance events](/compute/docs/instances/live-migration).\n\n- Learn how to\n [delete an instance](/compute/docs/instances/deleting-instance)."]]