摘要
HTTP缓存服务器是提高HTTP Streaming系统客户并发量的关键环节。但当前主流HTTP缓存服务器,如Nginx、Squid、Varnish等,在缓存资源更新期间的行为都存在不足,当被应用在面向直播的HTTP Streaming系统中时,会周期性地把大量客户端请求转发至源服务器,从而制约了HTTP Streaming系统的可伸缩性。提出一种优化的HTTP缓存服务器在缓存更新期间的行为,即缓存服务器仅向源服务器转发一路客户端请求,缓存更新期间,拒绝其他关于该资源的请求。优化策略在使用最为广泛的Nginx服务器的基础上进行了实现。实验证明,优化后系统的伸缩性得到了显著提高。
HTTP cache server plays a key role in increasing the scalability of HTTP streaming systems. However mainstream cache servers, such as Nginx, Squid and Varnish, behave improperly when the cache file is being updated. When used in live HTTP Streaming systems, this behavior will cause the cache server to deliver many unneces-sary requests to the origin server periodically so that the scalability of the system is constrained. This paper puts for-ward an optimized behavior of the cache server under cache updating period, which is that the cache server just deliver one request to origin server and refuse all the other requests when the cache is being updated. The optimization strategy is implemented on Nginx. The evaluation results show that the scalability of the system is significantly en-hanced with the optimization.
出处
《计算机工程与应用》
CSCD
2012年第10期68-74,共7页
Computer Engineering and Applications
基金
上海科委科技攻关项目(No.11511503002)