Including control device and method, the invention discloses a cloud storage system concurrent read and write requests: the client receives the user read and write requests, and will receive the read and write requests in the form sent to the storage node message; storage nodes to store data, and receiving and processing the client submitted to read and write requests; the storage node includes the number of requests: the throttle valve control is the total number of processing nodes on the client memory read and write requests, the amount of data processing is the total throttle control data storage node on the client read and write requests of the amount of storage nodes; according to the concurrent request to the number of requests for the throttle valve and throttle valve for the amount of data processing control the amount of data stored on the nodes to read and write requests and the number of concurrent data. The invention avoids the various problems caused by the simultaneous processing of too many requests, and ensures the efficient and stable operation of the storage cluster.
【技术实现步骤摘要】
一种云存储系统并发读写请求的控制装置及方法
本专利技术涉及读写请求处理领域,具体涉及一种云存储系统并发读写请求的控制装置及方法。
技术介绍
并发控制是指控制一个存储节点上正在处理的请求的总数和总数据量,其作用类似网络流量控制(networktrafficcontrol),目的是保证存储集群的稳定运行。由于受到系统软硬件资源的限制,每个存储节点的处理能力都是有限的。如果并发的请求数和数据量超过了存储节点的处理能力,将会导致客户端堵塞、节点故障或崩溃、集群不稳定等一系列问题。
技术实现思路
为解决上述问题,本专利技术提供一种云存储系统并发读写请求的控制装置及方法。本专利技术的技术方案是:一种云存储系统并发读写请求的控制装置,包括:客户端:用于接收用户的读写请求,并将接收的读写请求以消息的形式发送至存储节点;存储节点:用于存储数据,并接收和处理客户端提交的读写请求;所述存储节点包括:请求数节流阀:用于控制存储节点上正在处理的客户端读写请求的总数量;数据量节流阀:用于控制存储节点上正在处理的客户端读写请求的总数据量;所述存储节点根据向请求数节流阀申请请求数和向数据量节流阀申请数据量控制存储节点上正在处理的读写请求的并发数量和并发数据量。进一步地,所述存储节点还包括:请求接收模块:用于接收客户端提交的读写请求,在接收读写请求的过程中,向请求数节流阀申请请求数和向数据量节流阀申请数据量;请求处理模块:用于处理请求接收模块接收的读写请求;请求响应模块:用于向客户端发回响应,在发回响应后,将请求接收模块申请的请求数和数据量分别归还给请求数节流阀、数据量节流阀。进一步地,存储节 ...
【技术保护点】
一种云存储系统并发读写请求的控制装置,其特征在于,包括:客户端:用于接收用户的读写请求,并将接收的读写请求以消息的形式发送至存储节点;存储节点:用于存储数据,并接收和处理客户端提交的读写请求;所述存储节点包括:请求数节流阀:用于控制存储节点上正在处理的客户端读写请求的总数量;数据量节流阀:用于控制存储节点上正在处理的客户端读写请求的总数据量;所述存储节点根据向请求数节流阀申请请求数和向数据量节流阀申请数据量控制存储节点上正在处理的读写请求的并发数量和并发数据量。
【技术特征摘要】
1.一种云存储系统并发读写请求的控制装置,其特征在于,包括:客户端:用于接收用户的读写请求,并将接收的读写请求以消息的形式发送至存储节点;存储节点:用于存储数据,并接收和处理客户端提交的读写请求;所述存储节点包括:请求数节流阀:用于控制存储节点上正在处理的客户端读写请求的总数量;数据量节流阀:用于控制存储节点上正在处理的客户端读写请求的总数据量;所述存储节点根据向请求数节流阀申请请求数和向数据量节流阀申请数据量控制存储节点上正在处理的读写请求的并发数量和并发数据量。2.根据权利要求1所述的云存储系统并发读写请求的控制装置,其特征在于,所述存储节点还包括:请求接收模块:用于接收客户端提交的读写请求,在接收读写请求的过程中,向请求数节流阀申请请求数和向数据量节流阀申请数据量;请求处理模块:用于处理请求接收模块接收的读写请求;请求响应模块:用于向客户端发回响应,在发回响应后,将请求接收模块申请的请求数和数据量分别归还给请求数节流阀、数据量节流阀。3.根据权利要求1或2所述的云存...
【专利技术属性】
技术研发人员:吴明桥,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。