简体   繁体   English

没有负载均衡器的 Azure vmss

[英]Azure vmss without a load balancer

My requirement is to scale vm instance (linux based custom image) based on CPU usage.我的要求是根据 CPU 使用情况扩展 vm 实例(基于 linux 的自定义映像)。 Tried to follow steps mentioned in VMSS (virtual machine scale sets : https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-linux-autoscale ), but it creates a LB in front which we don't want.尝试遵循 VMSS 中提到的步骤(虚拟机规模集: https ://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-linux-autoscale),但它在前面创建了一个我们不想要的 LB。 Is it possible to avoid LB in vmss ?是否可以在 vmss 中避免 LB?

If VMSS without LB is not the option, is there any other way in azure to do this ?如果没有 LB 的 VMSS 不是选项,是否还有其他方法可以做到这一点? I am able to achieve this in AWS (using autoscale group) and GCP (instance group), so trying to get similar functionality in Azure.我能够在 AWS(使用自动缩放组)和 GCP(实例组)中实现这一点,因此尝试在 Azure 中获得类似的功能。

hp生命值

将空 ID 作为负载均衡器传递

az vmss create -n myname -g mygroup --load-balancer "" --public-ip-per-vm --image UbuntuLTS

在 powershell 中,您需要提供用单引号括起来的双引号:-- --load-balancer '""'

az vmss -n myName -g myGroup --load-balancer '""' --image UbuntuLTS

Though a load balancer is created when you create a VM scale set in the portal, other modes supporting external connectivity to scale sets include:虽然在门户中创建 VM 规模集时会创建负载均衡器,但支持外部连接到规模集的其他模式包括:

Public IP per VM in a scale set is not supported today but is on the roadmap.目前不支持规模集中每个 VM 的公共 IP,但在路线图中。 If you submit a support request (eg from the question mark in the top-right of the azure portal), we can keep you informed on the timeline :).如果您提交了支持请求(例如从 azure 门户右上角的问号),我们会及时通知您时间线:)。

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

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