一种具有可伸缩服务能力的高性能W eb代理服务器

来源期刊:中南大学学报(自然科学版)2005年第6期

论文作者:朱树人 彭妮

文章页码:1064 - 1068

关键词:代理服务器; AMPED模型;事件驱动;可伸缩服务能力

Key words:proxy server; AMPED mode;l event-driven; flexible service ability

摘    要:用非对称多进程事件驱动(AMPED)模型提高代理服务器高并发请求同步增长的可伸缩服务能力,扩展了AMPED模型的代理服务功能。同时,给出了Web代理服务器关键模块的设计与实现。该Web代理服务器定义了1个主进程, 6个helper进程,其中2个helper进程从磁盘上读文件的in ode信息, 4个helper进程从磁盘上读文件的内容,解决了I/O慢速处理和CPU快速处理之间的矛盾。事件驱动模块采用回调函数解决并发请求和状态跳转的管理。页面缓存模块采用自适应缓冲置换策略,根据资源大小,将大于阈值的资源按LRU算法移走,实现对页面的高效管理。测试结果表明,该web代理服务器在负载平均为9KB,处理请求数能达到800个/s,具有较强的并发请求处理能力。

Abstract: Asymmetricmultiprocess event driven (AMPED) modelwas used to improve the ability for Web proxy server to deal with hundreds of requests, and extend the proxy service functionality of AMPED. At the same time, the design and implementation of the importantparts of thisWeb proxy serverwas designed and implemented. This proxy serverdefined amain process and six helperprocesses, among them two helper processes read in ode information of the files from themagnetic disc, four helper processes read the contents of the files from the magnetic disc. The event-driven part adopted callback function to finish processesmanagementand state conversion, and the adaptive cache technologywas applied to thisproxy server, and the resources thatare bigger than a certain value are removed based onLRU algorithm, according to the size of resources. The experiment results show thatunder the load of9 KB in average, it can serve 800 requests per second, so this proxy serverhas high processing ability.

基金信息:湖南省自然科学基金资助项目
湖南省教育厅科学研究基金资助项目

有色金属在线官网  |   会议  |   在线投稿  |   购买纸书  |   科技图书馆

中南大学出版社 技术支持 版权声明   电话:0731-88830515 88830516   传真:0731-88710482   Email:administrator@cnnmol.com

互联网出版许可证:(署)网出证(京)字第342号   京ICP备17050991号-6      京公网安备11010802042557号