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
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。