# Compute Engine基本介紹

Google Compute Engine(GCE)是Google Cloud上的基礎架構服務(Infrastructure as a Service)，該平台可提供大規模虛擬機器以及相關的基礎建設(包含硬碟、網路、附載平衡器... 等等)來建置及運作您的服務。

依照Compute Engine服務主要功能劃分，簡單以下面項目來介紹一下Compute Engine：

## 穩健的網路功能

提供使用者擁有穩健的網路功能，以運行各項應用程式及服務。

## 自訂網路與預設網路(default network)

GCE包含內部與外部的網路連線能力，讓使用者可以透過自訂規劃來建置屬於自己服務適用的網路，而在GCE服務開通當下，也提供預設的default network，內建常用的路由與防火牆設定(如SSH, RDP, ICMP...等)，供入門使用者直接使用。

## 防火牆的規則

除了預設防火牆規則外，使用者也可以透過自建防火牆來開放可以連入的IP。

## 各區域的 HTTP(S)的負載平衡

為Layer 7的負載平衡設備，透過設定可以串連多台主機或是主機群組，讓服務不再只是依賴於單點存在的伺服器。Layer 7的負載平衡更可以識別路由規則，進一步可提供不同路由的重導規則設定，也可以提供CDN的Cache功能。

## 網路的負載平衡

為Layer 4的負載平衡設備，可透過Protocol與Port的方式來重導外部流量到GCE主機或主機群，並可以透過Health Check的方法，讓流量僅通過健康的主機，避免服務中斷。

## 子網路

透過CIDR的方式設定GCE Network中的各子網路範圍，並可以透過路由的方式串接各子網路中間的通訊，讓GCE網路的設計規劃可以更有彈性，也讓可以透過子網路的規劃來實作更安全的雲端網路架構。


---

# 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://gdgcloud-taipei.gitbook.io/google-cloud-platform-in-practice/google-cloud-shang-de-yun-suan-fu-wu/compute-engine/compute-engine-ji-ben-jie-shao.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.
