This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已经过机器动态翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
이 콘텐츠는 동적으로 기계 번역되었습니다. 책임 부인
Este texto foi traduzido automaticamente. (Aviso legal)
Questo contenuto è stato tradotto dinamicamente con traduzione automatica.(Esclusione di responsabilità))
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.책임 부인
Este artigo foi traduzido automaticamente.(Aviso legal)
这篇文章已经过机器翻译.放弃
Questo articolo è stato tradotto automaticamente.(Esclusione di responsabilità))
Translation failed!
添加后端 GCP 自动扩缩服务
在云中高效托管应用程序需要根据应用程序需求轻松且经济高效地管理资源。为了满足不断增长的需求,您必须向上扩展网络资源。当需求减少时,您需要向下扩展以避免未充分利用资源造成不必要的成本。为了最大限度地降低应用程序运行成本,您必须持续监控流量、内存和 CPU 使用情况等。然而,手动监控流量很麻烦。为了使应用程序环境能够动态地向上或向下扩展,您必须在必要时自动化监控流量以及向上和向下扩展资源的过程。
NetScaler VPX 实例与 GCP 自动扩缩服务集成,提供以下优势:
- 负载平衡和管理:根据需求自动配置服务器以进行向上和向下扩展。VPX 实例自动检测后端子网中的托管实例组,并允许您选择托管实例组以平衡负载。虚拟 IP 地址和子网 IP 地址在 VPX 实例上自动配置。
- 高可用性:检测跨多个区域的托管实例组并对服务器进行负载平衡。
-
更好的网络可用性:VPX 实例支持:
- 相同放置组中的后端服务器
- 不同区域中的后端服务器
此图说明了 GCP 自动扩缩服务如何在充当负载平衡虚拟服务器的 NetScaler VPX 实例中工作。

开始之前
在开始将自动扩缩与 NetScaler VPX 实例结合使用之前,您必须完成以下任务。
-
根据您的要求在 GCP 上创建 NetScaler VPX 实例。
- 有关如何创建 NetScaler VPX 实例的更多信息,请参阅 在 谷歌云平台 上部署 NetScaler VPX 实例。
- 有关如何在 HA 模式下部署 VPX 实例的更多信息,请参阅 在 Google Cloud Platform 上部署 VPX 高可用性对。
-
为您的 GCP 项目启用 云资源管理器 API。
-
在创建实例时,允许完全访问所有 Cloud API。

-
确保您的 GCP 服务帐户具有以下 IAM 权限:
REQUIRED_INSTANCE_IAM_PERMS = [ "compute.instances.get", "compute.instanceGroupManagers.get", "compute.instanceGroupManagers.list", "compute.zones.list", "logging.sinks.create", "logging.sinks.delete", "logging.sinks.get", "logging.sinks.list", "logging.sinks.update", "pubsub.subscriptions.consume", "pubsub.subscriptions.create", "pubsub.subscriptions.delete", "pubsub.subscriptions.get", "pubsub.topics.attachSubscription", "pubsub.topics.create", "pubsub.topics.delete", "pubsub.topics.get", "pubsub.topics.getIamPolicy", "pubsub.topics.setIamPolicy", ] <!--NeedCopy--> -
要设置自动扩缩,请确保已配置以下各项:
- 虚拟机实例模板
- 代管式实例组
- 自动扩缩策略
将 GCP 自动扩缩服务添加到 NetScaler VPX 实例
您可以通过 GUI 一键将自动扩缩服务添加到 VPX 实例。请完成以下步骤以将自动扩缩服务添加到 VPX 实例:
-
使用您的
nsroot凭据登录到 VPX 实例。 -
首次登录 NetScaler VPX 实例时,您会看到默认的“云配置文件”页面。从下拉菜单中选择 GCP 托管实例组,然后单击“创建”以创建云配置文件。

- “虚拟服务器 IP 地址”字段将根据与实例关联的所有 IP 地址自动填充。
- “Autoscale™ 组”将根据您的 GCP 帐户上配置的托管实例组预填充。
- 选择“自动扩缩组协议”和“自动扩缩组端口”时,请确保您的服务器侦听配置的协议和端口。在服务组中绑定正确的监视器。默认情况下,使用 TCP 监视器。
- 清除Graceful复选框,因为它不受支持。
注意:
对于SSL协议类型自动扩缩,创建云配置文件后,负载均衡虚拟服务器或服务组会因缺少证书而处于关闭状态。您可以手动将证书绑定到虚拟服务器或服务组。
-
首次登录后,如果要创建云配置文件,请在GUI上转到系统 > Google Cloud Platform > 云配置文件,然后单击添加。

创建云配置文件配置页面出现。

云配置文件会创建一个NetScaler负载均衡虚拟服务器和服务组,其成员为托管实例组的服务器。您的后端服务器必须可通过在VPX实例上配置的SNIP访问。
注意:
从NetScaler 13.1-42.x版本开始,您可以在GCP中使用相同的托管实例组为不同的服务(使用不同的端口)创建不同的云配置文件。因此,NetScaler VPX实例在公有云中支持具有相同自动扩缩组的多个服务。

共享
共享
This Preview product documentation is Cloud Software Group Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Cloud Software Group Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Cloud Software Group product purchase decisions.
If you do not agree, select I DO NOT AGREE to exit.