【问题标题】:Prevent Google Autoscaler from terminating instance防止 Google Autoscaler 终止实例
【发布时间】:2019-02-02 17:53:21
【问题描述】:

我在 Windows 机器上使用 Google 实例组。现在我面临的问题是,当负载减少时,即使机器上正在运行某些作业,谷歌也会缩小机器。有没有办法可以防止机器被缩小或根据正在运行的 Java 进程的数量创建自定义指标,如果计数>0

则不终止机器

【问题讨论】:

    标签: google-cloud-platform google-compute-engine


    【解决方案1】:

    您可以选择使用以下策略进行扩展 [1]: - 平均 CPU 利用率 - HTTP 负载平衡服务容量,可以基于利用率或每秒请求数。 - Stackdriver 监控指标

    因此其中包含自定义 [3] 指标,您可以在 [4] 中找到步骤。

    您可能想尝试的其他方法是停止 MIG [2] 的自动缩放。

    干杯,

    米格尔。

    [1]https://cloud.google.com/compute/docs/load-balancing-and-autoscaling#policies [2]https://cloud.google.com/sdk/gcloud/reference/compute/instance-groups/managed/stop-autoscaling [3]https://cloud.google.com/monitoring/custom-metrics/ [4]https://cloud.google.com/monitoring/custom-metrics/creating-metrics

    【讨论】:

      猜你喜欢
      • 2013-07-05
      • 2014-11-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多