作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 体系结构与软件技术 • 上一篇    下一篇

面向多进程负载均衡的Hash 算法比较与分析

张 莹1,吴和生2   

  1. (1. 南京国电南自新能源科技有限公司,南京210032;2. 南京大学软件学院,南京210093)
  • 收稿日期:2013-07-24 出版日期:2014-09-15 发布日期:2014-09-12
  • 作者简介:张 莹(1975 - ),女,工程师,主研方向:Hash 算法;吴和生,高级工程师、博士研究生。
  • 基金资助:
    国家自然科学基金资助项目(60503021,60721002,60875038)。

Comparison and Analysis of Hash Algorithm for Multi-process Load Balancing

ZHANG Ying 1,WU He-sheng 2   

  1. (1. Nanjing Guodian Nanzi New Energy Science & Technology Co.,Ltd.,Nanjing 210032,China; 2. Software Institute,Nanjing University,Nanjing 210093,China)
  • Received:2013-07-24 Online:2014-09-15 Published:2014-09-12

摘要: Hash 算法在高性能多进程负载均衡中起到关键作用,但目前面向多进程负载均衡的Hash 算法研究主要 集中在Hash 算法设计和领域应用方面,较少有文献对现有的Hash 算法性能进行分析比较。为此,总结面向多进 程负载均衡的Hash 算法应具有的特征,并据此筛选出5 种适用于多进程负载均衡的主流Hash 算法,从分配均衡性 和耗时等方面进行理论分析和实验评估,为多进程负载均衡中Hash 算法的选择与使用提供依据。分析结果表明, Toeplitz Hash 算法较适合用于多进程的负载均衡。

关键词: 多进程, 负载均衡, Hash 算法, 分配均衡, 时延, 高性能

Abstract: Hash algorithm plays a key role in high performance multi-process load balancing. The study of Hash algorithm for multi-process load balancing is mainly concentrated on the design and application of Hash algorithm,yet analysis and comparative study for the performance of the existing Hash algorithm are fewer. So this paper summarizes the common features that Hash algorithm for multi-process load balancing should have, and screens five major Hash algorithms applied in multi-process load balancing. Theoretical analysis and experimental evaluation about balanced allocation and time-consuming of Hash algorithm provides a foundation for selecting Hash algorithm for multi-process load balancing,and shows that Toeplitz Hash is the best one.

Key words: multi-process, load balancing, Hash algorithm, allocation balancing, time delay, high performance

中图分类号: