With the continuous development of computer technology and network technology, computational scale and complexity have increased substantially in computer application field. The traditional supercomputer using symmetric multi-processor has poor scalability and the cost is quite expensive, making it difficult to be widely used. However, benefiting from the research on parallel computing, people paid more and more attention to cluster system made up of numbers of collaborative computers. With the growing popularity of computer clusters, many computing centers which provide computing power rental service have appeared.Nowadays, there are many kinds of Distributed Resource Management System (DRMS) on the market, but there is no billing system compatible with different cluster systems, which leads to much inconvenience on calculation of charges. In this situation, we design and implement a distributed cluster billing system, which is based on Oracle Grid Engine and take the compatibility of the other cluster systems into account.Firstly, this thesis describes the requirements of distributed cluster billing system. Secondly, this thesis describes the design and implementation of the billing system, including the design of system’s framework, main functional module and system database, and the details of every module. In order to improve the compatibility with other cluster systems, strategy pattern is used in information collection module. A communication protocol is defined in socket communication module. In cost calculation module, the Mysql connection pool technology is used to improve the performance of the billing system. Finally, this thesis concludes all contributions and predicts the future improvements of the billing system. |