Patent ID: 11886905
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. An upgrade device comprising:
a memory configured to store program instructions; and
a processor coupled to the memory, wherein the program instructions cause the processor to be configured to:
select a target host from a plurality of hosts, wherein a plurality of first virtual machines on the hosts belongs to a plurality of first service groups, wherein each of the first service groups processes a first service, wherein different second service groups in the first service groups process different second services, wherein second virtual machines deployed on the target host belong to one or more target service groups in the first service groups, wherein, for the second virtual machines, a total quantity of third virtual machines that belongs to each of the one or more target service groups is not greater than a maximum shutdown quantity corresponding to a corresponding target service group, wherein a maximum shutdown quantity corresponding to each of the first service groups is a maximum quantity of fourth virtual machines that are allowed to be shut down in each of the first service groups when the first service keeps running;
stop a third service running on the second virtual machines;
maintain a fourth service running on a fifth virtual machine that is in the one or more target service groups and that is not deployed on the target host; and
upgrade the target host after the third service is stopped running on the second virtual machines and while the fourth service is maintained running on the fifth virtual machine.