数据同步处理的方法和装置

文档序号:1662098 发布日期:2019-12-27 浏览:21次 >En<

阅读说明:本技术 数据同步处理的方法和装置 (Method and device for data synchronous processing ) 是由 王成 陈旭升 崔鹤鸣 沈伟锋 白龙 毕舒展 刘祖齐 于 2018-04-08 设计创作,主要内容包括:本申请提供了一种数据同步处理方法和装置,应用于计算机系统中的主节点,该计算机系统还包括与主节点连接的备节点,该方法包括:通过第一线程获取第一待处理信息,第一待处理信息为第一数据包或第一指示信息,第一指示信息用于指示第一数据包,其中,第一线程为执行非线程安全代码的线程;通过第一线程将第一待处理信息写入缓冲模块;通过第二线程对第一待处理信息执行一致性协商处理,该一致性协商处理用于同步主节点和备节点处理第一数据包的顺序;根据一致性协商处理的结果通过第一线程处理第一数据包。该方法和装置能够使得主节点在进行主备虚拟机的同步处理时利用主虚拟机处理其它任务,提高主节点的性能。(The application provides a data synchronization processing method and a device, which are applied to a main node in a computer system, wherein the computer system also comprises a standby node connected with the main node, and the method comprises the following steps: acquiring first information to be processed through a first thread, wherein the first information to be processed is a first data packet or first indication information, the first indication information is used for indicating the first data packet, and the first thread is a thread for executing a non-thread safety code; writing the first information to be processed into a buffer module through a first thread; performing consistency negotiation processing on the first information to be processed through a second thread, wherein the consistency negotiation processing is used for synchronizing the sequence of processing the first data packet by the main node and the standby node; the first data packet is processed by the first thread according to a result of the consistency negotiation process. The method and the device can enable the main node to process other tasks by using the main virtual machine when the main virtual machine and the standby virtual machine are synchronously processed, and improve the performance of the main node.)

1页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:静默帧期间的带宽利用

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类