摘要
分布式计算系统对任务持续运行过程中的运行时状态增量识别、一致同步与服务无中断切换提出了更高要求,现有机制在集群状态结构感知、节点一致性控制与服务版本切换可控性方面仍存在不足,难以支撑状态频繁演化下的稳定服务运行.为此,本文提出支持运行时状态协同演化的轻量级分布式框架Zynco.该框架包括3项核心特性:基于指纹与结构感知的增量识别机制,仅传递有效变更内容,并构建滑动版本链;结合用户数据报协议(UDP)组播与传输控制协议(TCP)控制通道的反馈协议,实现状态在多节点间的高效分发与确认;借助监听器路由与3层服务结构,实现服务的平滑切换与一致性回退.实验结果表明,在20节点集群中,针对涉及54 GB文件数据的增量更新,Zynco仅需27 s即可完成状态同步,服务切换期间任务不中断且状态无撕裂,在1 000 QPS(Queries Per Second)压力下响应抖动时间低于8 ms.Zynco表现出的高效、稳定、可控的特性,可为海量数据协同更新场景的状态驱动型分布式高性能服务提供良好的运行支撑.
The distributed computing systems place greater demands on incremental state recognition,node consistency synchronization,and seamless service switching during continuous task running.However,the existing mechanisms still have limitations in awareness of cluster state structure,node consistency control,and controllable service version switching,which hinder stable service running under frequent state evolution.Therefore,Zynco was proposed,a lightweight and distributed framework for runtime state coevolution.Zynco was designed with three core mechanisms:a fingerprint-based and structure-aware incremental recognition mechanism,by which only effective state changes were transmitted and a sliding version chain was maintained;a feedback protocol combining User Datagram Protocol(UDP)multicast with Transmission Control Protocol(TCP)control channels,to achieve efficient distribution and acknowledgment of state among multiple nodes;a three-layer service structure with listener-based routing,thereby enabling smooth service switching and consistent rollback.Experimental results show that,in a 20-node cluster,Zynco requires only 27 s to complete state synchronization for incremental updates involving 54 GB of file data,without task interruption or state tearing during service switching;under a 1 000 QPS(Queries Per Second)load,Zynco has the response jitter time below 8 ms.It can be seen that Zynco is efficient,stable,controllable,and can provide good operational support for state-driven distributed high-performance services in massive-data collaborative update scenarios.