Apparatus and method for handling backend failover in an application server
First Claim
1. An apparatus comprising:
- at least one processor;
a memory coupled to the at least one processor;
an application server residing in the memory and executed by the at least one processor, the application server comprising;
a connection pool that specifies a number of allowable connections to a backend;
a backend failure detection mechanism that detects when the backend fails; and
a backend failure recovery mechanism that increases the specified number of allowable connections in the connection pool when the backend fails.
1 Assignment
0 Petitions
Accused Products
Abstract
An application server includes a connection pool that specifies a number of allowable connections, and includes a backend failure detection mechanism and a backend failure recovery mechanism. When the backend failure detection mechanism detects that the backend fails, applications waiting on the hung connections may be notified of the backend failure. The backend failure detection mechanism will then detect when the backend recovers and becomes available once again. Once the backend is available again, the backend failure recovery mechanism increases the number of connections in the connection pool to compensate for the hung connections. As each hung connection is timed out using a network timeout mechanism, the number of allowable connections is reduced. Eventually all of the hung connections will time out, with the result being that the connection pool will contain the same specified number of allowable connections it originally had before the backend failed.
-
Citations
20 Claims
-
1. An apparatus comprising:
-
at least one processor;
a memory coupled to the at least one processor;
an application server residing in the memory and executed by the at least one processor, the application server comprising;
a connection pool that specifies a number of allowable connections to a backend;
a backend failure detection mechanism that detects when the backend fails; and
a backend failure recovery mechanism that increases the specified number of allowable connections in the connection pool when the backend fails. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer-implemented method for an application server to handle failure of a backend coupled to the application server, the method comprising the steps of:
-
(A) detecting when the backend fails; and
(B) when the backend fails, increasing a specified number of allowable connections in a connection pool to the backend. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A program product comprising:
-
(A) an application server comprising;
a connection pool that specifies a number of allowable connections to a backend;
a backend failure detection mechanism that detects when the backend fails; and
a backend failure recovery mechanism that increases the specified number of allowable connections in the connection pool when the backend fails; and
(B) computer-readable signal bearing media bearing the application server. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
Specification