×

Generating database sequences in a replicated database environment

  • US 9,846,733 B2
  • Filed: 07/11/2013
  • Issued: 12/19/2017
  • Est. Priority Date: 07/18/2012
  • Status: Expired due to Fees
First Claim
Patent Images

1. A computer-implemented_method for generating database sequences in a replicated database environment, comprising:

  • providing, by a processor, a group of nodes each hosting an instance of a replicated database, with one node in the group elected as a master node responsible for generating and distributing values for auto-generated values in a column or row of the replicated database;

    dividing, by the processor in the master node, a sequence space of possible auto-generated values for the column or row into sub-ranges and assigning a sub-range to a particular node in the group of nodes, wherein the auto-generated values are dividable into sub-network groups by a partition or node failure;

    recombining, by the processor, the sub-network group when one or more of the group of nodes rejoins the group of nodes, wherein recombining comprises;

    determining, by the processor, whether any one or more of the group of nodes is unable to reconnect with the master node;

    forming a sub-network comprising the one or more of the group of nodes unable to reconnect with the master node; and

    electing, by the processor, a new master node for the sub-network; and

    distributing, by the processor in the new master node, values of the assigned sub-range to a particular node of the group of nodes,wherein the values are assigned based on a message from the one or more of the group of nodes rejoining the group indicative that the one or more of the group of nodes is rejoining, wherein the new master node claims a sub-range having a smaller portion of a sequence of sub-space than the portion claimed by the master node;

    dividing, by the original and new master node or nodes, the sequence space of possible auto-generated values into sub-spaces for each group of nodes according to a size of each group of nodes; and

    for the new master node or nodes, assigning a sub-range for a particular node in the group of nodes.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×