本頁面中的部分或全部資訊可能不適用於 Trusted Cloud by S3NS。
負載平衡和資源調度
Trusted Cloud by S3NS 針對執行個體群組提供負載平衡與自動調度資源功能。
負載平衡
Trusted Cloud 提供伺服器端負載平衡功能,因此可將連入的流量分散到多個虛擬機器 (VM) 執行個體上。負載平衡可提供以下優點:
- 擴充您的應用程式
- 支援龐大流量
- 使用健康狀態檢查偵測並自動移除不良健康狀態的 VM 執行個體。系統會自動重新加入回復良好健康狀態的執行個體。
- 將流量轉送至最近的虛擬機器
Trusted Cloud 負載平衡會透過轉送規則資源來比對特定類型的流量,並將其轉送至負載平衡器。例如,轉送規則可比對出目的地為 IP 位址 192.0.2.1
通訊埠 80 的 TCP 流量,再將流量轉送至負載平衡器,並引導至良好健康狀態的 VM 執行個體。
Trusted Cloud 負載平衡是一項代管服務,亦即擁有備援元件且具備高可用性。若負載平衡元件發生錯誤,系統會立刻自動重新啟動或替換元件。
Trusted Cloud 提供數種不同類型的負載平衡,在功能、使用情境和設定方式上各有不同。如需相關說明,請參閱 Trusted Cloud 負載平衡說明文件。
自動調度資源
Compute Engine 提供自動調度資源功能,可根據負載的增減,自動新增或移除代管執行個體群組 (MIG) 的 VM 執行個體。自動調度資源服務可讓應用程式緩解流量的增加,並在資源需求降低時節省成本。您可以根據 MIG 的 CPU 使用率、Cloud Monitoring 指標、排程或負載平衡服務規模,自動調度資源。
當您設定自動配置器根據負載平衡服務規模執行資源調度時,自動配置器會監看執行個體群組的服務規模,並在 VM 執行個體超過或低於規模時執行資源調度。可在負載平衡器的後端服務中定義執行個體的服務規模,且可依據每秒使用率或要求數量加以調整。詳情請參閱「根據負載平衡服務規模調度資源」。
如要進一步瞭解自動調度,請參閱「自動調度執行個體群組資源」。
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-19 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-19 (世界標準時間)。"],[[["\u003cp\u003eGoogle Cloud offers server-side load balancing to distribute incoming traffic across multiple virtual machine instances, ensuring high availability and scalability.\u003c/p\u003e\n"],["\u003cp\u003eThe load balancing service uses forwarding rules to direct specific types of traffic to a load balancer, which then routes it to healthy VM instances.\u003c/p\u003e\n"],["\u003cp\u003eAutoscaling in Compute Engine automatically adjusts the number of VM instances in a managed instance group based on various factors such as CPU utilization, Cloud Monitoring metrics, schedules, or load balancing serving capacity.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Cloud's autoscaling feature can scale based on the serving capacity of the instance group, defined in the load balancer's backend service, which can use either utilization or requests per second as metrics.\u003c/p\u003e\n"]]],[],null,[]]