Can virtual machines in Google Compute detect when they were ported?

Can I notify an application running on a Google Compute virtual machine when the VM moves to other hardware?

I am an application developer (HMMER) that actively uses vector instructions (SSE / AVX / AVX-512). The version I'm working on checks my hardware at startup to determine which vector instructions are available, and selects the best set.

We looked at the launch of our program on Google Compute and other cloud machines, and one of them is that if the VM migrates from one physical machine to another during the launch of our program, the new machine may support different instructions, causing our program or crash , or execution is slower than possible.

Is there a way to notify applications running on the Google Compute virtual machine when the VM is migrating? The only relevant information I found is that you can configure the virtual machine to execute a shutdown / reboot sequence when it migrates, which could kill any currently executing programs, but at least tell the user that they need to restart the program.

+4
source share
2 answers

We guarantee that your VM instances will never be transferred between physical machines in such a way that your programs fail as you describe.

, , . , , , , Skylake AVX. . CPU.

+3

Live Migration docs:

VM . - . VM , , IP-, , , , , ..

Google , , . , , , .

live migrate, Google Compute Engine , . , , , . , .

Google Compute Engine , , . , gcloud --zones ZONE Google Platform Console API. :

compute.instances.migrateOnHostMaintenance

, , .

, / -. , , , maintenance-event. , . , Compute Engine , , , autoRestart . , scheduling .

, , maintenance-event. 60 , , , , . Compute Engine Python script , .

service-event , , - . , , , . Python , .

, , .

()

, , , , . , Google Compute Engine , , , , . , , , .

, .

GPU , , :

. , , . Compute Engine 60- , . , " " .

, .

. TERMINATE , . .

, , , , CPU. :

, :

  • Compute Engine , .
  • , , , Compute Engine .
  • , , , 400, , CPU .
+4

Source: https://habr.com/ru/post/1679081/


All Articles