Spot Instance Eviction Frequency

Ashley Kennedy 21 Reputation points Microsoft Employee
2020-05-20T22:36:35.83+00:00

Is there an idea or range of frequency that can be expected for eviction?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,169 questions
{count} votes

Accepted answer
  1. Philippe Campos UXCLOUD 81 Reputation points
    2020-05-21T17:09:23.817+00:00

    Try to place your VM in a region that is in a 12 hour time zone different from yours, this will drastically reduce the chances of infrastructure loss.

    Keep in mind that the greatest probability of failure using this spot strategy is choosing a region that has business hours close to the region you intend to serve with the resources provided by your VM.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. vipullag-MSFT 24,211 Reputation points Microsoft Employee
    2020-05-21T17:38:43.08+00:00

    @Ashley Kennedy

    There is no fixed frequency for spot instance eviction.

    Eviction options:

    1. Capacity only – Max Price is “-1” – VM will be evicted if there is need for capacity
    2. Price or Capacity – You have set a max price in $ (willing to pay) - VM will be evicted either if Spot price goes higher or there is need for capacity

    It depends on the eviction policy mentioned in this document. VM's can be evicted based on capacity or the max price you set, you can opt-in for scheduled notification via Azure Scheduled events when the VM gets evicted, you get a 30 sec notification before actual eviction.

    0 comments No comments