The present invention is generally directed to distributed data processing environments. More particularly, the present invention is directed to methods and systems for synchronizing global resources in an efficient manner. Even more particularly, the present invention is directed to the use of local and aggregate syndromes as a mechanism for maintaining consistent, synchronized global resources.
In distributed data processing environments, distributed applications often require information which includes information about peer processes or nodes. This information includes such things as globalized resource or configuration data regarding distributed resources or distributed configuration data. In other words, each peer process has its own set of resource (that is, it has one of the distributed resources), and also uses collected resources belonging to all peer processes (that is, uses globalized resources).
One of the solutions to the problem of global resource synchronization (that is, global resource consistency in the temporal domain) in a distributed data processing environment is the use of a central data repository to store copies of the resources so that every peer process is able to access, from one location, a globalized view of the resources. This method provides an easy way to globalize the distributed resources by simply updating the single central repository without introducing any concern for synchronization of the global resource between peer nodes. However, this method, with its central repository could easily become not only a single point of failure but could also easily become a bottleneck which severely and negatively impacts system performance. Without some form of central repository, coordination or synchronization, peer processes work incorrect or even fail. This is because, in this approach, globalization is carried out through a single location: every peer process is trying to access this location and thereby causes a performance degradation. Accordingly, the synchronization methods proposed herein seek to avoid such problems.
Another solution to the problem of synchronization of globalized distributed resources is the replication of the global resources on every peer node. In this approach, there is the advantage that there is no single point of the failure or performance bottleneck, because every peer node keeps a replicated copy of the globalized resource. However, there are still several issues and areas of concern that occur with resource replication as a solution method. For example, there is the issue of how one can efficiently distribute the resources. Additionally, assuming that one starts with a consistent set of distributed resources, there is also the issue of how to efficiently synchronize the replicated copy of the globalized resource as changes occur in the distributed environment. These concerns are exacerbated when the distributed resources are determined for the first time, as for example when a new node joins the peer computing environment and when the distributed resources need to be resynchronized whenever the one of distributed resources is changed or when one of the peer nodes either fails or leaves the established distributed environment.
Unfortunately, it is not only difficult to notify all of the peer processes, in a synchronized manner, concerning changes made in the distributed resources (for example, changes in their content, as opposed to other resource attributes such as time of last local access) so as to preclude the use of different resource contents for the globalized resource amongst the peer processes (or nodes), but it is also difficult to optimize the globalization of the distributed resources. That is to say, it is difficult to provide updated information to a plurality of peer applications running in a distributed system, particularly if the information needed is voluminous. Additionally, if a few peer processes miss the notification of the changes or receive the notifications asynchronously, the overall coordination between peer processes may fail or may cause unexpected and undesired results. The negative impact of the inconsistency problem is even greater under the following situations:
The consistency problem between peer processes has been dealt with to limited degrees in other systems, see “Group Communication in the Amoeba Distributed Operating System” by M. F. Kassshoek and A. S. Tanenbaum, Proceedings of the IEEE 11th International Conf. on Distributed Computing Systems, pp. 222–230, and “Design Alternatives for Process Group Membership and Multicast” by K. P. Birman, R. Cooper and B Gleeson, pp 1–31, 1991. The contribution to this art added by the present invention is the consistent synchronization and efficient globalization of the distributed resources provided, and the “ease of use” in identifying specific semantics related to the consistent and automatic propagation of the notifications between peer processes. This allows an application program to use the resource in a consistent manner at all times.
Therefore, it is important that applications have a mechanism to notify all peer processes concerning changes made to distributed resources in a synchronized manner as well as having a mechanism for the automatic propagation of the changes between peer processes. Applications which execute in an environment with tight consistency requirements should therefore be able to benefit from being provided with an infrastructure that not only provides synchronization but which also provides propagation of the changes in distributed resources. However, it is very difficult to create such infrastructure; if all of the applications are forced to do it on their own, each one runs the risks of repeating the same errors, and they may still lose consistency with each other. Accordingly, the present invention provides an infrastructure which solves these problems in an efficient manner which is available to all applications running in a distributed data processing environment.
In accordance with a preferred embodiment of the present invention a method is provided for synchronizing global resources in a distributed data processing environment. The method comprises the steps of: generating a local syndrome within each one of a set of peer nodes in the distributed environment, the local syndrome being a function of the contents of the shared global resource (that is, the replicated globalized resource); generating an aggregate syndrome as a function of the local syndromes; updating local versions of the shared global resources upon receipt of an aggregate syndrome which does not match the local version of the aggregate syndrome; and transmitting new local syndrome values to the peers following the update operation. In particular, the present invention takes advantage of the generation of syndrome values which provide a shortened indication of whether or not a given globally shared resource has changed. Furthermore, the present invention also takes advantage of the generation of an aggregate syndrome from a plurality of local syndromes so as to provide a degree of granularity in determining which peer nodes include shared global resource information which does not match the rest.
Accordingly, it is an object of the present invention to improve the operation of distributed data processing systems.
It is also an object of the present invention to provide a mechanism to indicate changes in shared global resources in distributed data processing systems.
It is also a further object of the present invention to provide a mechanism which facilitates the entry and removal of nodes in a clustered data processing environment.
It is yet another object of the present invention to take advantage of existing Group Service interfaces, protocols and utilities to improve upon the sharing of global resources.
It is a still further object of the present invention to provide synchronization of global resources without exchanging the full content of the globally shared resource.
It is also an object of the present invention to provide consistent notification of changes in globally shared resources in a distributed data processing environment.
It is another object of the present invention to significantly improve access to globally shared resources.
It is a still further object of the present invention to take advantage of existing API's (Application Programming Interfaces).
It is also an object of the present invention to permit individual peer processes to track changes in the global resources.
Lastly, but not limited hereto, it is an object of the present invention to promote the utilization of distributed data processing environments.
The recitation herein of a list of desirable objects which are met by various embodiments of the present invention is not meant to imply or suggest that any or all of these objects are present as essential features, either individually or collectively, in the most general embodiment of the present invention or in any of its more specific embodiments.
The subject matter which is regarded as the invention is particularly pointed out and distinctly claimed in the concluding portion of the specification. The invention, however, both as to organization and method of practice, together with the further objects and advantages thereof, may best be understood by reference to the following description taken in connection with the accompanying drawings in which:
A proper understanding of the operation of the present invention is best had from first considering the problems intended to be solved. These problems include:
The present invention solves the above problems by providing the following:
Therefore, applications which employ the features of the present invention have the following general advantages:
To achieve the goals described above, the following concepts and functionalities of Group Services system software are used. These services are provided with the software that accompanies pSeries data processing systems offered by the assignee of the present invention. These concepts and functionalities include:
The following methods are used for communication between peers in distributed systems:
In the present context, these messaging primitives are assumed as already implemented. They may be implemented using the Group Services protocol, as described above for the pSeries of machines, but they are not limited to the Group Services protocols and any similar set of communication tools may be employed. The only important feature is the behavior indicated above.
Attention is now more specifically focused upon how the goals and objectives of the present invention are achieved in terms of currently available resources, such as the communication utilities described above. In particular, attention is directed to
While
Attention is now focused upon specific mechanisms for carrying out the methods recited herein so as to achieve the goals, purposes and objects stated above.
Each node has local resource 140 which is managed (or updated) locally and replicated globalized and aggregated resource 110 which consists of all local resources (see
The content is the resource itself, which can be large (as for example, in the case of a large data file or database file). However, the syndrome of the resource comprises a relatively small amount of data which is represented as a function of the content:
syndrome=S(content)
In this context, the function S generally satisfies the following conditions. If S associates, via a candidate function mapping, syndrome s1 with content c1, and correspondingly associates syndrome s2 with content c2, thus implying that one can write s1=S(c1) and s2=S(c2), where the parentheses denote a function relationship between the entities specified, it is generally, if not almost always, the case that:
if s1=s2, then c1=c2,
The specific function S which is chosen to satisfy the above described properties is not critical. It could comprise a monotonically increasing or decreasing value as a function of the contents. It could just as easily comprise a cyclic redundancy check (CRC) code, or a collection of such codes, or it could even the comprise MD5 digest code developed by Ronald L. Rivest of MIT (which takes as input a message of arbitrary length and produces as output a 128-bit “fingerprint” or “message digest” of the input), or any other codes which enables the resources to be distinguished with high probability. Certainty of distinction is not essential. It is also worth noting that the syndrome function used in the generation of the local syndromes s, does not have to comprise the same syndrome function which is used to generate the aggregate syndrome. However, for purposes of simplicity, implementation and ease of understanding, the same syndrome generating function, S, is preferably used both for the generation of local syndromes as well as for the generation of the aggregate syndrome.
If the distributed local resources is to be updated only on a single node, the function, s1, is preferably a monotonically increasing or decreasing function since then the resulting value is uniquely mappable to a resource. However, for the globalized resource, CRC or MD5 coding functions are preferred candidates since they are more easily aggregated at any one of nodes.
Furthermore, the aggregated syndrome, SG, is computed from the syndromes of the globalized resource:
SG=S(s1+s2+s3+ . . . +sn),
where s1+s2+s3+ . . . +sn is a collection, in the sense of a concatenation of all distributed syndromes, rather than indicating a modulo-2 or exclusive-OR summing operation.
The globalized resource comprises the distributed local resources and its aggregated syndrome is based upon (that is, is a function of) all of the local syndromes. Therefore, two globalized resources are different if two aggregated syndromes are different.
Attention is now focused upon different ones of the relevant events that occur in a distributed data processing system. These include the situations of having a new node join the group, updating resources and handling peer process failure or stoppage.
See
Group Services automatically issues a failure protocol to the peer processes when a peer process or node fails. There is no need to have special action other than voting “APPROVE”.
As shown in
As shown in
While the present invention has been described above in terms of its usage on an IBM pSeries machine which includes a plurality of nodes and which includes operating system level programs, interfaces, protocols or utilities such as Group Services and Topology Services which facilitate implementation of the methods set forth above, it should be fully understood that the concepts disclosed herein are equally applicable for usage in any distributed environment. It is also noted that while the present invention has been described above in terms of specific syndrome functions, it is noted that while the ideal syndrome maps all different values for the content of the globally shared resources into different syndrome values, this is neither strictly possible nor required since the present invention achieves its goals of efficiency even if there are infrequent (or more likely, rare) instances where communication of relatively large amounts of shared global resource information (content) occurs. In short, syndrome perfection is not a required aspect of the present invention.
It is also noted that the description above is particularly addressed to the situation in which the shared global resource is a data file stored on or in a nonvolatile data storage medium such as a rotating magnetic or optical disk memory system. However, it is noted that the shared global resource also includes information stored in a volatile memory system such as system RAM (Random Access Memory).
While the invention has been described in detail herein in accordance with certain preferred embodiments thereof, many modifications and changes therein may be effected by those skilled in the art. Accordingly, it is intended by the appended claims to cover all such modifications and changes as fall within the true spirit and scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
4866606 | Kopetz | Sep 1989 | A |
5604882 | Hoover et al. | Feb 1997 | A |
5623655 | Chisaka | Apr 1997 | A |
5649195 | Scott et al. | Jul 1997 | A |
5768538 | Badovinatz et al. | Jun 1998 | A |
5790772 | Badovinatz et al. | Aug 1998 | A |
5799146 | Badovinatz et al. | Aug 1998 | A |
5826253 | Bredenberg | Oct 1998 | A |
5845082 | Murakami | Dec 1998 | A |
5893116 | Simmonds et al. | Apr 1999 | A |
5933604 | Inakoshi | Aug 1999 | A |
5978842 | Noble et al. | Nov 1999 | A |
5991821 | Badovinatz et al. | Nov 1999 | A |
5999947 | Zollinger et al. | Dec 1999 | A |
6016505 | Badovinatz et al. | Jan 2000 | A |
6021118 | Houck et al. | Feb 2000 | A |
6026426 | Badovinatz et al. | Feb 2000 | A |
6052363 | Koch | Apr 2000 | A |
6061686 | Gauvin et al. | May 2000 | A |
6070189 | Bender et al. | May 2000 | A |
6098078 | Gehani et al. | Aug 2000 | A |
6233623 | Jeffords et al. | May 2001 | B1 |
6311209 | Olson et al. | Oct 2001 | B1 |
6411967 | Van Renesse | Jun 2002 | B1 |
6574674 | May et al. | Jun 2003 | B1 |
6678799 | Ang | Jan 2004 | B1 |
6748381 | Chao et al. | Jun 2004 | B1 |
6950820 | Bae | Sep 2005 | B1 |
20010037311 | McCoy et al. | Nov 2001 | A1 |
20010045914 | Bunker | Nov 2001 | A1 |
Number | Date | Country | |
---|---|---|---|
20030225852 A1 | Dec 2003 | US |