简体   繁体   English

Azure VMSS 中来宾操作系统指标和主机操作系统指标之间的差异

[英]Differance between Guest OS metrics and Host OS metrics in Azure VMSS

I am setting up auto-scale rules in Azure VMSS .我在Azure VMSS中设置自动缩放规则。 I can choose from two set of metrics, Host and Guest.我可以从主机和访客这两组指标中进行选择。 As per the documentation, both are emitted from same VMs.根据文档,两者都是从相同的 VM 发出的。

My tech stack on each VM我在每个 VM 上的技术堆栈

 - [Tomcat 9.0.30][2]
 - [APR 1.7.0][2]
 - 9 [Servlets][2].

Planning on setting up these autoscale rules计划设置这些自动缩放规则

 - Add 1 machine when CPU%>70 for 10 minutes.
 - Add 2 machines when CPU%>80 for 10 minutes.
 - Remove 1 machine when CPU%<60 for 10 minutes.

I have following questions.我有以下问题。

  1. What's the difference between Host and Guest metrics.主机和来宾指标之间有什么区别。 Since both are coming from the same VM.因为两者都来自同一个虚拟机。
  2. Which ones to choose for more accurate scaling of tomcat.选择哪些可以更准确地缩放 tomcat。
  3. Apart from monitoring CPU, is there a more efficient way to scale tomcat in Azure VMSS, like system memory.除了监控 CPU 之外,还有没有更有效的方法来扩展 Azure VMSS 中的 tomcat,例如系统 memory。

I researched and found some good links, but couldn't get a definitive answer.我研究并找到了一些很好的链接,但无法得到明确的答案。 Some of the links I found are:我找到的一些链接是:

What's the difference between Host and Guest metrics.主机和来宾指标之间有什么区别。

  • A host operating system is a software that is installed on a computer and communicates with the hardware.主机操作系统是安装在计算机上并与硬件通信的软件。 A guest OS, on the other hand, is software that is installed in a virtual machine.另一方面,客户操作系统是安装在虚拟机中的软件。
  • The host OS runs on the hardware directly.主机操作系统直接在硬件上运行。 The guest OS, on the other hand, runs on a virtual machine.另一方面,来宾操作系统在虚拟机上运行。
  • It's possible that the host Operating System may be single.主机操作系统可能是单一的。 The guest OS, on the other hand, can be single or numerous.另一方面,来宾操作系统可以是单个或多个。
  • The host operating system interacts with the hardware.主机操作系统与硬件交互。 The guest operating system interacts with the virtual machine.来宾操作系统与虚拟机交互。

Which ones to choose for more accurate scaling of tomcat.选择哪些可以更准确地缩放 tomcat。

  • We can scale up or down using host-level metrics, but we won't be able to do that with guest-level metrics.我们可以使用主机级别的指标来扩大或缩小规模,但我们无法使用访客级别的指标来做到这一点。
  • Guest OS metrics include Performance counters which monitor guest CPU % or memory consumption, which are commonly used for autoscaling.来宾操作系统指标包括监控来宾 CPU % 或 memory 消耗的性能计数器,它们通常用于自动缩放。

Is there a more efficient way to scale tomcat in Azure VMSS, like system memory.是否有更有效的方法来扩展 Azure VMSS 中的 tomcat,例如系统 memory。

  • You may use Azure Monitor for VMs to automate the collection of essential CPU, memory, disks, and network performance counters from the VMs in your scale set.你可以使用用于 VM 的 Azure 监视器来自动从规模集中的 VM 收集基本 CPU、memory、磁盘和网络性能计数器。 It also comes with additional monitoring features and pre-built visualisations to help you focus on the performance and reliability of your scale sets.它还附带额外的监控功能和预构建的可视化,以帮助您专注于规模集的性能和可靠性。

For more information please refer these links: What are virtual machine scale sets , Guest OS and host OS metrics , Overview of autoscale with Azure virtual machine scale sets有关详细信息,请参阅以下链接: 什么是虚拟机规模集来宾操作系统和主机操作系统指标使用 Azure 虚拟机规模集的自动缩放概述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM