> For the complete documentation index, see [llms.txt](https://docs-epc.gitbook.io/ncs-documents/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-epc.gitbook.io/ncs-documents/compute/compute-instance/managing-instance/shelve-stop-and-release-resources.md).

# Shelve (Stop and release resources):

{% hint style="info" %}
ระหว่างที่ Compute Instance อยู่ในสถานะ Shelved จะไม่มีการคิดเงิน Machine Type แต่การคิดเงินอื่นๆ เช่น Image License, Volume และ External IP จะยังคงคิดเงินตามปกติ
{% endhint %}

{% hint style="warning" %}
การ Shelve Compute Instance จะเป็นการคืน resource สู่ระบบ ทำให้มีความเสี่ยงที่จะทำให้ไม่สามารถ Start Compute Instance กลับมาได้ทันที หาก Machine Type ของ Compute Instance มี Resource ไม่เพียงพอ

หากต้องการหลีกเลี่ยงความเสี่ยงนี้ ให้เลือกใช้ Function [Shut Off (Stop with resource reservation)](/ncs-documents/compute/compute-instance/managing-instance/shut-off-stop-with-resource-reservation.md)แทน
{% endhint %}

## Prerequisite

* ต้องมียอดคงเหลือใน Project มากกว่า 0 บาท หากไม่มีเงินอยู่ใน Project ศึกษาวิธีเติมเงินได้ที่ [ขั้นตอนการเติมเงินเข้าสู่ Project](/ncs-documents/nipa-cloud-space-overview/billing-and-wallet/topup-a-project-wallet.md)
* ต้องมี Compute Instance ที่อยู่ใน status เป็น Active

## Instuctions

### 1. เข้าสู่หน้า Compute Instance

ที่แถบเมนูทางซ้าย คลิกเลือกเมนู​ COMPUTE > Compute Instance เพื่อเข้าสู่หน้า Compute Instance list&#x20;

<figure><img src="/files/ZWYWySctdrMNbzSNr5b8" alt=""><figcaption></figcaption></figure>

### 2. สั่ง Shelve Compute Instance&#x20;

ที่หน้า Compute Instance list เลื่อนหน้าจอไปทางขวามือสุด เพื่อให้เห็นปุ่ม "MORE"

คลิกปุ่ม "MORE" และเลือกเมนู "Shelve Compute Instance"

<figure><img src="/files/4XuWheAuyTF1aTSDYb0x" alt=""><figcaption></figcaption></figure>

หรือเข้าผ่านหน้า Compute Instance detail โดยคลิกที่ชื่อ Compute Instance ที่ต้องการในหน้า Compute Instance list&#x20;

ในหน้า Compute Instance detail เลือก "STOP" อยู่ที่แถบ menu ด้านบน และเลือก "Shelve Compute Instance" ดังภาพ

<figure><img src="/files/HiQBZD1GflYAF4gkAsYs" alt=""><figcaption></figcaption></figure>

การ Shelve Compute Instance จะทำให้ไม่มีการคิดเงินค่า Machine Type ของ Compute Instance (Volume และ External IP ยังคงคิดเงินตามปกติ)

<figure><img src="/files/YQGUZzOTSzqxS8BoRxP3" alt=""><figcaption></figcaption></figure>

คลิกปุ่ม "Shelve" เพื่อยืนยันการ Shelve Compute Instance

### 3. รอให้ status ของ Compute Instance กลายเป็น Shutoff

ระบบจะแสดงหน้าเดิมก่อนเข้าสู่ Shelve Compute Instance&#x20;

เมื่อ status ของ instance กลายเป็น "Shelve" หรือ "Shelved Offloaded" ก็เสร็จเรียบร้อย

<figure><img src="/files/yFMpm5Q0Hvhn7ZfrFm86" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Volume ที่ Attach ไว้กับ Compute Instance ที่ถูก Shelve จะเปลี่ยน Attach State เป็น Reserved และไม่สามารถ Detach หรือ Delete ได้จนกว่าจะ Start Compute Instance กลับมา
{% endhint %}
