azure虚拟机发邮件


The workloads that are ideally suited to run on Spot Virtual Machines include, but are not necessarily limited to, the following:
最适合在Spot虚拟机上运行的工作负载包括但不限于以下各项:
  • Batch jobs.

    批处理作业。
  • Workloads that can sustain and/or recover from interruptions.

    可以维持和/或从中断中恢复的工作量。
  • Development and test.

    开发和测试。
  • Stateless applications that can use Spot Virtual Machines to scale out, opportunistically saving cost.

    可以使用Spot虚拟机进行横向扩展的无状态应用程序,从而可以节省成本。
  • Short-lived jobs which can easily be run again if the Virtual Machine is evicted.

    如果虚拟机被驱逐,可以很容易地再次运行短暂的作业。
azure虚拟机发邮件_宣布Azure Spot虚拟机的预览

Preview for Spot Virtual Machines will replace the preview of Azure low-priority Virtual Machines on scale sets. Eligible low-priority Virtual Machines will be automatically transitioned over to Spot Virtual Machines. Please refer to the 
Spot虚拟机的预览将替换规模集上的Azure低优先级虚拟机的预览。 符合条件的低优先级虚拟机将自动转换为Spot虚拟机。 请参考FAQ for additional information.常见问题解答以获取更多信息。

价钱 (Pricing)


Unlike low-priority Virtual Machines, prices for Spot Virtual Machines will vary based on capacity for a size or SKU in an Azure region. Spot pricing can give you insights into the availability and demand for a given Azure Virtual Machine series and specific size in a region. The prices will change slowly to provide stabilization, thus allowing you to better manage budgets. In the Azure portal, you will have access to the current Azure Virtual Machine Spot prices to easily determine which region or Virtual Machine size best fits your needs. Spot prices are capped at pay-as-you-go prices.
与低优先级虚拟机不同,现货虚拟机的价格将根据Azure区域中大小或SKU的容量而有所不同。 现货定价可以让您深入了解给定Azure虚拟机系列的可用性和需求以及区域中的特定大小。 价格将缓慢变化以保持稳定,从而使您可以更好地管理预算。 在Azure门户中,您可以访问当前的Azure虚拟机现货价格,以轻松确定最适合您的区域或虚拟机大小。 现货价格上限为即付即用价格。
azure虚拟机发邮件_宣布Azure Spot虚拟机的预览 

部署方式 (Deployment)


Spot Virtual Machines are easy to deploy and manage. Deploying a Spot Virtual Machine is similar to configuring and deploying a regular Virtual Machine. For example, in the Azure portal, you can simply select Azure Spot Instance to deploy a Spot Virtual Machine. You can also define your maximum price for your Spot Virtual Machines. Here are two options: 
现货虚拟机易于部署和管理。 部署竞价型虚拟机类似于配置和部署常规虚拟机。 例如,在Azure门户中,您只需选择Azure Spot实例即可部署Spot虚拟机。 您还可以为Spot虚拟机定义最高价格。 这里有两个选择:
  1. You can choose to deploy your Spot Virtual Machines without capping the price. Azure will charge you the Spot Virtual Machine price at any given time, giving you peace of mind that your Virtual Machines will not be evicted for price reasons.

    您可以选择在不限制价格的情况下部署Spot虚拟机 。 Azure将在任何给定时间向您收取现货虚拟机价格,让您放心,不会因为价格原因而将您的虚拟机逐出。

    azure虚拟机发邮件_宣布Azure Spot虚拟机的预览
  2. Alternatively, you can decide to provide a specific price to stay in your budget. Azure will not charge you above the maximum price you set and will evict the Virtual Machine if the spot price rises above your defined maximum price.

    另外,您可以决定提供一个特定的价格以保持预算。 Azure不会向您收取高于您设置的最高价格的费用,并且如果现货价格高于您定义的最高价格,则将驱逐虚拟机。

    azure虚拟机发邮件_宣布Azure Spot虚拟机的预览

There are few other options available to lower costs.
很少有其他选择可以降低成本。
  1. If your workload does not require a specific Virtual Machine series and size, then you can find other Virtual Machines in the same region that may be cheaper.

    如果您的工作负载不需要特定的虚拟机系列和大小,则可以在同一地区找到其他较便宜的虚拟机。
  2. If your workload is not dependent on a specific region, then you can find a different Azure region to reduce your cost.

    如果您的工作负载不依赖于特定区域,则可以找到其他Azure区域以降低成本。

配额 (Quota)


As part of this announcement, to give better flexibility, Azure is also rolling out a separate quota for Spot Virtual Machines that is separate from your pay-as-you-go Virtual Machine quota. The quota for Spot Virtual Machines and Spot VMSS instances is a single quota for all Virtual Machine sizes in a specific Azure region. This approach will give you easy access to a broader set of Virtual Machines.
作为此公告的一部分,为了提供更好的灵活性,Azure还推出了针对Spot虚拟机的单独配额,该配额与按需购买的虚拟机配额是分开的。 Spot虚拟机和Spot VMSS实例的配额是特定Azure区域中所有虚拟机大小的单一配额。 这种方法将使您轻松访问更广泛的虚拟机集。
azure虚拟机发邮件_宣布Azure Spot虚拟机的预览

处理搬迁 (Handling Evictions)


Azure will try to keep your Spot Virtual Machine running and minimize evictions, but your workload should be prepared to handle evictions as runtime for an Azure Spot Virtual Machines and VMSS instances is not guaranteed. You can optionally get a 
Azure将尝试使Spot虚拟机保持运行并最大程度地减少驱逐,但您的工作负载应做好准备以处理驱逐,因为不能保证Azure Spot虚拟机和VMSS实例的运行时。 您可以通过订阅计划的事件来获得30-second eviction notice by subscribing to scheduled events. Virtual Machines can be evicted due to the following reasons:30秒的驱逐通知 。 由于以下原因,可以驱逐虚拟机:
  1. Spot prices have gone above the max price you defined for the Virtual Machine. Azure Spot Virtual Machines get evicted when the Spot price for the Virtual Machine you have chosen goes above the price you defined at the time of deployment. You can try to redeploy your Virtual Machine by changing prices.

    现货价格已经超过您为虚拟机定义的最高价格。 当您选择的虚拟机的现货价格高于部署时定义的价格时,Azure现货虚拟机将被收回。 您可以尝试通过更改价格来重新部署虚拟机。
  2. Azure needs to reclaim capacity.

    Azure需要回收容量。

In both scenarios, you can try to redeploy the Virtual Machine in the same region or availability zone.
在这两种情况下,您都可以尝试在同一区域或可用性区域中重新部署虚拟机。

最佳实践 (Best practices)


Here are some effective ways to best utilize Azure Spot Virtual Machines:
以下是一些最佳利用Azure Spot虚拟机的有效方法:
  • For long-running operations, try to create checkpoints so that you can restart your workload from a previous known checkpoint to handle evictions and save time.

    对于长时间运行的操作,请尝试创建检查点,以便您可以从先前已知的检查点重新启动工作负载以处理逐出并节省时间。
  • In scale-out scenarios, to save costs, you can have two VMSS, where one has regular Virtual Machines and the other has Spot Virtual Machines. You can put both in the same load balancer to opportunistically scale out.

    在横向扩展方案中,为了节省成本,您可以拥有两个VMSS,其中一个具有常规虚拟机,另一个具有Spot虚拟机。 您可以将两者放在同一个负载均衡器中以进行机会扩展。
  • Listen to eviction notifications in the Virtual Machine to get notified when your Virtual Machine is about to be evicted.

    收听虚拟机中的驱逐通知,以在虚拟机即将被驱逐时得到通知。
  • If you are willing to utilize pay-as-you-go prices, then use Eviction type to «Capacity Eviction only», in the API provide "-1" as max price as Azure never charges you more than the Spot Virtual Machine price.

    如果您愿意使用随用随付的价格,则使用Eviction类型来选择“仅容量驱逐”,在API中提供“ -1”作为最高价格,因为Azure永远不会向您收取高于现货虚拟机价格的费用。
  • To handle evictions, build a retry logic to redeploy Virtual Machines. If you do not require a specific Virtual Machine series and size, then try to deploy a different size that matches your workload needs.

    要处理驱逐,请构建重试逻辑以重新部署虚拟机。 如果不需要特定的虚拟机系列和大小,请尝试部署与您的工作负载需求相匹配的其他大小。
  • While deploying VMSS, select max spread in portal management tab or FD==1 in the API to find capacity in a zone or region.

    部署VMSS时,请在Portal Management(门户网站管理)选项卡中选择最大扩展,或在API中选择FD == 1,以查找区域或区域中的容量。

学到更多 (Learn more)

翻译自: https://habr.com/en/company/microsoft/blog/480026/

azure虚拟机发邮件

相关文章: