官术网_书友最值得收藏!

Preemptibillity

A preemptible instance is a VM instance type that is much cheaper than the regular Compute Engine machine types that we discussed in the previous section. The reason for this is that a preemptible instance uses spare resources in Google's infrastructure, but they might be terminated (that is, preempted) at any time if Google requires the resources held by this VM.

Preemptible instances cost only a fraction of what other VM instances do and so if you have a fault-tolerant application, for instance, a processing-only node in a Hadoop cluster, a preemptible instance might make a lot of sense and particularly so, if you are budget conscious.

Preemptible instances will definitely be terminated after running for 24 hours. Hence, do not ever use preemptible instances for long running jobs. When using a preemptible instance for relatively short jobs, the probability of termination is typically quite low. This probability of termination will vary based on the day, the zone, the network conditions, and other factors such as migrations and maintenance. Preemptible instances, unlike other VM types, cannot migrate; that is, they cannot stay alive during software updates and they will be forcibly restarted during maintenance. The first step in the preemption process is that the Google Cloud Platform or Compute Engine will send your instance a soft off signal where your machine has 30 seconds in which to clean up through a shutdown script and give up control. If it does not do so, Compute Engine will forcibly take control by sending a mechanical off signal. Therefore, if you use preemptible instances, do ensure that you have a well written shutdown script associated with the preemptible instance.

主站蜘蛛池模板: 丹棱县| 泰兴市| 秭归县| 西乡县| 湖口县| 张家界市| 奎屯市| 齐齐哈尔市| 临漳县| 临沧市| 郎溪县| 敦煌市| 新疆| 舒兰市| 许昌县| 百色市| 深水埗区| 潢川县| 惠东县| 错那县| 宜川县| 师宗县| 九寨沟县| 都兰县| 三江| 林周县| 钟山县| 寻乌县| 丰原市| 息烽县| 鄢陵县| 哈巴河县| 香河县| 宾川县| 临桂县| 延川县| 于都县| 米泉市| 分宜县| 四会市| 珲春市|