×

Database-less leasing

  • US 8,122,108 B2
  • Filed: 10/18/2006
  • Issued: 02/21/2012
  • Est. Priority Date: 05/16/2006
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method for database-less leasing comprising:

  • providing a plurality of application server instances executing on a plurality of nodes in a cluster;

    determining, using consensus among the plurality of application server instances within the cluster, a first application server instance to be cluster leader;

    creating a lease table at the first application server instance, wherein the first application server instance owns and hosts the lease table;

    storing copies of the lease table at each of the application server instances in the cluster;

    granting, by the first application server instance, ownership of a lease for a singleton service within the cluster to one application server instance, wherein for the duration of the lease, the singleton service is provided in the cluster by only the application server instance that owns the lease;

    maintaining the lease for the singleton service in the lease table;

    updating changes to the lease in the lease table wherein the lease table is used to allow automatic migration of the singleton service;

    replicating the changes to the lease to each copy of the lease table at each application server instance in the cluster;

    monitoring the lease table at the first application server instance by a migration master within the cluster; and

    if the application server instance that owns the lease fails,reassigning the lease, by the migration master, to a different application server instance in the cluster selected by the migration master,updating the lease in the lease table, andreplicating the changes to the lease to each copy of the lease table.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×