> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/knowledge-base/vi/automation-api/determine-node-where-vm-runs.md).

# Các cài đặt ảnh hưởng đến việc chọn nút của VM

Mỗi khi một VM được bật nguồn hoặc di chuyển, hệ thống sẽ quyết định nơi chạy VM dựa trên các tùy chọn VM do người dùng chỉ định, đồng thời cân bằng khối lượng công việc trên các nút khả dụng.

**Các tùy chọn VM được dùng để quyết định lựa chọn nút chạy VM:**

* **Nhóm HA**
  * **Ái lực nút:** (giá trị bắt đầu bằng dấu "+", ví dụ "+commapp") Hệ thống sẽ cố gắng chạy các VM có cùng giá trị HA Group trên cùng một nút. Điều này được dùng để gom các khối lượng công việc liên quan đến ứng dụng vào một nút vật lý duy nhất nhằm tối ưu hóa hiệu năng.
  * **Chống ái lực nút:** (giá trị KHÔNG bắt đầu bằng "+", ví dụ "webservers") Các VM có cùng giá trị HA Group sẽ được chạy trên các nút riêng biệt để cung cấp tính sẵn sàng cao cho các ứng dụng hoặc dịch vụ.
* **Nút ưu tiên:** một nút cụ thể được chọn làm lựa chọn đầu tiên
* **Cụm ưu tiên:** các nút trong cụm được chỉ định được dùng làm lựa chọn đầu tiên
* **Cụm dự phòng:** các nút trong cụm được chỉ định sẽ được dùng làm lựa chọn tiếp theo khi cụm ưu tiên không khả dụng

{% hint style="info" %}
**Để biết thêm thông tin về các tùy chọn VM này và các tùy chọn khác, xem:** [**Hướng dẫn sản phẩm - Các trường máy ảo**](/run-the-platform/virtual-machines/vm-field-descriptions.md)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.verge.io/knowledge-base/vi/automation-api/determine-node-where-vm-runs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
