# Compute Instance

main resource ของ cloud ทำหน้าที่ประมวลผล process ต่างๆ หากเปรียบเทียบกับการใช้งานทั่วไป Compute Instance ก็คือ PC (Personal Computer) เครื่องหนึ่ง โดยถ้าจะให้ทำงานได้สมบูรณ์ ก็จะต้องประกอบเข้ากับ resource อื่นๆ เพื่อให้ครบองค์ประกอบ compute, storage และ network โดย

* Compute Instance แทน compute ประกอบไปด้วยหน่วยประมวลผล CPU (Central Processing Unit) และหน่วยความจำหลัก RAM (Random-Access Memory) ของ PC
* Volume แทน storage ที่ทำหน้าที่เหมือนเป็น HDD (Hard Disk Drive) หรือ SSD (Solid State Drive) ของ PC
* Network Port แทน network ที่ทำหน้าที่เหมือนกับสาย LAN (Local Area Network) ที่เชื่อมต่อ PC เข้ากับเครือข่าย

โดย Compute Instance มีชื่อเรียกหลากหลายแบบตาม provider แต่ละเจ้า ตัวอย่างเช่น server, EC2 (elastic compute cloud), ECS (elastic cloud server) หรือ VM (virtual machine)

## Status ของ Compute Instance

status ของ Compute Instance แบ่งออกเป็น 2 ประเภท ดังนี้

* **Compute Instance status**: อธิบายสถานะปัจจุบันของ Compute Instance
* **OS status**: อธิบายสถานะของ Operating System สามารถแสดงได้ต่อเมื่อ Compute Instance มี QEMU Guest Agent ติดตั้งอยู่เท่านั้น โดยถ้า Operating System สามารถทำงานได้ปกติ จะแสดงเป็น Healthy และถ้า Operating System ไม่ทำงาน จะแสดงเป็น Unhealthy\
  อ่านเพิ่มเติมได้ที่ [What is OS Status?](/ncs-documents/compute/compute-instance/what-is-os-status.md)

> หลัง launch Compute Instance และ Compute Instance active แล้ว จะมีช่วงเวลาหนึ่ง ที่ OS ยังไม่พร้อมใช้งาน และแสดง OS status เป็น unhealthy หาก OS ไม่มีปัญหา ผ่านไปสักพักก็จะกลายเป็น Healthy เอง

อ่านเพิ่มเติมได้ที่ [Compute Instance](https://nipa.cloud/products/nipa-cloud-iaas/nipa-space/compute-instance)

## Recommendations

{% content-ref url="/pages/eEEDshPIUVAH8H4zgtQk" %}
[Launch Compute Instance](/ncs-documents/compute/compute-instance/launch-compute-instance.md)
{% endcontent-ref %}

{% content-ref url="/pages/HSWt7a6cwmOYzSn8n5CD" %}
[Auto Backup](/ncs-documents/compute/compute-instance/managing-instance/auto-backup.md)
{% endcontent-ref %}

{% content-ref url="/pages/JG12tz3HKTP4nQsgdjk9" %}
[SSH to Linux Compute Instance](/ncs-documents/compute/compute-instance/ssh-to-linux-compute-instance.md)
{% endcontent-ref %}

{% content-ref url="/pages/Iq0ijuF7WM2mmIP32L62" %}
[Remote Desktop to Windows Instance](/ncs-documents/compute/compute-instance/remote-desktop-to-windows-instance.md)
{% endcontent-ref %}

{% content-ref url="/pages/bVJRkG8yoIuSTSHfG2Y6" %}
[Setup Docker Image Caching](/ncs-documents/compute/compute-instance/setup-docker-image-caching.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-epc.gitbook.io/ncs-documents/compute/compute-instance.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
