The present invention relates generally to facilities for replicating data in a distributed system, and more particularly to an improved facility for urgently replicating data in a distributed network environment.
In a distributed network environment, multiple copies of replicated data, such as multiple copies of files, objects, directory structures, programs or databases, are typically distributed throughout the network. For example, in a wide area network (WAN) comprised of multiple local area networks (LANs), a separate copy of replicated data may reside in at least one file server or workstation located on each of the LANs.
A benefit to having replicated data in the above-described distributed network includes facilitating access to the replicated data by each of the nodes on the network. Nodes may simply obtain the desired data locally on their LAN rather than seeking the data from another node on the WAN in a perhaps more costly and time-consuming manner. In addition, replicated data helps to distribute the load on any given node that would otherwise have to maintain the data and respond to all requests for such data from all other nodes on the network. A further benefit includes enhancing system reliability, e.g., no one node (which may fail) exclusively possesses access to required data. Databases, network directory services and groupware are typical products that take advantage of replication.
Since the replicated data may change and multiple copies of the replicated data are distributed throughout the network, replication facilities must typically employ some scheme for reconciling any differences and ensuring a certain amount of consistency between the replica set. A replica set is considered to have strong consistency if the changes to the data are reconciled simultaneously throughout the set at some ordained time. Weak consistency is a concept which allows the replicas to be moderately, yet tolerably, inconsistent at various times.
As can be appreciated, maintaining strong consistency generally requires the use of more resources, e.g., at least in terms of reduced available bandwidth. Moreover, strong consistency becomes more and more impractical, and at some point almost impossible, to guarantee as the numbers of replicas increase in a distributed system. This is mostly due to performance limitations, network partitioning, and the like. Consequently, most replicated systems implement some level of weak consistency.
An improved replication facility which provides a standardized interface for replication that can be used regardless of the underlying file system is described in commonly assigned U.S. patent application Ser. No. 08/181,704, the entire description found therein being incorporated herein by reference. For ease of understanding, the general replication topology described therein can be thought of as a graph of unidirectional edges where changes are transmitted from a source to a destination. Replication occurs pairwise and in one direction. In other words, the destination is responsible for originating a request for replication from the source. This technique is known as pulling, since the destination attempts to pull the data from the source.
In this facility, a cursor is maintained at the destination for each connection (edge) it has to a source from which it pulls data. The cursors track the last change information received by the destination from the respective sources. Using a cursor, when a destination requests updates from a given source, the source provides the destination with 1) a list of objects (or other data structures) that have changed and 2) the type of change which has occurred for each object since the last replication to that destination. To avoid unnecessary transmission, the source also filters from this list any change items which it knows were originated or propagated by the requesting destination. The source then updates the cursor maintained at the destination based upon the replication information provided during that replication cycle.
After the list of changes is received at the destination, each object identified in the list attempts to reconcile itself with its counterpart object at the source using a class-specific reconciler. Class specific reconcilers allow each class of object to define for itself what it means to be consistent with other replica objects in its class. If a class specific reconciler is not available for a given data structure, e.g., a text file, then a default reconciler is used, which utilizes, for example, a “last writer wins” algorithm.
Because the above replication facility is “pull” driven by the destination, replication data is only sent to the destination at discrete intervals of time, usually set according to policies defined by the network system administrator and/or the system administrators of the source and destination. Moreover, to conserve network resources (such as available bandwidth), the discrete intervals of time are often set so as to provide only weak consistency.
As a result of the delay between time intervals, a relatively substantial amount of time may occur between replications. Although some delay is ordinarily acceptable with many types of replicated data, significant potential problems may arise with other types of data structures. In particular, changes to certain classes of objects such as password or access rights changes to user objects cannot be unduly delayed if system security is to be maintained.
As discussed above, the solution of decreasing the time interval between replications is not always practicable or even possible. Other solutions have been considered such as 1) tracking the differences between changed data structures to reduce the amount of data that needs to be transmitted during replication, i.e., data logging, or 2) expediting the replication of certain objects. However, such prior art solutions have required that the replicas possess both substantial knowledge of the complete replication topology and/or intimate knowledge of the operating environment of the other replicas. In other words, the replicas need to possess knowledge and/or assurance that all replicas are of similar implementation, e.g., that the replicas have been implemented on uniform homogeneous object sets thereby obviating the above difficulties. As such, these solutions are not amenable to a distributed system wherein the replicas may have different file systems and/or many object types. Similarly, objects created by third parties cannot be easily replicated unless those objects are created with specific knowledge of the topology and file systems in which they may be replicated.
Accordingly, a primary objective of the present invention is to provide a system and method of efficiently replicating data objects in a distributed system of replicas.
In accomplishing that objective, it is an aim of the invention to provide a replication facility that maintains incremental differencing information and replicates the differencing information upon a request for replication.
It is also an objective of the invention to provide a replication facility that enables the expedited replication of certain data objects deemed urgent.
It is a related objective to provide a replication facility wherein an object may initiate its propagation to other replicas in the system.
Another objective of the invention is to provide a system and method for replicating objects in an object-oriented environment.
Still another objective of the invention is to provide a system and method for replicating objects wherein any object can be replicated throughout one or more replicas in the system without the need for the object to have knowledge of the replication topology or the operating environment.
It is a related objective to provide a replication facility that is extensible and replicates objects independent of the type of file systems used to store those objects.
Briefly, the present invention provides a system and method for expediting the replication of at least one specified object to a replica in a distributed computer system. A source object informs a source replica that it has changed, and the source extracts change information from the object. The source replica transmits information representative of the change to a destination replica, and the information is received at destination replica. The destination replica extracts the change information from the received information, and provides the change information to a replica object of the destination.
Other objects and advantages will become apparent from the following detailed description when taken in conjunction with attached drawings, in which:
While the invention is amenable to various modifications and alternative constructions, a certain illustrated embodiment thereof has been shown in the drawings and will be described below in detail. It should be understood, however, that there is no intention to limit the invention to the specific form disclosed, but on the contrary, the intention is to cover all modifications, alternative constructions, and equivalents falling within the spirit and scope of the invention.
Turning to the drawings and referring first to
Although not explicitly shown in
Physically, the interconnection mechanism 28 may include any well-known data transmission medium, such as coaxial cable, fiber optic cable, or the like, in accordance with a chosen standard for hardware interfaces within each of the devices. Such standards, including ARCnet®. Ethernet® and Token Ring®, and their associated hardware interfaces, are well known in the art, and thus are not described in detail herein. Suffice it to say that a wide variety of interface hardware and software are commercially available to connect computer-based resources in a distributed system.
The distributed system 20 includes client workstations 221–225 which may be personal computers or the like, each including a memory 301–305 having a distributed operating system 32 loaded therein. In the described embodiment, each workstation 221–225 acts as a replica by maintaining a copy of the replicated data in its own file system. There is no requirement that the file systems of the various workstations be the same. Other devices, such as other workstations (not shown), network servers 241–242, a printer 26 and routers (not shown) are also present in the system 20.
The replication facility of the present invention is capable of replicating data independent of the specific file systems employed. Indeed, the replicas may be maintained in a memory independent of any file system. For example, a replica set may be maintained in the non-volatile random access memory (NVRAM) of a personal data assistant (PDA) or the like. However, for simplicity herein the replicas are generally referred to as being maintained in a file system.
In keeping with one aspect of the invention, as best shown in
As shown in
Using the ReplStore interfaces 38 thus provides the replication facility with access to the objects to be replicated regardless of the underlying file system. The ReplStore interfaces 38 specify signatures (such as parameters) so that the code for implementing the appropriate replication function or functions may be executed. The code that implements the function is ordinarily provided by objects or alternatively by other known implementations. In an object oriented system, the objects that provide the code comply with the signature specified in the interface, and are referred to as objects which “support” the interface. For example, an object store which stores objects in an object set may be configured to support the ReplStore interfaces 38 so that the objects of that object set may be replicated throughout the system.
As shown in
To reconcile the local object set with a remote object set, the local ORA 42 contacts the remote ORA 44 and provides information via a cursor 50 (
According to one aspect of the invention, because it is generally inefficient to transfer the entire object each time replication is desired, if an object is properly configured, the replication facility 34 of the present invention ordinarily attempts to communicate only the differencing information, i.e., changes made to an object rather than the changed object itself, whenever possible. This concept is referred to as incremental replication. Of course, the facility 34 may be arranged to transfer the entire object when it determines that the size of the object makes it more efficient to do so than to transfer and apply the differencing information.
In the situation where the object file system (OFS) is employed at a given workstation, to communicate the differencing information, the replication facility 34 according to the present invention utilizes information maintained in the OFS to optimize replication. By way of background, when OFS diskspace is initially formatted, an update sequence number (USN) is set to some floor value, (e.g., zero) in the OFS for that diskspace. After every create, modify, rename, delete or move operation, the USN is monotonically adjusted, i.e., increased for that disk volume. The OFS also maintains a move/rename/delete log that tracks changes to the name of an object. Unlike time (which can be modified and reset), USNs are only advanced. Therefore, it is preferable to utilize the USN for the cursor rather than a time stamp whenever the source node employs the OFS.
In operation, as shown at step 100 of the flow diagram of
At step 102 the source 221 obtains a list of changes (including differencing information) in change log 52 and returns the list to the destination 222 when feasible. The individual change items 541–54n in the list 52 can either be logged as they are made to objects at the source, or dynamically rebuilt from stored information. For example, if the OFS is employed, the change log 52 can be dynamically rebuilt from the USN entries 56 and the move/rename/delete log 58 in the OFS diskspace 60 (
The RIB 70 is used for propagation dampening, i.e., to determine if a change needs to be propagated to a particular node so that changes are only propagated once to each replica node in the system. To this end, the RIB 70 comprises 1) an originator field 72 that indicates which node in the distributed system of replicas originated the change, and 2) a propagator field 76 indicative of which replica in the distributed system propagated the change to the source 221. The originator field 72 will be the same as the propagator field 76 when the resource in which a change was originated was the one that propagated it to the source 221. To minimize network traffic, the source 221 reviews the change log and filters out change items 54 that were originated or propagated by the requesting destination 222 before transmission to the destination 222. However, because the content and the access rights on an object (security) can be separately changed and propagated, the RIB includes both content and security components, and treats each type of change separately with regard to propagation dampening. Thus, for example, if a security change is made at replica A for a given object while a content change is made at replica B for that same object, the respective changes will be propagated to the other replica and not filtered out, regardless of which direction was propagated first.
The change log 52 also includes a change data field 74 for transferring the difference information of MODIFY change types should the object class support differencing. If the object supports differencing, the source side ORA service fills in this data field with differencing information provided by the object. Significantly, the objects themselves can be appropriately configured to define the content of the change data field 74 independent of any prior agreements with the replication facility 34. Thus, objects created by third parties can essentially log and later apply the differencing information according to their own definitions.
When the change log 52 is received from the source 221 (step 106), the ORA of the destination 222 invokes the appropriate reconcilers 88 or 90 to make its objects consistent with those at the source 221. If the object is configured to apply differencing information, the class specific reconciler 88 applies the differencing information in data field 74 to each object identified in ROBID field 64 according to information contained in the object itself. This may or may not include information such as class information, but in any event enables the object itself to determine what it means to be consistent with its counterpart objects at other replicas. In essence, an object created by a third party capable of functioning with differencing information thus determines its own level of consistency with its counterpart replicas.
As shown in
The replication facility 34 of the present invention is capable of performing regular replication with objects that are not configured to perform incremental replication as described herein. For example, if an object at a remote source does not provide its changes, but instead is arranged to perform class-specific reconciliation, the replication facility 34 handles the class-specific reconciliation on its objects, as described in U.S. patent application Ser. No. 08/181,704. Thus, at steps 110–111 the control component 80 also determines the type of reconciliation for each object based upon what information was received from the destination.
The reconciler component 82 provides the functions that perform the various types of reconciliation as determined by the control component 80. Thus, the reconciler component 82 includes a class specific reconciler 88 capable of performing on-line class specific reconciliation (step 114) if the object provides a class. Optionally, if supported by an object's class code, a class specific reconciler may be provided that is capable of generating and consuming differences. Thus, in the preferred embodiment, at least one class specific reconciler will apply received differencing information to the objects according to instructions in the object (step 112), when differencing information is received from the source 221. Finally, a class independent reconciler 90 is also available when no class is specified, and functions according to a “last writer wins” rule to ensure identical content of objects (step 116).
When all objects in the log 52 have been reconciled as determined at step 118, the replication and reconciliation for that destination and source are completed.
By way of example of how an object is reconciled when the object has been configured to operate with differencing information, when a replicated object's content is changed at the source, a MODIFY operation is included in the cursor 50 as a change item. The type field 62 for the renamed object contains a value indicating that the object identified in ROBID field 64 was modified at the time stamp and USN (both relative to the source) that are present in fields 66 and 68, respectively. The originator content field 72a and propagator content field 76a in this instance both contain the identity of the source, since in the present example the object was renamed at that source. After the source side ORA service has received the MODIFY change from its corresponding ReplStore, the ORA service asks the object to generate differencing information (if the object supports differencing), which it then stores in the change data field 74.
When the differencing information is received, the destination 222 requests reconciliation via the control component 80, which recognizes the differencing information. The control component 80 invokes the class specific reconciler component 88 to apply the changes. The class specific reconciler, which supports differencing, evaluates the object for instructions on how to reconcile it with the provided differencing information. In this example, the class specific reconciler 88 would typically modify the content of the destination object so that the objects are consistent.
As can be appreciated, extraction, transmission and application of the differencing information are distinct steps which the replication service can individually optimize. For example, extraction (at the source) and application (at the destination) can be scheduled so as to not conflict with other activities or heavy system usage. Transmission can include compressing and/or encrypting the differencing information if desired, regardless of whether the objects themselves support compression or encryption. As previously described, transmission can utilize any suitable transport mechanism, either synchronous or asynchronous.
An advantage to the replication facility described herein is that the objects define the content of their own differencing information, and are not required to have knowledge of the replication service. Enabling objects to call such replication services provides for significant extensibility. Further, in the Object Linking and Embedding (OLE) model of the present invention, it can be dynamically determined whether an object supports the differencing interface. Consequently, as new classes of objects are added to existing systems, the replication service can immediately determine how replication can be optimized for that object.
Turning to another aspect of the invention, there is provided a mechanism within the above-described replication facility 34 that enables a changed object to propagate itself to its replicas without waiting for a destination to initiate a replication cycle. This type of replication will be referred to hereinafter as “urgent replication.” Urgent replication preferably functions on a push model, in which the source pushes a changed object to one or more destinations, although it is feasible to construct a pull model wherein a destination regularly polls a source seeking urgent changes. Alternatively, other types of replication of urgent objects may be accomplished. For example, the source may notify a destination that it has urgent changes available, whereby the destination will pull those changes when ready, after some time interval. The time interval may be zero.
To accomplish urgent replication, certain objects are configured to recognize changes to themselves that are defined to be urgent, as shown in step 200 of
At step 206, the replication facility 34 of the present invention evaluates the relative urgency of each object that has identified itself as being urgent, as determined according to policies set by the system administrator. For example, security-type changes may be considered urgent enough to propagate every three minutes, while group changes may be propagated every ten minutes. The differencing information is generated almost immediately after notification, but only a single difference is derived regardless of how many edges are present over which the difference will be replicated.
Thus, unlike incremental replication, at step 210 the ORA service, promptly, but synchronously, asks the object having an urgent change to generate its differencing information. Once the difference is obtained, a copy of it is delivered'on each appropriate edge in the topology at step 212.
At step 214, the destination receives the differencing information and reconciles the objects as desired, preferably with relatively high priority. Communication between the source and destination takes place in the previously described manner over any suitable transport mechanism, however for security purposes synchronous replication is highly desirable. So that all replicas in the distributed system 20 receive the changes, the destination can be arranged to forward these urgent changes in a similarly urgent manner to other replicas that are not connected to the originating source.
As can be seen from the foregoing detailed description, there is provided a system and method for efficiently replicating data objects in a distributed system of replicas. The replication facility maintains incremental differencing information and replicates the differencing information upon a request for replication. The replication facility further enables the expedited replication of certain data objects deemed urgent, wherein a data structure may initiate its propagation to other replicas in the system. The replication facility replicates objects in an object-oriented environment, without the need for the replication objects to have knowledge of the replication topology or the operating environment. The replication facility is independent of the type of file systems used to store those objects, and is extensible.
This application is a continuation of U.S. patent application Ser. No. 08/673,929, filed Jul. 1, 1996, now U.S. Pat. No. 6,412,017.
Number | Name | Date | Kind |
---|---|---|---|
4432057 | Daniell et al. | Feb 1984 | A |
4620276 | Daniell et al. | Oct 1986 | A |
4714995 | Materna et al. | Dec 1987 | A |
4714996 | Gladney et al. | Dec 1987 | A |
4809170 | Leblang et al. | Feb 1989 | A |
4853843 | Ecklund | Aug 1989 | A |
4875159 | Cary et al. | Oct 1989 | A |
4887204 | Johnson et al. | Dec 1989 | A |
4888681 | Barnes et al. | Dec 1989 | A |
4954941 | Redman | Sep 1990 | A |
5001628 | Johnson et al. | Mar 1991 | A |
5032979 | Hecht et al. | Jul 1991 | A |
5109486 | Seymour | Apr 1992 | A |
5113519 | Johnson et al. | May 1992 | A |
5133075 | Risch | Jul 1992 | A |
5151989 | Johnson et al. | Sep 1992 | A |
5155847 | Kirouac et al. | Oct 1992 | A |
5170480 | Mohan et al. | Dec 1992 | A |
5202971 | Henson et al. | Apr 1993 | A |
5214776 | Bagnoli et al. | May 1993 | A |
5222217 | Blount et al. | Jun 1993 | A |
5247673 | Costa et al. | Sep 1993 | A |
5261094 | Everson et al. | Nov 1993 | A |
5274789 | Costa et al. | Dec 1993 | A |
5278979 | Foster et al. | Jan 1994 | A |
5285528 | Hart | Feb 1994 | A |
5287453 | Roberts | Feb 1994 | A |
5307481 | Shimazaki et al. | Apr 1994 | A |
5313646 | Hendricks et al. | May 1994 | A |
5333265 | Orimo et al. | Jul 1994 | A |
5333310 | Sakai | Jul 1994 | A |
5333317 | Dann | Jul 1994 | A |
5377323 | Vasudevan | Dec 1994 | A |
5388255 | Pytlik et al. | Feb 1995 | A |
5410691 | Taylor | Apr 1995 | A |
5414812 | Filip et al. | May 1995 | A |
5423037 | Hvasshovd | Jun 1995 | A |
5434974 | Loucks et al. | Jul 1995 | A |
5434994 | Shaheen et al. | Jul 1995 | A |
5440744 | Jacobson et al. | Aug 1995 | A |
5446902 | Islam | Aug 1995 | A |
5452448 | Sakuraba et al. | Sep 1995 | A |
5463774 | Jenness | Oct 1995 | A |
5471629 | Risch | Nov 1995 | A |
5504906 | Lutoff | Apr 1996 | A |
5551034 | Herz | Aug 1996 | A |
5553279 | Goldring | Sep 1996 | A |
5586310 | Sharman | Dec 1996 | A |
5588147 | Neeman et al. | Dec 1996 | A |
5600834 | Howard | Feb 1997 | A |
5613079 | Debique et al. | Mar 1997 | A |
5630116 | Takaya et al. | May 1997 | A |
5649194 | Miller et al. | Jul 1997 | A |
5649195 | Scott et al. | Jul 1997 | A |
5675787 | Miller et al. | Oct 1997 | A |
5675802 | Allen et al. | Oct 1997 | A |
5689706 | Rao et al. | Nov 1997 | A |
5740433 | Carr et al. | Apr 1998 | A |
5745753 | Mosher, Jr. | Apr 1998 | A |
5765171 | Gehani et al. | Jun 1998 | A |
5774552 | Grimmer | Jun 1998 | A |
5787262 | Shakib et al. | Jul 1998 | A |
5787442 | Hacherl et al. | Jul 1998 | A |
5796999 | Azagury et al. | Aug 1998 | A |
5802301 | Dan et al. | Sep 1998 | A |
5812793 | Shakib et al. | Sep 1998 | A |
5819272 | Benson | Oct 1998 | A |
5832222 | Dziadosz et al. | Nov 1998 | A |
5832225 | Hacherl et al. | Nov 1998 | A |
5832275 | Olds | Nov 1998 | A |
5832487 | Olds et al. | Nov 1998 | A |
5832506 | Kuzma | Nov 1998 | A |
5832514 | Norin et al. | Nov 1998 | A |
5845116 | Saito et al. | Dec 1998 | A |
5950198 | Falls et al. | Sep 1999 | A |
5968121 | Logan et al. | Oct 1999 | A |
5996057 | Scales, III et al. | Nov 1999 | A |
6049809 | Raman et al. | Apr 2000 | A |
6052724 | Willie et al. | Apr 2000 | A |
6247017 | Martin | Jun 2001 | B1 |
6301589 | Hirashima et al. | Oct 2001 | B1 |
6377950 | Peters et al. | Apr 2002 | B1 |
6453383 | Stoddard et al. | Sep 2002 | B1 |
6647393 | Dietterich et al. | Nov 2003 | B1 |
6901433 | San Andres et al. | May 2005 | B2 |
Number | Date | Country |
---|---|---|
0 278 472 | Aug 1988 | EP |
0881569 | Dec 1998 | EP |
WO9822892 | Jun 1998 | WO |
WO9838564 | Sep 1998 | WO |
WO9829792 | Oct 1998 | WO |
WO9858313 | Dec 1998 | WO |
WO0045303 | Aug 2000 | WO |
WO0195130 | Dec 2001 | WO |
Number | Date | Country | |
---|---|---|---|
20020144252 A1 | Oct 2002 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 08673929 | Jul 1996 | US |
Child | 10154014 | US |