摘要
随着企业生产系统规模的扩大,数据并发量及业务复杂度不断提升,通常采用Redis分布式集群的设计作为一层缓存来缓解调用数据库的压力,提升响应速度和服务水平。随着数据量的增加,最初上线的Redis集群的内存也会逐步达到整个集群的上限,新增节点重新搭建集群需要停机,而纵向扩容单节点内存又会带来资源瓶颈,如何实现Redis集群的在线横向扩展,已经成为企业亟待解决的问题。对此,提出了一种Redis集群在线横向扩展的解决方案,并通过对Redis服务器的纳管将操作嵌入到具体管理系统中,实现一站式的检查、扩容和数据重分布,在业务不停机的前提下对Redis集群进行扩容。研究表明,该方案可协助企业及时、快速地进行Redis集群的在线横向扩展,避免纵向扩展带来的IO、CPU及内存资源瓶颈,减少运维的工作量,目前已经在金融企业核心系统得到实际应用,并取得了较好效果。
With the expansion of enterprise production system scale,data concurrency and business complexity are constantly increasing.Redis distributed cluster design is often used as a layer of memory cache to alleviate the pressure of calling databases,improving response speed and service level.As the amount of data increases,the memory of the initially launched Redis cluster will gradually reach the upper limit of the entire cluster.Rebuilding the cluster with new nodes requires downtime,and vertical expansion of single node memory will bring resource bottlenecks.How to achieve online horizontal expansion of the Redis cluster has become an urgent problem for enterprises.This article proposes a solution for online horizontal expansion of Redis clusters,and embeds operations into specific management systems through the management of Redis servers,achieving one-stop inspection,expansion,and data redistribution.The Redis cluster can be expanded without business downtime.Research has shown that this solution can assist enterprises timely and rapid online horizontal expansion of Redis clusters,avoiding IO,CPU,and memory resource bottlenecks caused by vertical expansion,and reducing operational workload.It has been applied in core systems of financial enterprises and has achieved good results.
作者
刘晓强
LIU Xiao-qiang(People's Insurance Company of China,Beijing 100022)
出处
《电脑与电信》
2024年第4期102-105,共4页
Computer & Telecommunication
关键词
Redis集群
横向扩展
纵向扩展
纳管
Redis cluster
horizontal expansion
vertical expansion
management