提出了一种结合内存缓存与磁盘缓存的新型缓存策略.该策略在原有内存缓存基础上增加了磁盘缓存,数据从内存中被淘汰时,从磁盘缓存空间中选择合适磁盘分片进行缓存,并建立索引管理已缓存数据,使对等网络中的节点利用彼此的闲置磁盘资源缓存更多的媒体数据,服务器的负载得到有效降低,节点在对等网络中从其他节点获取数据的成功率明显提高.实验证明,该缓存策略有效提高了系统的整体服务能力,充分利用对等网络中的空闲节点资源降低视频服务器的负载.
A new caching strategy that integrates memory caching and disk caching is proposed. In the new strategy, based on the old memory caching, peers select suitable pieces on the disk to cache the media data that is contested from memory and make use of free disk resource to cache more media data. The Load of the media server is efficaciously alleviated and the success rate of requesting media data from other peers is obviously improved. The experimental result shows that the new caching strategy obviously improves the service capacity of the whole system.