| Java is an excellent program development language. Due to the advantage of cross-platform, it has been widely used in the development of distributed network applications. RMI technology is a simple, and the main way to develop networks distributed application system, which is also increasingly used now. Along with the complexity of client requests, it is difficult for a simple server to meet the needs of the current users. So cluster service based on this kind of application systems was produced.The key problem of cluster service is how to effectively use the system resources. Process migration mechanism is an effective way for cluster systems to achieve load balancing algorithm and load balancing algorithm is an important tool of achieving system resources efficient uses.The RMI technology is discussed and the RMI framework, plus the core system is introduced. And then, resource sharing and scheduling algorithm of clusters systems are introduced. To discuss the implementation of dynamic services balance scheduling model, we used the weak consistency of information to describe the partiality and inaccuracy of the node load information in cluster systems. Weak consistency of node information is the core issue when effective scheduling of dynamic load balancing algorithm is needed. According to this, a k-subset random algorithm the weak consistency of node information is presented in this thesis.Base on the k-subset random algorithm which has the property of node information weak consistency, a node information list structure with double-Infos mechanism is presented. Through a certain replacement algorithm, node Infos respectively save the information of the two Infos in each node to be the maximum set of overloading node in the number of k and the minimum set of underloding node in the number k in the current cluster system. In this case, when processing the balancing scheduling of dynamic services, whether nodes are in the estate of overloading or underloding, nodes will be able to find exactly what he is interested in the information Infos to be the standard of load balancing. Finally, dynamic load balancing algorithm based on RMI is presented. |