×

Data replication protocol with efficient update of replica machines

  • US 9,418,130 B2
  • Filed: 03/15/2013
  • Issued: 08/16/2016
  • Est. Priority Date: 11/06/2012
  • Status: Active Grant
First Claim
Patent Images

1. A method of updating replica machines that are connected to a leader machine, the method comprising:

  • maintaining, by each of the replica machines, an operation log, each log entry in each operation log including an operation log number, a key, and an operation performed on the key, the operation log sorted by operation log number;

    assigning, by the leader machine, a monotonically increasing operation log number to an operation command;

    receiving by the replica machines the operation command and operation log number assigned to the operation command from the leader machine to operate on the operation logs of the replica machines;

    operating by the replica machines on the operation command;

    inserting, into the operation log of each of the replica machines, a new log entry, the new log entry including the operation log number assigned to the operation command, a key specified in the operation command, and an operation to perform on the key specified in the operation command;

    updating a secondary index of each of the replica machines, the secondary index sorted by keys; and

    updating an operation log of a first replica machine based on an operation log of the leader machine by;

    iteratively inserting, into the operation log of the first replica machine, those log entries in the tail end of the operation log of the leader machine that are missing in the operation log of the first replica machine; and

    for each log entry being iteratively inserted into the operation log of the first replica machine, performing by the first replica machine an operation included in the said log entry being iteratively inserted into the operation log of the first replica machine.

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