# US 2023/0069598 A1 · Dynamic load balancing in reactive systems

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

- Number: US 2023/0069598 A1
- Document ID: US20230069598A1
- Status: Published application
- Kind: A1
- Application number: 17/464,743
- Filed: 2021-09-02
- Published: 2023-03-02
- Earliest claimed: 2021-09-02
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Gordon Douglas Hutchison; Adam John Pilkington; Graham C. Charters; Timothy J. Mitchell
- Web page: https://patentgrep.com/patent/US20230069598A1

## CPC

- G06F 9/546: {Message passing systems or structures, e.g. queues}
- H04L 47/125: by balancing the load, e.g. traffic engineering
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/302: {where the computing system component is a software system}
- G06F 11/3442: {for planning or managing the needed capacity}
- H04L 41/5009: Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
- H04L 41/5019: Ensuring fulfilment of SLA
- H04L 67/1031: Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests
- G06F 2201/865: Monitoring of software
- G06F 2209/5019: Workload prediction
- G06F 2209/542: Intercept
- G06F 2209/544: Remote
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A computer system hosting (micro)services that uses a service mesh to govern communication between the services. The services include consumer services and an event stream service, the latter directing an event stream from a producer service to the individual consumer services. The control plane of the service mesh has the role of creating and removing service instances. Based on a specified event capacity that is to be provided by the consumer services collectively, the control plane manages service provisioning by estimating the current event capacity of the system. This is done by measuring the event capacities of each consumer service instance and summing them, from which any shortfall or excess of the current event capacity in relation to the specified event capacity can be determined. Consumer service instances are then added in case of a shortfall or removed in case of an excess as needed to avoid over or under-provisioning.

## Claims

### Claim 1

A computer system comprising:
a plurality of services, the plurality of services comprising at least one consumer service and an event stream service for supplying a stream of events from a producer service to the at least one consumer service, each consumer service having an event capacity; and
a service mesh, the service mesh comprising a data plane and a control plane, wherein the control plane is configured to create and remove instances of the plurality of services, including creating a proxy instance for each service instance, and wherein the data plane is configured to define interrelations between the proxy instances and hence indirectly between the service instances;
wherein the control plane is operable to manage provisioning of consumer service instances according to the computer system needs by:
defining a specified event capacity to be provided by the consumer services instances collectively;
estimating a current event capacity of the computer system by measuring and summing the event capacities of each consumer service instance;
determining any shortfalls of the current event capacity from the specified event capacity; and
adding at least one further consumer service instance conditional on determining a shortfall in the current event capacity sufficient to eliminate the shortfall;
wherein the event capacity comprises an event burst capacity and an event throughput capacity, the specified and current event capacities thus each having burst and throughput elements, and wherein any shortfall also has burst and throughput elements;
wherein said conditional adding of at least one further consumer service instance is conditional on determining a respective shortfall in at least one of the event burst capacity and the event throughput capacity sufficient to eliminate the respective shortfall or each shortfall element;
wherein said measuring of the event capacities of each consumer service instance is based on windowing and batching information extracted by the control plane from communications to the proxy instance of that consumer service instance; and
wherein both the windowing information and the batching information are used to measure the event burst capacity, whereas the batching information but not the windowing information is used to measure the event throughput capacity.

### Claim 2 (depends on 1)

The computer system of claim 1, wherein said measuring of the event capacities of each consumer service instance is based on windowing and batching information extracted by the control plane from communications to a particular proxy instance of a particular consumer service instance.

### Claim 3 (depends on 1)

The computer system of claim 1, wherein the control plane is further operable to manage provisioning of consumer service instances according to the computer system needs by:
determining if there is potential over-provisioning of the current event capacity from the specified event capacity; and
removing at least one consumer service instance conditional on a determination of potential over-provisioning of the event capacity.

### Claim 4 (depends on 1)

The computer system of claim 1, wherein the specified event capacity is set with reference to a service level.

### Claim 5 (depends on 1)

The computer system of claim 1, wherein the specified event capacity is set with reference to records of historical values of event capacity set for the computer system.

### Claim 6 (depends on 1)

The computer system of claim 1, wherein the specified event capacity is set with reference to a service level and records of historical values of event capacity set for the computer system.

### Claim at position 7

7-8. (canceled)

### Claim 9 (depends on 1)

The computer system of claim 1, wherein, when determining the respective shortfall in the event burst capacity, the specified event burst capacity is reduced by an amount to account for how many events are currently pending in the computer system.

### Claim 10 (depends on 1)

The computer system of claim 1, wherein the control plane is further operable to manage provisioning of consumer service instances according to the computer system needs by:
determining if there is potential over-provisioning of the current event burst capacity from the specified event burst capacity;
determining if there is potential over-provisioning of the current event throughput capacity from the specified event throughput capacity; and
removing at least one consumer service instance conditional on a determination of potential over-provisioning of both event burst capacity and event throughput capacity.

### Claim 11 (depends on 1)

The computer system of claim 1, wherein the specified event burst capacity and the specified event throughput capacity are set with reference to a service level.

### Claim 12 (depends on 1)

The computer system of claim 1, wherein the specified event burst capacity and the specified event throughput capacity are set with reference to records of historical values of event burst capacity and event throughput capacity set for the computer system.

### Claim 13 (depends on 1)

The computer system of claim 1, wherein the specified event burst capacity and the specified event throughput capacity are set with reference to a service level and to records of historical values of event burst capacity and event throughput capacity set for the computer system.

### Claim 14 (depends on 1)

The computer system of claim 1, wherein the producer service is part of the computer system.

### Claim 15 (depends on 1)

The computer system of claim 1, wherein the producer service is external to the computer system.

### Claim 16

A method for load balancing in a computer system, the method comprising:
providing a plurality of services, the plurality of services comprising at least one consumer service and an event stream service for supplying a stream of events from a producer service to a consumer service, each consumer service having an event capacity; and
providing a service mesh, the service mesh comprising a data plane and a control plane, wherein the control plane is configured to create and remove instances of the plurality of services, including creating a proxy instance for each service instance, and wherein the data plane is configured to define interrelations between the proxy instances and hence indirectly between the service instances,
wherein the control plane is operable to manage provisioning of consumer service instances according to computer system needs by:
defining a specified event capacity to be provided by the at least one consumer services instances collectively;
estimating a current event capacity of the computer system by measuring and summing the event capacities of each consumer service instance;
determining any shortfalls of the current event capacity from the specified burst capacity; and
adding at least one further consumer service instance conditional on determining a shortfall in the event capacity sufficient to eliminate the shortfall;
wherein the event capacity comprises an event burst capacity and an event throughput capacity, the specified and current event capacities thus each having burst and throughput elements, and wherein any shortfall also has burst and throughput elements;
wherein said conditional adding of at least one further consumer service instance is conditional on determining a respective shortfall in at least one of the event burst capacity and the event throughput capacity sufficient to eliminate the respective shortfall or each shortfall element;
wherein said measuring of the event capacities of each consumer service instance is based on windowing and batching information extracted by the control plane from communications to the proxy instance of that consumer service instance; and
wherein both the windowing information and the batching information are used to measure the event burst capacity, whereas the batching information but not the windowing information is used to measure the event throughput capacity.

### Claim 17 (depends on 16)

The method of claim 16, wherein the control plane is further operated to manage provisioning of consumer service instances according to the computer system needs by:
determining if there is potential over-provisioning of the current event capacity from the specified event capacity; and
removing at least one consumer service instance conditional on a determination of potential over-provisioning of the event capacity.

### Claim 18

(canceled)

### Claim 19

A computer program product storing a computer program comprising software code portions, which, when said program is run on a computing device, cause the computing device to perform a method for load balancing in a computer system, the method comprising:
providing a plurality of services, the plurality of services comprising at least one consumer service and an event stream service for supplying a stream of events from a producer service to a consumer service, each consumer service having an event capacity; and
providing a service mesh, the service mesh comprising a data plane and a control plane, wherein the control plane is configured to create and remove instances of the services, including creating a proxy instance for each service instance, and wherein the data plane is configured to define interrelations between the proxy instances and hence indirectly between the service instances,
operating the control plane to manage provisioning of consumer service instances according to computer system needs by:
defining a specified event capacity to be provided by the at least one consumer services collectively;
estimating a current event capacity of the computer system by measuring and summing the event capacities of each consumer service instance;
determining any shortfall of the current event capacity from the specified burst capacity; and
adding at least one further consumer service instance conditional on determining a shortfall in the event capacity sufficient to eliminate the shortfall;
wherein the event capacity comprises an event burst capacity and an event throughput capacity, the specified and current event capacities thus each having burst and throughput elements, and wherein any shortfall also has burst and throughput elements;
wherein said conditional adding of at least one further consumer service instance is conditional on determining a respective shortfall in at least one of the event burst capacity and the event throughput capacity sufficient to eliminate the respective shortfall or each shortfall element;
wherein said measuring of the event capacities of each consumer service instance is based on windowing and batching information extracted by the control plane from communications to the proxy instance of that consumer service instance; and
wherein both the windowing information and the batching information are used to measure the event burst capacity, whereas the batching information but not the windowing information is used to measure the event throughput capacity.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the control plane is further operated to manage provisioning of consumer service instances according to system needs by:
determining if there is potential over-provisioning of the current event capacity from the specified event capacity; and
removing at least one consumer service instance conditional on a determination of potential over-provisioning of the event capacity.
