# US 2023/0401106 A1 · Adaptive application server request balancing

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

- Number: US 2023/0401106 A1
- Document ID: US20230401106A1
- Status: Published application
- Kind: A1
- Application number: 17/836,042
- Filed: 2022-06-09
- Published: 2023-12-14
- Earliest claimed: 2022-06-09
- Assignees: Sap SE
- Applicants: Sap SE
- Inventors: Dabin Feng; Xia Yu; Chen Feng
- Web page: https://patentgrep.com/patent/US20230401106A1

## CPC

- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 2209/5022: Workload threshold
- G06F 2209/548: Queue
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Methods, systems, and computer-readable storage media for adaptive application server request balancing. An example method includes receiving, from a load balancer, an application request for a first application at a first application server. In response to determining that a complexity value for the application request is greater than a complexity value threshold and that an occupancy value for the first application server is greater than an occupancy value threshold, the application request is provided to a global task queue that is accessible by the first application server and other application servers. A notification is received from a second application server of a completion of the application request by the second application server. A completion result of the completion of the application request by the second application server is retrieved from a global results queue and the completion result is provided to the first application in response to the application request.

## Claims

### Claim 1

A computer-implemented method for adaptive application server request balancing, comprising:
receiving an application request for a first application at a first application server and from a load balancer;
in response to determining that a complexity value for the application request is greater than a complexity value threshold and that an occupancy value for the first application server is greater than an occupancy value threshold, providing the application request to a global task queue that is accessible by the first application server and other application servers;
receiving a notification from a second application server of a completion of the application request by the second application server;
retrieving, from a global results queue, a completion result of the completion of the application request by the second application server; and
providing the completion result to the first application in response to the application request.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the complexity value for the application request is determined based on a query string complexity, a historical response time for similar requests, and historical record counts for similar requests.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein different weights are used, when determining the complexity value, for the query string complexity, the historical response time for similar requests, and the historical record counts for similar requests.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the occupancy value for the first application server is determined based on a processor utilization value, a memory utilization value, and a number of active worker threads.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein different weights are used, when determining the occupancy value, for the processor utilization value, the memory utilization value, and the number of active worker threads.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the second application server:
determines that an occupancy value for the second application server is less than the occupancy value threshold;
determines that the application request is included in the global task queue;
retrieves the application request from the global task queue;
processes the application request, including determining the completion result for the application request; and
places the completion result into the global results queue.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein the first application server monitors the global results queue for completion of the application request by an application server other than the first application server.

### Claim 8

A non-transitory computer-readable storage medium coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations for adaptive application server request balancing:
receiving an application request for a first application at a first application server and from a load balancer;
in response to determining that a complexity value for the application request is greater than a complexity value threshold and that an occupancy value for the first application server is greater than an occupancy value threshold, providing the application request to a global task queue that is accessible by the first application server and other application servers;
receiving a notification from a second application server of a completion of the application request by the second application server;
retrieving, from a global results queue, a completion result of the completion of the application request by the second application server; and
providing the completion result to the first application in response to the application request.

### Claim 9 (depends on 8)

The computer-readable storage medium of claim 8, wherein the complexity value for the application request is determined based on a query string complexity, a historical response time for similar requests, and historical record counts for similar requests.

### Claim 10 (depends on 9)

The computer-readable storage medium of claim 9, wherein different weights are used, when determining the complexity value, for the query string complexity, the historical response time for similar requests, and the historical record counts for similar requests.

### Claim 11 (depends on 8)

The computer-readable storage medium of claim 8, wherein the occupancy value for the first application server is determined based on a processor utilization value, a memory utilization value, and a number of active worker threads.

### Claim 12 (depends on 11)

The computer-readable storage medium of claim 11, wherein different weights are used, when determining the occupancy value, for the processor utilization value, the memory utilization value, and the number of active worker threads.

### Claim 13 (depends on 8)

The computer-readable storage medium of claim 8, wherein the second application server:
determines that an occupancy value for the second application server is less than the occupancy value threshold;
determines that the application request is included in the global task queue;
retrieves the application request from the global task queue;
processes the application request, including determining the completion result for the application request; and
places the completion result into the global results queue.

### Claim 14 (depends on 8)

The computer-readable storage medium of claim 8, wherein the first application server monitors the global results queue for completion of the application request by an application server other than the first application server.

### Claim 15

A system, comprising:
a computing device; and
a computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations for adaptive application server request balancing, the operations comprising:
receiving an application request for a first application at a first application server and from a load balancer;
in response to determining that a complexity value for the application request is greater than a complexity value threshold and that an occupancy value for the first application server is greater than an occupancy value threshold, providing the application request to a global task queue that is accessible by the first application server and other application servers;
receiving a notification from a second application server of a completion of the application request by the second application server;
retrieving, from a global results queue, a completion result of the completion of the application request by the second application server; and
providing the completion result to the first application in response to the application request.

### Claim 16 (depends on 15)

The system of claim 15, wherein the complexity value for the application request is determined based on a query string complexity, a historical response time for similar requests, and historical record counts for similar requests.

### Claim 17 (depends on 16)

The system of claim 16, wherein different weights are used, when determining the complexity value, for the query string complexity, the historical response time for similar requests, and the historical record counts for similar requests.

### Claim 18 (depends on 15)

The system of claim 15, wherein the occupancy value for the first application server is determined based on a processor utilization value, a memory utilization value, and a number of active worker threads.

### Claim 19 (depends on 18)

The system of claim 18, wherein different weights are used, when determining the occupancy value, for the processor utilization value, the memory utilization value, and the number of active worker threads.

### Claim 20 (depends on 15)

The system of claim 15, wherein the second application server:
determines that an occupancy value for the second application server is less than the occupancy value threshold;
determines that the application request is included in the global task queue;
retrieves the application request from the global task queue;
processes the application request, including determining the completion result for the application request; and
places the completion result into the global results queue.
