一种缓存管理中同步版本方法和装置及其缓存管理系统制造方法及图纸

技术编号:6060052 阅读:215 留言:0更新日期:2012-04-11 18:40
本发明专利技术提供一种网络存储中的缓存管理系统通过把本地节点写向缓存的数据备份到集群节点中的空闲网络缓存,来实现写缓存数据的高可靠性。采用“全局版本号+本地版本号+请求序号”的同步版本机制,同步调整全局版本号,异步调整本地版本号和请求序号,降低了节点之间的数据同步开销。而且主节点与备份节点通过在本地比较版本信息可以独自的将缓存数据写向后端存储系统,灵活有效的释放缓存资源;从而实现系统的高性能。

Synchronous edition method and device in cache management and cache management system thereof

The invention provides a cache management system in network storage, which achieves the high reliability of writing cache data by writing local nodes to cache data in the cache to the idle network cache in the cluster nodes. The synchronization mechanism of the whole version version number + number + local version request number \, the global synchronization adjustment to adjust the local version number, version number and asynchronous request number, reduces the data synchronization overhead between nodes. Moreover, the main node and the backup node can write cache data to the back-end storage system independently by comparing the version information locally, so as to flexibly and effectively release the cache resources, thereby achieving high performance of the system.

【技术实现步骤摘要】

【技术保护点】
一种缓存管理中同步版本方法,其中所述缓存管理将本地节点写向缓存的写请求数据备份到备份节点,其特征在于所述同步版本方法包括以下步骤:步骤1,判断全局同步时钟是否到时,如果到时,则在节点之间同步系统版本,使本地节点和备份节点的系统版本保持一致,所述系统版本包括全局版本号,本地版本号和请求序号,其中所述全局同步时钟是一个固定时间;步骤2,判断本地同步时钟是否到时,如果到时,则在节点内调整系统版本,将所述系统版本的本地版本号增加1,请求序号初始化为0,而全局版本号保持不变,其中所述本地同步时钟是一个固定的短时间;步骤3,在收到写请求时,将所述系统版本的请求序号增加1,并将写请求的开始版本赋值为当前的系统版本;其中,所述写请求的开始版本包括全局版本号,本地版本号和请求序号。

【技术特征摘要】

【专利技术属性】
技术研发人员:司成祥许鲁孟晓烜刘振军韩晓明
申请(专利权)人:中国科学院计算技术研究所
类型:发明
国别省市:11

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1