CA2391680C

System and method for synchronizing copies of data in a computer system

Abstract

An improved synchronizationsystem and method for copies of data in a computersystem. The computer system comprises a cluster,wherein each computer in the cluster may store alocal copy of a data set along with a validity flagfor the local copy. The computer system furthercomprises a coupling system which is connectedto each of the computers in the cluster through acoupling system interface program, wherein thecoupling system is configured to coordinate thedata sharing and workload of the cluster. Thecomputer system also comprises an external datastorage shared by the computers in the cluster, Oneof the computers may read a first copy of the dataset from a primary data set on the external datastorage. The computer may then store the first copylocally and set a first validity flag to indicate thatthe first copy is valid. Another computer, server,or application program may make a second copyof the primary data set and set a second validityflag to valid. If the first copy is modified, then thesecond validity flag is set to invalid. The secondcopy may then be replaced with the modified copy,and the second validity flag may be set to validagain. A coupling system interface program maycomprise an application programming interface fordata synchronization, wherein the application programming interface is accessible by a plurality of application programs.

CA2391680C, drawing sheet 1
Sheet 1 of 19

Term

Term ended

Expired 29 June 2020, 6.2 years ago.

  1. Priority
  2. Filed
  3. Granted
  4. Expired
  5. Today

21 claims: 3 independent, 18 dependent

  1. 1
    CA 02391680 2011-04-21 CLAIMS 1. A method comprising:a computer system executing program instructions, wherein the computer system comprises a cluster, and wherein the cluster comprises: a plurality of computers, wherein a computer comprises a local memory;a coupling system comprising a local memory, wherein the coupling system is connected to each of the computers in the cluster, and wherein the coupling system is configured to coordinate data sharing of the cluster;an external data storage shared by the computers in the cluster;and a coupling system interface program stored in a computer readable storage medium, the coupling system interface program configured to communicate between the coupling system and a plurality of programs running on the computer;wherein the program instructions executed by the computer system implement: a first program reading a first copy of a primary data set in a primary memory location, wherein the first program is stored on a computer readable storage medium and executable on the computer system, wherein the primary memory location is in the external data storage;the first program storing the first copy in a first memory location, wherein the first memory location is in the local memory of a first computer in the cluster;setting a first validity flag to indicate that the first copy is valid;the first program sending a request to synchronize the first copy with other copies of the primary data set to the coupling system interface;the coupling system interface program forwarding the request to synchronize the first copy to the coupling system;the coupling system sending a first token to the coupling system interface, the first token comprising a location for the validity flag to be used for the first copy;the coupling system interface program sending the first token to the first program;CA 02391680 2011-04-21 the first program storing the first token in the first memory;a second program reading a second copy of the primary data set in the primary memory location, wherein the second program is stored on a computer readable storage medium and executable on the computer system;the second program storing the second copy in a second memory location, wherein the second memory location is in the local memory of a second computer in the cluster;setting a second validity flag to indicate that the second copy is valid;the second program sending a request to synchronize the second copy with other copies of the primary data set to the coupling system interface;the coupling system interface program forwarding the request to synchronize the second copy to the coupling system;the coupling system sending a second token to the coupling system interface, the second token comprising a location for the validity flag to be used for the second copy;the coupling system interface program sending the second token to the second program;and the second program storing the second token in the second memory;modifying the first copy;replacing the primary data set with the modified first copy;setting the second validity flag to indicate that the second copy is invalid in response to modifying the first copy;replacing the second copy with the primary data set;and setting the second validity flag to indicate that the second copy is valid after replacing the second copy with the primary data set.
  2. 10
    A system comprising:a plurality of computers forming a cluster, wherein a computer comprises a local memory and at least one validity flag, and wherein a copy of a data set that is stored in the local memory is assigned at least one corresponding validity flag;a coupling system comprising a local memory, wherein the coupling system is connected to each of the computers in the cluster, and wherein the coupling system is configured to coordinate data sharing of the cluster;and an external data storage shared by the computers in the cluster;a coupling system interface program stored in a computer readable storage medium, the coupling system interface program configured to communicate between the coupling system and a plurality of programs running on the computer;CA 02391680 2011-04-21 wherein the local memories of the computers or the coupling system store program instructions, wherein the program instructions are executable by the computers or the coupling system to implement a method comprising: a first program reading a first copy of a primary data set in a primary memory location, wherein the primary memory location is in the external data storage;the first program storing the first copy in a first memory location, wherein the first memory location is in the local memory of a first computer in the cluster;setting a first validity flag to indicate that the first copy is valid;the first program sending a request to synchronize the first copy with other copies of the primary data set to the coupling system interface;the coupling system interface program forwarding the request to synchronize the first copy to the coupling system;the coupling system sending a first token to the coupling system interface, the first token comprising a location for the validity flag to be used for the first copy;the coupling system interface program sending the first token to the first program;the first program storing the first token in the first memory;a second program reading a second copy of the primary data set in the primary memory location;storing the second copy in a second memory location, wherein the second memory location is in the local memory of a second computer in the cluster;setting a second validity flag to indicate that the second copy is valid;the second program sending a request to synchronize the second copy with other copies of the primary data set to the coupling system interface;the coupling system interface program forwarding the request to synchronize the second copy to the coupling system;the coupling system sending a second token to the coupling system interface, the second token comprising a location for the validity flag to be used for the second copy;the coupling system interface program sending the second token to the second program;and the second program storing the second token in the second memory;CA 02391680 2011-04-21 modifying the first copy;replacing the primary data set with the modified first copy;setting the second validity flag to indicate that the second copy is invalid in response to modifying the first copy;replacing the second copy with the primary data set;and setting the second validity flag to indicate that the second copy is valid after replacing the second copy with the primary data set.
  3. 15
    A computer readable medium having computer readable code embedded therein for execution on a computer system, wherein the computer system comprises a cluster, and wherein the cluster comprises:a plurality of computers, wherein a computer comprises a local memory;a coupling system comprising a local memory, wherein the coupling system is connected to each of the computers in the cluster, and wherein the coupling system is configured to coordinate data sharing of the cluster;an external data storage shared by the computers in the cluster;and a coupling system interface program stored in a computer readable storage medium, the coupling system interface program configured to communicate between the coupling system and a plurality of programs running on the computer;wherein program instructions are executable by the computer system to implement: a first program reading a first copy of a primary data set in a primary memory location, wherein the primary memory location is in the external data storage;the first program storing the first copy in a first memory location, wherein the first memory location is in the local memory of a first computer in the cluster;setting a first validity flag to indicate that the first copy is valid;the first program sending a request to synchronize the first copy with other copies of the primary data set to the coupling system interface;the coupling system interface program forwarding the request to synchronize the first copy to the coupling system;the coupling system sending a first token to the coupling system interface, the first token comprising a location for the validity flag to be used for the first copy;the coupling system interface program sending the first token to the first program;CA 02391680 2011-04-21 the first program storing the first token in the first memory;a second program reading a second copy of the primary data set in the primary memory location;the second program storing the second copy in a second memory location, wherein the second memory location is in the local memory of a second computer in the cluster;setting a second validity flag to indicate that the second copy is valid;the second program sending a request to synchronize the second copy with other copies of the primary data set to the coupling system interface;the coupling system interface program forwarding the request to synchronize the second copy to the coupling system;the coupling system sending a second token to the coupling system interface, the second token comprising a location for the validity flag to be used for the second copy;the coupling system interface program sending the second token to the second program;and the second program storing the second token in the second memory;modifying the first copy;replacing the primary data set with the modified first copy;setting the second validity flag to indicate that the second copy is invalid in response to modifying the first copy;replacing the second copy with the primary data set;and setting the second validity flag to indicate that the second copy is valid after replacing the second copy with the primary data set.