[英]Hot to auto-start an Azure Virtual Machine on public IP access?
On Azure, it seems possible to Auto-stop your VM based on CPU utilization 在Azure上,似乎有可能根据CPU利用率自动停止VM
For this to be effectively used for cost-saving, I need the VM to be auto-started on the next access to its public IP address. 为了有效地节省成本,我需要在下次访问其公共IP地址时自动启动VM。
This is a server which gets only a few hours of usage every week, and they are concentrated, so this could mean ~10X cost reduction... 这是一台每周仅使用几个小时的服务器,而且服务器集中在服务器上,因此这可能意味着将成本降低了约10倍...
You could actually do something like that with something like Traffic Manager\\Azure Function combination, but its probably better to move your workload to Azure Container Instances\\Azure Functions, that would be a more native way of doing so. 实际上,您可以使用诸如Traffic Manager \\ Azure Function组合之类的方法来执行类似的操作,但是将工作负载移至Azure容器实例\\ Azure Functions可能更好,这是一种更本地化的方法。
If you wish to proceed with your design, you'd have to have some sort of load balancing between something that is always listening (like Azure Function) and a real VM. 如果希望继续进行设计,则必须在始终监听的内容(例如Azure Function)和真实的VM之间进行某种负载平衡。 when you send a request to the endpoint Function will pick it up and start the vm, after that VM will pick up all the requests (it has to have a bigger weigth than the fucntion).
当您向端点发送请求时,Function将对其进行拾取并启动vm,之后该VM将拾取所有请求(它的权重必须大于fucntion的权重)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.