# US 2021/0243110 A1 · Method, apparatus, electronic device and readable storage medium for adjusting instance number

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

- Number: US 2021/0243110 A1
- Document ID: US20210243110A1
- Status: Published application
- Kind: A1
- Application number: 17/201,663
- Filed: 2021-03-15
- Published: 2021-08-05
- Earliest claimed: 2020-09-21
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Inventors: Sheng Chen; Danfeng Lu; Xin Zhao; Jingru Xie
- Web page: https://patentgrep.com/patent/US20210243110A1

## CPC

- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- G06F 9/505: {considering the load}
- G06F 9/5072: {Grid computing}
- H04L 43/16: Threshold monitoring
- H04L 45/02: Topology update or discovery
- H04L 45/22: {Alternate routing}
- H04L 67/51: Discovery or management thereof, e.g. service location protocol [SLP] or web services
- H04L 67/55: Push-based network services
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45575: {Starting, stopping, suspending or resuming virtual machine instances}
- H04L 43/0876: Network utilisation, e.g. volume of load or congestion level
- 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 method, an apparatus, an electronic device and a computer readable storage medium for adjusting an instance number are provided. The method includes: acquiring an actual performance index of a current time window; determining a theoretical instance number corresponding to the actual performance index; and in response to the theoretical instance number being greater than an instance creating upper limit of a current edge computing node, requesting another edge computing node having an instance addition capability to jointly create an instance of a total number equal to the theoretical instance number.

## Claims

### Claim 1

A method for adjusting an instance number, the method comprising:
acquiring an actual performance index of a current time window;
determining a theoretical instance number corresponding to the actual performance index; and
requesting, in response to the theoretical instance number being greater than an instance creating upper limit of a current edge computing node, another edge computing node having an instance addition capability to jointly create an instance of a number equal to the theoretical instance number, wherein different edge computing nodes have different instance creating upper limits due to a performance difference.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the requesting another edge computing node having an instance addition capability to jointly create an instance of a number equal to the theoretical instance number, comprises:
calculating a first difference according to the theoretical instance number and the instance creating upper limit;
broadcasting an instance addition collaboration request containing the first difference to cause the another edge computing node receiving the instance addition collaboration request to return a consent addition response upon confirming that the another edge computing node has the instance addition capability corresponding to the first difference;
forwarding traffic processed by an instance number corresponding to the first difference to the edge computing node sending the consent addition response, according to the consent addition response; and
receiving a traffic processing result returned by the edge computing node sending the consent addition response.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the requesting another edge computing node having an instance addition capability to jointly create an instance of a number equal to the theoretical instance number, comprises:
calculating a second difference according to the theoretical instance number and the instance creating upper limit;
forwarding, in response to determining that the second difference is greater than a preset difference and there is a high-performance edge computing node having an instance creating capability greater than the theoretical instance number, all traffic sent to the current edge computing node to the high-performance edge computing node to cause the high-performance edge computing node to process the traffic by creating the instance of the number equal to the theoretical instance number; and
receiving a traffic processing result returned by the high-performance edge computing node.

### Claim 4 (depends on 3)

The method according to claim 3, the method further comprising:
modifying, in response to the current edge computing node being offline, a destination address of the traffic sent to the current edge computing node to the high-performance edge computing node to cause the high-performance edge computing node to directly return the traffic processing result.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the determining a theoretical instance number corresponding to the actual performance index, comprises:
querying, in a corresponding table pre-recording a corresponding relationship between performance indexes and instance numbers, the theoretical instance number corresponding to the actual performance index.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the actual performance index comprises at least one of:
a traffic size, a wait queue length, a CPU usage rate, a memory usage rate or an instance concurrency number.

### Claim 7

An electronic device, comprising:
at least one processor; and
a memory communicating with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, cause the at least one processor to perform operations comprising:
acquiring an actual performance index of a current time window;
determining a theoretical instance number corresponding to the actual performance index; and
requesting, in response to the theoretical instance number being greater than an instance creating upper limit of a current edge computing node, another edge computing node having an instance addition capability to jointly create an instance of a number equal to the theoretical instance number, wherein different edge computing nodes have different instance creating upper limits due to a performance difference.

### Claim 8 (depends on 7)

The electronic device according to claim 7, wherein the requesting another edge computing node having an instance addition capability to jointly create an instance of a number equal to the theoretical instance number, comprises:
calculating a first difference according to the theoretical instance number and the instance creating upper limit;
broadcasting an instance addition collaboration request containing the first difference to cause the another edge computing node receiving the instance addition collaboration request to return a consent addition response upon confirming that the another edge computing node has the instance addition capability corresponding to the first difference;
forwarding traffic processed by an instance number corresponding to the first difference to the edge computing node sending the consent addition response, according to the consent addition response; and
receiving a traffic processing result returned by the edge computing node sending the consent addition response.

### Claim 9 (depends on 7)

The electronic device according to claim 7, wherein the requesting another edge computing node having an instance addition capability to jointly create an instance of a number equal to the theoretical instance number, comprises:
calculating a second difference according to the theoretical instance number and the instance creating upper limit;
forwarding, in response to determining that the second difference is greater than a preset difference and there is a high-performance edge computing node having an instance creating capability greater than the theoretical instance number, all traffic sent to the current edge computing node to the high-performance edge computing node to cause the high-performance edge computing node to process the traffic by creating the instance of the number equal to the theoretical instance number; and
receiving a traffic processing result returned by the high-performance edge computing node.

### Claim 10 (depends on 9)

The electronic device according to claim 9, the operations further comprising:
modifying, in response to the current edge computing node being offline, a destination address of the traffic sent to the current edge computing node to the high-performance edge computing node to cause the high-performance edge computing node to directly return the traffic processing result.

### Claim 11 (depends on 7)

The electronic device according to claim 7, wherein the determining a theoretical instance number corresponding to the actual performance index, comprises:
querying, in a corresponding table pre-recording a corresponding relationship between performance indexes and instance numbers, the theoretical instance number corresponding to the actual performance index.

### Claim 12 (depends on 7)

The electronic device according to claim 7, wherein the actual performance index comprises at least one of:
a traffic size, a wait queue length, a CPU usage rate, a memory usage rate or an instance concurrency number.

### Claim 13

A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform operations comprising:
acquiring an actual performance index of a current time window;
determining a theoretical instance number corresponding to the actual performance index; and
requesting, in response to the theoretical instance number being greater than an instance creating upper limit of a current edge computing node, another edge computing node having an instance addition capability to jointly create an instance of a number equal to the theoretical instance number, wherein different edge computing nodes have different instance creating upper limits due to a performance difference.

### Claim 14 (depends on 13)

The non-transitory computer readable storage medium according to claim 13, wherein the requesting another edge computing node having an instance addition capability to jointly create an instance of a number equal to the theoretical instance number, comprises:
calculating a first difference according to the theoretical instance number and the instance creating upper limit;
broadcasting an instance addition collaboration request containing the first difference to cause the another edge computing node receiving the instance addition collaboration request to return a consent addition response upon confirming that the another edge computing node has the instance addition capability corresponding to the first difference;
forwarding traffic processed by an instance number corresponding to the first difference to the edge computing node sending the consent addition response, according to the consent addition response; and
receiving a traffic processing result returned by the edge computing node sending the consent addition response.

### Claim 15 (depends on 13)

The non-transitory computer readable storage medium according to claim 13, wherein the requesting another edge computing node having an instance addition capability to jointly create an instance of a number equal to the theoretical instance number, comprises:
calculating a second difference according to the theoretical instance number and the instance creating upper limit;
forwarding, in response to determining that the second difference is greater than a preset difference and there is a high-performance edge computing node having an instance creating capability greater than the theoretical instance number, all traffic sent to the current edge computing node to the high-performance edge computing node to cause the high-performance edge computing node to process the traffic by creating the instance of the number equal to the theoretical instance number; and
receiving a traffic processing result returned by the high-performance edge computing node.

### Claim 16 (depends on 15)

The non-transitory computer readable storage medium according to claim 15, the operations further comprising:
modifying, in response to the current edge computing node being offline, a destination address of the traffic sent to the current edge computing node to the high-performance edge computing node to cause the high-performance edge computing node to directly return the traffic processing result.

### Claim 17 (depends on 13)

The non-transitory computer readable storage medium according to claim 13, wherein the determining a theoretical instance number corresponding to the actual performance index, comprises:
querying, in a corresponding table pre-recording a corresponding relationship between performance indexes and instance numbers, the theoretical instance number corresponding to the actual performance index.

### Claim 18 (depends on 13)

The non-transitory computer readable storage medium according to claim 13, wherein the actual performance index comprises at least one of:
a traffic size, a wait queue length, a CPU usage rate, a memory usage rate or an instance concurrency number.
