• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2008, Vol. 30 ›› Issue (2): 19-20.

• 论文 • 上一篇    下一篇

基于多线程事件驱动框架高性能应用层网关的设计与实现

王晓川 金士尧 夏明波   

  • 出版日期:2008-02-01 发布日期:2010-05-19

  • Online:2008-02-01 Published:2010-05-19

摘要:

应用层网关是主动自调度集群服务系统中的关键子系统,其主要功能是接收和分析用户请求,并根据后端执行服务器的控制消息转发用户请求及后继的服务器应答数据。为保证其在高负载下的处理性能,在Linux内核中基于多线程事件驱动框架及协议状态机处理机制,设计并实现了具有很高通用性的应用层网关,支持HTTP等多种集群服务。测试表明,它在数据吞吐率、连接吞吐率等多方面具有很高的性能。

关键词: 集群 应用层网关 事件驱动 协议状态机

Abstract:

Application gateway is a key subsystem of the ASAS. It receives client requests and relays data between clients and back-end servers according to the control commands from the back-end servers. To provide high performance under heavy load, we design and implement it in the Linux kernel based on the mu  lti-thread event-driven framework and the protocol state machine. It has great flexibility in supporting many cluster services such as HTTP. Tests also  prove its high performance in data throughput and connection throughput.

Key words: cluster, application gateway, event-driven, protocol state machine