lilai23 opened a new pull request #757:
URL: https://github.com/apache/servicecomb-service-center/pull/757


   本次提交主要是sc增量同步特性中,各个region的syncer之间的数据增量同步的部分,具体实现如下:
   
   1. 新增incrementPulled类型的user event,收到该user 
event的其他syncer会进行建立grpc连接,预声明增量同步数据长度和传输增量数据的“握手协议”。
   2. 预声明增量同步数据长度方法过程会从syncer中的增量同步队列eventQueue中根据revisionMap得到增量数据长度并返回。
   3. 增量同步方法根据将eventQueue转化为syncData并返回,并更新revisionMap
   4. 同步方syncer收到syncData后根据instance中的action字段进行相应的注册和反注册等操作,完成增量数据同步。
   5. 实际增量同步数据长度与预声明长度不符时,提供http接口触发可使所有syncer两两之间完成一次全量同步。(也可适用于新加入syncer节点的场景)
   6. 定时任务清除eventQueue中最小revision之前的所有已被其他syncer同步的增量数据。


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to