I am setting up auto-scale rules in Azure VMSS. I can choose from two set of metrics, Host and Guest. As per the documentation, both are emitted from same VMs.
My tech stack on each 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.
- What's the difference between Host and Guest metrics. Since both are coming from the same VM.
- Which ones to choose for more accurate scaling of tomcat.
- Apart from monitoring CPU, is there a more efficient way to scale tomcat in Azure VMSS, like system memory.
I researched and found some good links, but couldn't get a definitive answer. Some of the links I found are: