# US 2023/0273836 A1 · Adjusting the size of a resource pool for a virtual machine based on events associated with the virtual machine

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

- Number: US 2023/0273836 A1
- Document ID: US20230273836A1
- Status: Published application
- Kind: A1
- Application number: 17/680,725
- Filed: 2022-02-25
- Published: 2023-08-31
- Earliest claimed: 2022-02-25
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Andrea Cosentino; Paolo Antinori
- Web page: https://patentgrep.com/patent/US20230273836A1

## CPC

- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/48: Program initiating; Program switching, e.g. by interrupt
- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 9/5016: {the resource being the memory}
- G06F 9/5022: {Mechanisms to release resources}
- G06F 9/5061: {Partitioning or combining of resources}
- G06F 9/5083: {Techniques for rebalancing the load in a distributed system}
- G06F 11/30: Monitoring
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45575: {Starting, stopping, suspending or resuming virtual machine instances}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F 2009/45591: {Monitoring or debugging support}
- G06F 2209/5011: Pool
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Events associated with a virtual machine can be used to adjust an amount of resource objects that may be allocated from a resource pool for the virtual machine. For example, a system can receive a notification including event data indicating an event related to the virtual machine, wherein the virtual machine is configured to rely on resource objects in a resource pool for performing one or more computing operations. The system can determine that the event is a particular type of event. Based on determining that the event is the particular type of event, the system can select a scaling policy corresponding to the particular type of event. The system can then apply the scaling policy to the event data to determine a scaling strategy for adjusting the amount of resource objects.

## Claims

### Claim 1

A non-transitory computer-readable medium comprising program code that is executable by a processor for causing the processor to:
receive a notification including event data indicating an event related to a virtual machine, the virtual machine being configured to rely on resource objects in a resource pool for performing a computing operation;
based on the event data, determine that the event is of a particular type among a plurality of types of events;
based on determining that the event is of the particular type, select a scaling policy corresponding to the particular type;
apply the scaling policy to the event data to determine a scaling strategy; and
adjust an amount of resource objects in the resource pool based on the scaling strategy.

### Claim 2 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein configuration data specifies relationships between a plurality of predefined scaling strategies and the plurality of types of events, and further comprising program code that is executable by the processor for causing the processor to:
receive the configuration data; and
determine a relationship, in the configuration data, between the scaling policy and the particular type of the event; and
select the scaling policy based on the relationship in the configuration data.

### Claim 3 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the resource pool is a message pool, and wherein the resource objects include message objects for handling messages in the message pool.

### Claim 4 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the virtual machine is a Java Virtual Machine (JVM), and wherein a monitoring tool is coupled to the JVM for generating and transmitting the notification in response to detecting the event.

### Claim 5 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the scaling policy is configured to:
determine whether a value in the event data is greater than or equal to a predefined threshold value;
in response to determining that the value is greater than or equal to the predefined threshold value, select a first scaling strategy as the scaling strategy to be implemented; and
in response to determining that the value is less than the predefined threshold value, select a second scaling strategy as the scaling strategy to be implemented, the second scaling strategy being different from the first scaling strategy.

### Claim 6 (depends on 1)

The non-transitory computer-readable medium of claim 1, further comprising program code that is executable by the processor for causing the processor to:
identify a set of software processes running in a computing environment; and
for each process in the set of software processes:
initiate a corresponding monitoring tool configured to monitor the process and transmit notifications of events related to the process, the notifications including a set of event data associated with the events; and
initiate a corresponding scaling service configured to receive the notifications from the corresponding monitoring tool and responsively adjust a size of a corresponding resource pool based on the set of event data.

### Claim 7 (depends on 6)

The non-transitory computer-readable medium of claim 6, wherein the corresponding scaling service is configured to:
compare values in the set of event data to one or more predefined thresholds;
based on determining that the values are greater than or equal to the one or more predefined thresholds, decrease the size of the corresponding resource pool according to a first scaling policy identified in configuration data; and
based on determining that the values are less than the one or more predefined thresholds, increase the size of the corresponding resource pool according to a second scaling policy identified in the configuration data.

### Claim 8 (depends on 1)

The non-transitory computer-readable medium of claim 1, further comprising program code that is executable by the processor for causing the processor to adjust the amount of resource objects in the resource pool based on the scaling strategy by:
shutting down the virtual machine;
adjusting a setting in a configuration file associated with the virtual machine based on the scaling strategy to produce an updated configuration file for the virtual machine, the setting controlling the amount of resource objects in the resource pool; and
deploying the virtual machine using the updated configuration file.

### Claim 9

A method comprising:
receiving, by a processor, a notification including event data indicating an event related to a virtual machine, wherein the virtual machine is configured to rely on resource objects in a resource pool for performing one or more computing operations;
based on the event data and by the processor, determining that the event is a particular type of event from among a plurality of types of events;
based on determining that the event is the particular type of event and by the processor, selecting a scaling policy corresponding to the particular type of event from among a plurality of scaling policies corresponding to the plurality of types of events;
applying, by the processor, the scaling policy to the event data to determine a scaling strategy; and
adjusting, by the processor, an amount of resource objects in the resource pool based on the scaling strategy.

### Claim 10 (depends on 9)

The method of claim 9, wherein the plurality of predefined scaling strategies and the plurality of types of events are identified in configuration data, the configuration data including relationships between the plurality of scaling policies and the plurality of types of events, and further comprising:
receiving, by the processor, the configuration data; and
determining a relationship, by the processor and in the configuration data, between the scaling policy and the particular type of event; and
selecting, by the processor, the scaling policy based on the relationship in the configuration data.

### Claim 11 (depends on 9)

The method of claim 9, wherein the resource pool is a message pool, and wherein the resource objects include message objects for handling messages in the message pool.

### Claim 12 (depends on 9)

The method of claim 9, wherein the virtual machine is a Java Virtual Machine (JVM), and wherein a monitoring tool is coupled to the JVM for generating and transmitting the notification in response to detecting the event.

### Claim 13 (depends on 9)

The method of claim 9, further comprising:
determining, by the processor, whether a value in the event data is greater than or equal to a predefined threshold value;
in response to determining that the value is greater than or equal to the predefined threshold value, selecting, by the processor, a first scaling strategy as the scaling strategy to be implemented; and
in response to determining that the value is less than the predefined threshold value, selecting, by the processor, a second scaling strategy as the scaling strategy to be implemented, the second scaling strategy being different from the first scaling strategy.

### Claim 14 (depends on 9)

The method of claim 9, further comprising:
identifying, by the processor a set of software processes running in a computing environment; and
for each process in the set of software processes:
initiating, by the processor, a corresponding monitoring tool configured to monitor the process and transmit notifications of events related to the process, the notifications including a set of event data associated with the events; and
initiating, by the processor, a corresponding scaling service configured to receive the notifications from the corresponding monitoring tool and responsively adjust a size of a corresponding resource pool based on the set of event data.

### Claim 15 (depends on 14)

The method of claim 14, wherein the corresponding scaling service is configured to:
compare values in set of event data to one or more predefined thresholds;
based on determining that the values are greater than or equal to the one or more predefined thresholds, decrease the size of the corresponding resource pool according to a first scaling policy identified in configuration data; and
based on determining that the values are less than the one or more predefined thresholds, increase the size of the corresponding resource pool according to a second scaling policy identified in the configuration data.

### Claim 16 (depends on 9)

The method of claim 9, further comprising adjusting the amount of resource objects in the resource pool based on the scaling strategy by:
shutting down, by the processor, the virtual machine;
adjusting, by the processor, a setting in a configuration file associated with the virtual machine based on the scaling strategy to produce an updated configuration file for the virtual machine, the setting controlling the amount of resource objects in the resource pool; and
deploying, by the processor the virtual machine using the updated configuration file.

### Claim 17

A system comprising:
a processor; and
a memory including instructions that are executable by the processor for causing the processor to:
receive a notification including event data indicating an event related to a virtual machine, wherein the virtual machine is configured to rely on resource objects in a resource pool for performing one or more computing operations;
based on the event data, determine that the event is a particular type of event from among a plurality of types of events;
based on determining that the event is the particular type of event, select a scaling policy corresponding to the particular type of event from among a plurality of scaling policies corresponding to the plurality of types of events;
apply the scaling policy to the event data to determine a scaling strategy; and
adjust an amount of resource objects in the resource pool based on the scaling strategy.

### Claim 18 (depends on 17)

The system of claim 17, wherein the plurality of predefined scaling strategies and the plurality of types of events are identified in configuration data, the configuration data including relationships between the plurality of scaling policies and the plurality of types of events, and the memory further comprises instructions that are executable by the processor for causing the processor to:
receive the configuration data; and
determine a relationship, in the configuration data, between the scaling policy and the particular type of event; and
select the scaling policy based on the relationship in the configuration data.

### Claim 19 (depends on 17)

The system of claim 17, wherein the resource pool is a message pool, and wherein the resource objects include message objects for handling messages in the message pool.

### Claim 20 (depends on 17)

The system of claim 17, wherein the virtual machine is a Java Virtual Machine (JVM), and wherein a monitoring tool is coupled to the JVM for generating and transmitting the notification in response to detecting the event.
