Method, system, and storage medium for dynamically reordering resource participation in two-phase commit to heuristically optimize for last-agent optimization
First Claim
1. A method for last-agent optimization, comprising:
- establishing a connection to each resource in a plurality of resources for an application;
determining a current transactional context;
gathering usage statistics associated with each resource; and
heuristically determining an order of each resource in the current transactional context to achieve last-agent optimization based at least in part on the usage statistics.
4 Assignments
0 Petitions
Accused Products
Abstract
A histogram, or resource status history table, for multiple resources is created and maintained. A transaction or resource manager arranges and/or reorders various resources into a sequence based on the histogram such that read-only resources are prepared first and a sole non-read-only resource need not be prepared, but only committed. The transaction manager heuristically determines the order that resources are driven to achieve last-agent optimization. The histogram is kept related to context, based on runtime and applications context to ensure that usage patterns by context are optimized without the need for the installation to know any usage patterns.
-
Citations
18 Claims
-
1. A method for last-agent optimization, comprising:
-
establishing a connection to each resource in a plurality of resources for an application;
determining a current transactional context;
gathering usage statistics associated with each resource; and
heuristically determining an order of each resource in the current transactional context to achieve last-agent optimization based at least in part on the usage statistics. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system for last-agent optimization, comprising:
-
a histogram for holding usage statistics and history information for each resource in a plurality of resources; and
a transaction manager for ordering each resource in a current transaction based at least in part on the histogram so that read-only resources are prepared first and a sole non-read-only resource is committed without being prepared. - View Dependent Claims (10)
-
-
11. A system for last-agent optimization, comprising:
-
an application server running on a general-purpose computer;
a container hosted on the server;
at least one application running in the container, the application including at least one transaction using a plurality of resources;
a transaction manager on the server for heuristically ordering the resources during a commit phase of a two-phase commit process to achieve last-agent optimization; and
a connection manager on the server for supplying the resources to the application and for enlisting the resources with the transaction manager. - View Dependent Claims (12, 13, 14, 15, 16, 17)
-
-
18. A storage medium storing instructions for performing a method for last-agent optimization, comprising:
-
storing usage statistics in a histogram;
ordering a plurality of resources in a current transactional context using the histogram to achieve last-agent optimization; and
adjusting the ordering autonomically to changes in usage.
-
Specification