Session affinity cache and manager
First Claim
1. A computer-implemented method comprising:
- receiving a request for a resource, the request comprising a common session identifier and a resource identifier;
determining a resource node session identifier from an entry in a session affinity cache based on a combination of the common session identifier and the resource identifier, the session affinity cache comprising a plurality of entries with at least four fields for each of the plurality of entries, the at least four fields comprising a common session identifier field, a resource node session identifier field, a resource identifier field, and a uniform resource identifier field, wherein the common session identifier is associated with a plurality of resource node session identifiers, each of the plurality of resource node session identifiers having a single name and value pair, and wherein each of the plurality of resource node session identifiers is associated with a separate resource node;
replacing the common session identifier in the request with the determined resource node session identifier; and
forwarding the request to a resource node associated with the requested resource using the determined resource node session identifier.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for managing sessions by a load balancer using a session affinity cache to manage common session identifiers and resource node session identifiers. A session affinity manager within the load balancer utilizes a common session identifier to represent multiple sessions to a client. The session affinity manager provided generates a common session identifier for a set of resource node sessions for each client. The relationship between the resource node session identifiers and common session identifier is maintained in the session affinity cache by the session affinity manager. The session affinity manager translates client requests using the common session identifier into requests using the resource node session identifier retrieved from the session affinity cache. The session affinity manager rewrites resource node responses to use a common session identifier in place of resource node session identifiers.
23 Citations
17 Claims
-
1. A computer-implemented method comprising:
-
receiving a request for a resource, the request comprising a common session identifier and a resource identifier; determining a resource node session identifier from an entry in a session affinity cache based on a combination of the common session identifier and the resource identifier, the session affinity cache comprising a plurality of entries with at least four fields for each of the plurality of entries, the at least four fields comprising a common session identifier field, a resource node session identifier field, a resource identifier field, and a uniform resource identifier field, wherein the common session identifier is associated with a plurality of resource node session identifiers, each of the plurality of resource node session identifiers having a single name and value pair, and wherein each of the plurality of resource node session identifiers is associated with a separate resource node; replacing the common session identifier in the request with the determined resource node session identifier; and forwarding the request to a resource node associated with the requested resource using the determined resource node session identifier. - View Dependent Claims (2, 3, 4, 5, 6, 7, 9)
-
-
8. A non-transitory computer readable medium, having instructions stored therein, which when executed, cause a processing device to perform a set of operations comprising:
-
receiving a request for a resource, the request comprising a common session identifier and a resource identifier; determining a resource node session identifier from an entry in a session affinity cache based on a combination of the common session identifier and the resource identifier, the session affinity cache comprising a plurality of entries with at least four fields for each of the plurality of entries, the at least four fields comprising a common session identifier field, a resource node session identifier field, a resource identifier field, and a uniform resource identifier field, wherein the common session identifier is associated with a plurality of resource node session identifiers, each of the plurality of resource node session identifiers having a single name and value pair, and wherein each of the plurality of resource node session identifiers is associated with a separate resource node; replacing the common session identifier in the request with the determined resource node session identifier; and forwarding the request to a resource node associated with the requested resource using the determined resource node session identifier. - View Dependent Claims (10, 11, 12, 13, 14)
-
-
15. A system comprising:
-
a session affinity manager executable by a computer system, the session affinity manager to track a relationship between a common session identifier and a plurality of resource node session identifiers, each of the plurality of resource node session identifiers having a single name and value pair, wherein each of the plurality of resource node session identifiers is associated with a separate resource node; and a session affinity cache coupled to the session affinity manager, the session affinity cache to store an entry comprising a combination of the common session identifier, the session affinity cache comprising a plurality of entries with at least four fields for each of the plurality of entries, the at least four fields comprising a common session identifier field, a resource node session identifier field, a resource identifier field, and a uniform resource identifier field, the plurality of resource node session identifiers and a plurality of resource identifiers, wherein the session affinity manager is configured to modify a request for a resource by replacing the common session identifier in the request with a resource node session identifier corresponding to the resource. - View Dependent Claims (16, 17)
-
Specification