# US 10,313,424 B2 · Cloud application processing method, cloud application deployment method, and related apparatus and system

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,313,424 B2
- Document ID: US10313424B2
- Status: Granted
- Kind: B2
- Application number: 15/331,509
- Filed: 2016-10-21
- Published: 2017-02-09
- Granted: 2019-06-04
- Earliest claimed: 2014-04-23
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jie Zhu; Yi Zhang; Jin Qin
- Web page: https://patentgrep.com/patent/US10313424B2

## CPC

- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 9/5088: {involving task migration}
- H04L 12/4641: {Virtual LANs, VLANs, e.g. virtual private networks [VPN] (LAN interconnection over a bridge based backbone H04L12/462; encapsulation techniques H04L12/4633; routing of packets H04L45/00; packet switches H04L49/00; virtual private networks for security H04L63/0272)}
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 67/1097: for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
- H04L 67/131: Protocols for games, networked simulations or virtual reality
- H04L 67/53: using third party service providers
- H04L 69/40: for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection (management of faults, events, alarms or notifications in data switching networks H04L41/06)
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A cloud application processing method and related apparatus are provided. The method is performed by a cloud service provider, and may include determining that a working state of a first virtual machine satisfies a condition for adding a virtual machine, determining, according to an emergency policy corresponding to a first application running on the first virtual machine, a second application that has an emergency relationship with the first application, and instructing a second virtual machine on which the second application is hosted to run the first application deployed on the second virtual machine, creating a third virtual machine, deploying and starting the first application on the third virtual machine, and instructing the second virtual machine to stop running the first application after the first application is started on the third virtual machine.

## Claims

### Claim 1

A cloud service provider (CSP) server, comprising:
a processor; and
a memory coupled to the processor and configured to store a code, the processor, by calling the code in the memory, being configured to:
receive an application deployment request comprising:
an emergency policy corresponding to a first application, the emergency policy describing that the first application and a second application have an emergency relationship; and
a host-on relationship template that describes a host-on relationship between the first application and a third application, the host-on relationship being either that the first application is hosted on the third application or the first application and the third application are mutually hosted on each other;
determine that a working state of a first virtual machine satisfies a condition for adding a virtual machine;
determine, according to the emergency policy corresponding to the first application running on the first virtual machine, the second application that has the emergency relationship with the first application;
deploy, on a second virtual machine, the third application that has the host-on relationship with the first application;
instruct the second virtual machine on which the second application is hosted to run the first application deployed on the second virtual machine;
create a third virtual machine;
deploy and start the first application on the third virtual machine; and
instruct the second virtual machine to stop running the first application after the first application is started on the third virtual machine.

### Claim 2 (depends on 1)

The CSP server of claim 1, wherein the condition for adding the virtual machine comprises the condition that a resource utilization rate of the first virtual machine exceeds a first threshold.

### Claim 3 (depends on 2)

The CSP server of claim 2, wherein by calling the code in the memory, the processor is further configured to receive the application deployment request before determining the second application that has the emergency relationship with the first application, the application deployment request further comprises the emergency policy corresponding to the first application, and the emergency policy describes that the first application and the second application have the emergency relationship.

### Claim 4 (depends on 1)

The CSP server of claim 1, wherein the condition for adding the virtual machine comprises the condition that a throughput per unit time of the first application running on the first virtual machine exceeds a second threshold.

### Claim 5 (depends on 1)

The CSP server of claim 1, wherein the condition for adding the virtual machine comprises the condition that a response latency of the first application running on the first virtual machine exceeds a third threshold.

### Claim 6 (depends on 1)

The CSP server of claim 1, wherein by calling the code in the memory, the processor is further configured to receive the application deployment request before determining the second application that has the emergency relationship with the first application, the application deployment request further comprises the emergency policy corresponding to the first application, and the emergency policy describes that the first application and the second application have the emergency relationship.

### Claim 7

A cloud application processing method, comprising:
receiving, by a cloud service provider (CSP) server, an application deployment request comprising:
an emergency policy corresponding to a first application, the emergency policy describing that the first application and a second application have an emergency relationship; and
a host-on relationship template that describes a host-on relationship between the first application and a third application, the host-on relationship being either the first application is hosted on the third application or the first application and the third application are mutually hosted on each other;
determining, by the CSP server, that a working state of a first virtual machine satisfies a condition for adding a virtual machine;
determining, according to the emergency policy corresponding to the first application running on the first virtual machine, the second application that has the emergency relationship with the first application;
deploying, by the CSP server, on a second virtual machine, the third application that has the host-on relationship with the first application;
instructing the second virtual machine on which the second application is hosted to run the first application deployed on the second virtual machine;
creating a third virtual machine;
deploying and starting the first application on the third virtual machine; and
instructing the second virtual machine to stop running the first application after the first application is started on the third virtual machine.

### Claim 8 (depends on 7)

The method of claim 7, wherein the condition for adding the virtual machine comprises the condition that a resource utilization rate of the first virtual machine exceeds a first threshold.

### Claim 9 (depends on 7)

The method of claim 7, wherein the condition for adding the virtual machine comprises the condition that a throughput per unit time of the first application running on the first virtual machine exceeds a second threshold.

### Claim 10 (depends on 7)

The method of claim 7, wherein the condition for adding the virtual machine comprises the condition that a response latency of the first application running on the first virtual machine exceeds a third threshold.

### Claim 11 (depends on 7)

The method of claim 7, wherein the emergency policy further comprises an emergency trigger condition, the method further comprises determining, according to a running state of the second virtual machine, that the emergency trigger condition is satisfied before instructing the second virtual machine on which the second application is hosted to run the first application deployed on the second virtual machine, and the emergency trigger condition comprises that a quantity of idle resources of the second virtual machine is greater than to a minimum quantity of resources required to run the first application on the second virtual machine.

### Claim 12 (depends on 7)

The method of claim 7, wherein before instructing the second virtual machine on which the second application is hosted to run the first application deployed on the second virtual machine, the method further comprises:
determining that the second virtual machine has sufficient idle resources for deploying the first application; and
deploying the first application on the second virtual machine.
