[go: up one dir, main page]

CN108111566A - A kind of cloud storage system expansion method, device and cloud storage system - Google Patents

A kind of cloud storage system expansion method, device and cloud storage system Download PDF

Info

Publication number
CN108111566A
CN108111566A CN201611066896.9A CN201611066896A CN108111566A CN 108111566 A CN108111566 A CN 108111566A CN 201611066896 A CN201611066896 A CN 201611066896A CN 108111566 A CN108111566 A CN 108111566A
Authority
CN
China
Prior art keywords
server
expansion
servers
auxiliary
auxiliary server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611066896.9A
Other languages
Chinese (zh)
Other versions
CN108111566B (en
Inventor
刘锋
许爱秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Qianyuan Technology Co ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201611066896.9A priority Critical patent/CN108111566B/en
Publication of CN108111566A publication Critical patent/CN108111566A/en
Application granted granted Critical
Publication of CN108111566B publication Critical patent/CN108111566B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明实施例提供了一种云存储系统扩容方法、装置及云存储系统,所述方法应用于云存储系统中的管理服务器,方法包括:确定在预设时间内注册到管理服务器的至少两个扩容服务器;从至少两个扩容服务器中选取辅助服务器,并指示辅助服务器管理向至少两个扩容服务器;当检测到写数据请求时,向辅助服务器写入数据,以使辅助服务器将接收到的数据按照负载均衡原则写入至少两个扩容服务器;通过辅助服务器监测至少两个扩容服务器的存储空间占用比例;当监测到至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理至少两个扩容服务器的管理权限。应用本发明实施例,可以平稳地向扩容服务器写入数据。

The embodiment of the present invention provides a cloud storage system capacity expansion method, device and cloud storage system, the method is applied to the management server in the cloud storage system, the method includes: determining at least two registered to the management server within a preset time Expanding the server; selecting an auxiliary server from at least two expanding servers, and instructing the auxiliary server to manage at least two expanding servers; when a write data request is detected, writing data to the auxiliary server, so that the auxiliary server will receive the data Write at least two expansion servers according to the load balancing principle; monitor the storage space occupancy ratio of at least two expansion servers through the auxiliary server; Administrative rights to the two scale-out servers. By applying the embodiment of the present invention, data can be smoothly written to the expansion server.

Description

一种云存储系统扩容方法、装置及云存储系统A cloud storage system expansion method, device and cloud storage system

技术领域technical field

本发明涉及云存储技术领域,特别是涉及一种云存储系统扩容方法、装置及云存储系统。The present invention relates to the technical field of cloud storage, in particular to a method and device for expanding the capacity of a cloud storage system, and a cloud storage system.

背景技术Background technique

目前,用户常常通过云存储系统来存取数据。其中,云存储系统是在云计算概念上延伸和发展出来的一种通过集群应用、网格技术或分布式文件系统等功能的,通过应用软件集合起来协同工作的,共同对外提供数据存储和业务访问功能的一个系统。云存储系统可以包括管理服务器和存储服务器。其中,管理服务器用于将所接收到数据写入到云存储系统中的存储服务器中;存储服务器用于存储所接收到的数据。Currently, users often access data through cloud storage systems. Among them, the cloud storage system is an extension and development of the concept of cloud computing, which uses functions such as cluster applications, grid technology, or distributed file systems, and works together through application software to jointly provide data storage and services to the outside world. A system of access functions. A cloud storage system may include a management server and a storage server. Wherein, the management server is used to write the received data into the storage server in the cloud storage system; the storage server is used to store the received data.

在实际应用中,云存储系统的存储容量从几PB(Petabyte,拍字节)至上百PB不等。但是随着云存储技术被广泛的应用,固定的云存储系统的容量已经不能满足用户的需求。因此,技术人员常常需要根据存储需求,手动地在云存储系统中添加相应数量的扩容服务器,以增大云存储系统的存储容量。In practical applications, the storage capacity of the cloud storage system ranges from several PB (Petabyte, petabyte) to hundreds of PB. However, with the widespread application of cloud storage technology, the capacity of fixed cloud storage systems can no longer meet the needs of users. Therefore, technicians often need to manually add a corresponding number of expansion servers to the cloud storage system according to storage requirements, so as to increase the storage capacity of the cloud storage system.

但是,通过这种方式对云存储系统进行扩容时,会产生如下问题:扩容时,管理服务器会优先向具有高存储性能的扩容服务器存储数据,导致扩容服务器存储压力飙升,甚至超出扩容服务器可以承受的写数据能力,造成所要写入该扩容服务器的数据丢失。However, when the cloud storage system is expanded in this way, the following problems will arise: during expansion, the management server will preferentially store data in the expansion server with high storage performance, causing the storage pressure of the expansion server to soar, and even exceed the capacity of the expansion server. The ability to write data, resulting in the loss of data to be written to the expansion server.

发明内容Contents of the invention

本发明实施例的目的在于提供一种云存储系统扩容方法、装置及云存储系统,以平稳地向扩容服务器写入数据。The purpose of the embodiment of the present invention is to provide a cloud storage system capacity expansion method, device and cloud storage system, so as to write data to the capacity expansion server smoothly.

第一方面,本发明实施例提供了一种云存储系统扩容方法,应用于云存储系统中的管理服务器,所述方法可以包括:In the first aspect, an embodiment of the present invention provides a method for expanding the capacity of a cloud storage system, which is applied to a management server in the cloud storage system, and the method may include:

确定在预设时间内注册到所述管理服务器的至少两个扩容服务器;determining at least two expansion servers registered to the management server within a preset time;

从所述至少两个扩容服务器中选取辅助服务器,并指示所述辅助服务器管理所述至少两个扩容服务器,其中,所述管理服务器在所述辅助服务器被确定之前,不向在所述预设时间内注册到所述管理服务器的任一扩容服务器写入数据;Select an auxiliary server from the at least two expansion servers, and instruct the auxiliary server to manage the at least two expansion servers, wherein, before the auxiliary server is determined, the management server does not send to the preset Write data to any expansion server registered to the management server within a certain period of time;

当检测到写数据请求时,向所述辅助服务器写入数据,以使所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器;When a write data request is detected, write data to the auxiliary server, so that the auxiliary server writes the received data into the at least two expansion servers according to the load balancing principle;

通过所述辅助服务器监测所述至少两个扩容服务器的存储空间占用比例;Monitoring the storage space occupancy ratio of the at least two expansion servers through the auxiliary server;

当监测到所述至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理所述所述至少两个扩容服务器的管理权限。When it is detected that the storage space occupancy ratios of the at least two expansion servers reach a first threshold, the management authority for managing the at least two expansion servers is obtained.

可选地,从所述至少两个扩容服务器中选取辅助服务器的步骤可以包括:Optionally, the step of selecting an auxiliary server from the at least two expansion servers may include:

将所述至少两个扩容服务器中的目标扩容服务器确定为辅助服务器,所述目标扩容服务器为所述预设时间内第一个注册到所述管理服务器的扩容服务器。Determining a target expansion server among the at least two expansion servers as an auxiliary server, and the target expansion server is the first expansion server registered with the management server within the preset time.

可选地,从所述至少两个扩容服务器中选取辅助服务器的步骤可以包括:Optionally, the step of selecting an auxiliary server from the at least two expansion servers may include:

将所述至少两个扩容服务器所推选出的扩容服务器,选取为辅助服务器,其中,所述辅助服务器为所述至少两个扩容服务器基于所接收到的各个扩容服务器的存储性能参数所推选出来的。selecting the expansion server selected by the at least two expansion servers as an auxiliary server, wherein the auxiliary server is selected by the at least two expansion servers based on the received storage performance parameters of each expansion server .

可选地,在向所述辅助服务器写入数据的步骤之前,还可以包括:Optionally, before the step of writing data to the auxiliary server, it may also include:

向所述辅助服务器发送初始化和/或格式化指令,以供所述辅助服务器根据所接收到的初始化和/或格式化指令,对各个扩容服务器进行初始化和/或格式化。Sending an initialization and/or formatting instruction to the auxiliary server, so that the auxiliary server can initialize and/or format each expansion server according to the received initialization and/or formatting instruction.

可选地,所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器的步骤,可以包括:Optionally, the step of the auxiliary server writing the received data into the at least two expansion servers according to the principle of load balancing may include:

所述辅助服务器将接收到的数据写入所述辅助服务器自身和其他扩容服务器,并检测所述辅助服务器以及所述其他扩容服务器的存储空间占用比例是否均到第二阈值;The auxiliary server writes the received data into the auxiliary server itself and other expansion servers, and detects whether the storage space occupancy ratios of the auxiliary server and the other expansion servers reach a second threshold;

若否,向未达到所述第二阈值的扩容服务器继续写入数据;If not, continue to write data to the expansion server that has not reached the second threshold;

若均达到所述第二阈值,向所述辅助服务器自身和所述其他扩容服务器写入数据,直到所述辅助服务器以及其他扩容服务器的存储空间占用比例均达到所述第一阈值时,停止向所述辅助服务器和其他扩容服务器写数据,其中,所述第二阈值小于所述第一阈值。If both reach the second threshold, write data to the auxiliary server itself and the other expansion servers, and stop writing data to the auxiliary server and other expansion servers until the storage space occupancy ratios of the auxiliary server and other expansion servers reach the first threshold. The auxiliary server and other expansion servers write data, wherein the second threshold is smaller than the first threshold.

第二方面,本发明实施例还提供了一种云存储系统扩容装置,应用于云存储系统中的管理服务器,所述装置可以包括:In the second aspect, the embodiment of the present invention also provides a cloud storage system expansion device, which is applied to the management server in the cloud storage system, and the device may include:

确定单元,用于确定在预设时间内注册到所述管理服务器的至少两个扩容服务器;A determining unit, configured to determine at least two expansion servers registered to the management server within a preset time;

选取单元,用于从所述至少两个扩容服务器中选取辅助服务器;a selection unit, configured to select an auxiliary server from the at least two expansion servers;

指示单元,用于指示所述辅助服务器管理所述至少两个扩容服务器,其中,所述管理服务器在所述辅助服务器被确定之前,不向在所述预设时间内注册到所述管理服务器的任一扩容服务器写入数据;An instructing unit, configured to instruct the auxiliary server to manage the at least two capacity expansion servers, wherein the management server does not register with the management server within the preset time before the auxiliary server is determined. Any expansion server writes data;

写数据单元,用于当检测到写数据请求时,向所述辅助服务器写入数据,以使所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器;A write data unit, configured to write data to the auxiliary server when a write data request is detected, so that the auxiliary server writes the received data into the at least two expansion servers according to the load balancing principle;

监测单元,用于通过所述辅助服务器监测所述至少两个扩容服务器的存储空间占用比例;A monitoring unit, configured to monitor the storage space occupancy ratio of the at least two expansion servers through the auxiliary server;

获取单元,用于当监测到所述至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理所述所述至少两个扩容服务器的管理权限。The acquiring unit is configured to acquire management authority to manage the at least two expansion servers when it is detected that the storage space occupancy ratios of the at least two expansion servers reach a first threshold.

可选地,在一种实现方式中,所述选取单元具体用于:Optionally, in an implementation manner, the selecting unit is specifically configured to:

将所述至少两个扩容服务器中的目标扩容服务器确定为辅助服务器,所述目标扩容服务器为所述预设时间内第一个注册到所述管理服务器的扩容服务器。Determining a target expansion server among the at least two expansion servers as an auxiliary server, and the target expansion server is the first expansion server registered with the management server within the preset time.

可选地,在另一种实现方式中,所述选取单元具体用于:Optionally, in another implementation manner, the selecting unit is specifically configured to:

将所述至少两个扩容服务器所推选出的扩容服务器,选取为辅助服务器,其中,所述辅助服务器为所述至少两个扩容服务器基于所接收到的各个扩容服务器的存储性能参数所推选出来的。selecting the expansion server selected by the at least two expansion servers as an auxiliary server, wherein the auxiliary server is selected by the at least two expansion servers based on the received storage performance parameters of each expansion server .

可选地,所述装置还可以包括:Optionally, the device may also include:

发送单元,在所述写数据单元向所述辅助服务器写入数据之前,向所述辅助服务器发送初始化和/或格式化指令,以供所述辅助服务器根据所接收到的初始化和/或格式化指令,对各个扩容服务器进行初始化和/或格式化。a sending unit, before the write data unit writes data to the auxiliary server, send an initialization and/or formatting instruction to the auxiliary server, so that the auxiliary server can use the received initialization and/or formatting instruction Instructions to initialize and/or format each expansion server.

可选地,在所述写数据单元向所述辅助服务器写入数据后,所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器的步骤可以包括:Optionally, after the write data unit writes data to the auxiliary server, the step of the auxiliary server writing the received data into the at least two expansion servers according to the principle of load balancing may include:

所述辅助服务器将接收到的数据写入所述辅助服务器自身和其他扩容服务器,并检测所述辅助服务器以及所述其他扩容服务器的存储空间占用比例是否均到第二阈值;The auxiliary server writes the received data into the auxiliary server itself and other expansion servers, and detects whether the storage space occupancy ratios of the auxiliary server and the other expansion servers reach a second threshold;

若否,向未达到所述第二阈值的扩容服务器继续写入数据;If not, continue to write data to the expansion server that has not reached the second threshold;

若均达到所述第二阈值,向所述辅助服务器自身和所述其他扩容服务器写入数据,直到所述辅助服务器以及其他扩容服务器的存储空间占用比例均达到所述第一阈值时,停止向所述辅助服务器和其他扩容服务器写数据,其中,所述第二阈值小于所述第一阈值。If both reach the second threshold, write data to the auxiliary server itself and the other expansion servers, and stop writing data to the auxiliary server and other expansion servers until the storage space occupancy ratios of the auxiliary server and other expansion servers reach the first threshold. The auxiliary server and other expansion servers write data, wherein the second threshold is smaller than the first threshold.

第三方面,本发明实施例还提供了一种云存储系统,包括管理服务器和多个扩容服务器,所述管理服务器用于:In the third aspect, the embodiment of the present invention also provides a cloud storage system, including a management server and a plurality of expansion servers, and the management server is used for:

确定在预设时间内注册到所述管理服务器的至少两个扩容服务器;determining at least two expansion servers registered to the management server within a preset time;

从所述至少两个扩容服务器中选取辅助服务器,并指示所述辅助服务器管理所述至少两个扩容服务器,其中,所述管理服务器在所述辅助服务器被确定之前,不向在所述预设时间内注册到所述管理服务器的任一扩容服务器写入数据;Select an auxiliary server from the at least two expansion servers, and instruct the auxiliary server to manage the at least two expansion servers, wherein, before the auxiliary server is determined, the management server does not send to the preset Write data to any expansion server registered to the management server within a certain period of time;

当检测到写数据请求时,向所述辅助服务器写入数据,以使所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器;When a write data request is detected, write data to the auxiliary server, so that the auxiliary server writes the received data into the at least two expansion servers according to the load balancing principle;

通过所述辅助服务器监测所述至少两个扩容服务器的存储空间占用比例;Monitoring the storage space occupancy ratio of the at least two expansion servers through the auxiliary server;

当监测到所述至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理所述所述至少两个扩容服务器的管理权限。When it is detected that the storage space occupancy ratios of the at least two expansion servers reach a first threshold, the management authority for managing the at least two expansion servers is acquired.

在本发明实施例中,云存储系统中的管理服务器,可以从预设时间内注册到所述管理服务器的扩容服务器中,选取一个扩容服务器作为辅助服务器;并在选取得到辅助服务器之前,不向任一扩容服务器中写入数据,避免了扩容服务器在接入云存储系统的瞬间存储压力飙升的问题;在选取得到辅助服务器之后,指示该辅助服务器对在所述预设时间内,注册到所述管理服务器的所述至少两个扩容服务器进行管理;当检测到写数据请求时,向辅助服务器写入数据,所述辅助服务器平稳地向扩容服务器中写入数据;所述管理服务器还可以通过辅助服务器监测各个扩容服务器的存储空间占用比例;当通过所述辅助服务器监测到各个扩容服务器的存储空间占用比例均达到第一阈值时,管理服务器获取对各个扩容服务器的管理权限,这时,管理服务器能够平稳地向扩容服务器写入数据,即扩容服务器被平稳地添加到所述云存储系统。In the embodiment of the present invention, the management server in the cloud storage system can register to the expansion servers of the management server within a preset time, and select an expansion server as the auxiliary server; Writing data to any expansion server avoids the problem of soaring storage pressure when the expansion server is connected to the cloud storage system; after selecting the auxiliary server, instruct the auxiliary server to register to the specified The at least two expansion servers of the management server are managed; when a write data request is detected, data is written to the auxiliary server, and the auxiliary server smoothly writes data to the expansion server; the management server can also pass The auxiliary server monitors the storage space occupancy ratio of each expansion server; when the storage space occupancy ratio of each expansion server is monitored by the auxiliary server and reaches the first threshold, the management server obtains the management authority for each expansion server. At this time, the management The server can write data to the expansion server smoothly, that is, the expansion server is smoothly added to the cloud storage system.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例提供的一种云存储系统扩容方法流程图;FIG. 1 is a flowchart of a method for expanding the capacity of a cloud storage system provided by an embodiment of the present invention;

图2为本发明实施例提供的一种云存储系统扩容方法示意图;FIG. 2 is a schematic diagram of a method for expanding the capacity of a cloud storage system provided by an embodiment of the present invention;

图3为本发明实施例提供的一种云存储系统扩容装置的结构示意图;FIG. 3 is a schematic structural diagram of a cloud storage system expansion device provided by an embodiment of the present invention;

图4为本发明实施例提供的一种云存储系统中管理服务器与辅助服务器的交互示意图。FIG. 4 is a schematic diagram of interaction between a management server and an auxiliary server in a cloud storage system according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

为了解决在对云存储系统进行扩容时,由于云存储系统中的管理服务器优先向具有高存储性能的扩容服务器存储数据,所导致的扩容服务器存储压力飙升,甚至超出扩容服务器可以承受的写数据能力的问题,本发明实施例提供了一种云存储系统扩容方法及装置。In order to solve the problem of expanding the capacity of the cloud storage system, because the management server in the cloud storage system preferentially stores data in the expansion server with high storage performance, the storage pressure of the expansion server is soaring, which even exceeds the ability of the expansion server to withstand the write data To solve the problem, an embodiment of the present invention provides a method and device for expanding the capacity of a cloud storage system.

下面首先对本发明实施例提供的云存储系统扩容方法进行说明。The method for expanding the capacity of the cloud storage system provided by the embodiment of the present invention will firstly be described below.

需要说明的是,所述云存储系统扩容方法的执行主体为:需要扩大存储容量的云存储系统中的管理服务器。其中,实现本发明实施例的云存储系统扩容方法的功能软件可以为:设置于所述管理服务器中专门用于扩容的软件,也可以为:设置于所述管理服务器中用于扩容的软件中的功能插件,当然并不局限于此。It should be noted that the subject of execution of the method for expanding the capacity of the cloud storage system is: a management server in the cloud storage system that needs to expand the storage capacity. Wherein, the functional software implementing the method for expanding the capacity of the cloud storage system according to the embodiment of the present invention may be: the software specially used for capacity expansion set in the management server, or may be: the software set in the management server for capacity expansion The functional plug-ins are of course not limited to this.

参见图1,所述云存储系统扩容方法可以包括以下步骤:Referring to Fig. 1, the method for expanding the capacity of the cloud storage system may include the following steps:

S101:确定在预设时间内注册到所述管理服务器的至少两个扩容服务器;S101: Determine at least two expansion servers registered to the management server within a preset time;

可以理解的是,所述管理服务器会接收扩容服务器发送的注册请求,进一步地,所述管理服务器可以确定在预设时间内注册到自身的至少两个扩容服务器。It can be understood that the management server will receive the registration request sent by the expansion server, and further, the management server can determine at least two expansion servers registered with itself within a preset time.

举例而言,所述管理服务器可以确定在预设时间为9:00-9:05时间段内,注册到自身的至少两个扩容服务器,并将所述至少两个扩容服务器作为第一扩容设备集群。当然,所述管理服务器也可以确定在预设时间为10:00-15:05内,注册到自身的至少两个扩容服务器,并将本次所确定的至少两个扩容服务器作为第二扩容设备集群,这是合理的。For example, the management server may determine at least two capacity expansion servers registered with itself within the preset time period of 9:00-9:05, and use the at least two capacity expansion servers as the first capacity expansion device cluster. Of course, the management server may also determine at least two capacity expansion servers registered to itself within the preset time of 10:00-15:05, and use the at least two capacity expansion servers determined this time as the second capacity expansion device cluster, which makes sense.

S102:从所述至少两个扩容服务器中选取辅助服务器,并指示所述辅助服务器管理所述至少两个扩容服务器,其中,所述管理服务器在所述辅助服务器被确定之前,不向在所述预设时间内注册到所述管理服务器的任一扩容服务器写入数据;S102: Select an auxiliary server from the at least two capacity expansion servers, and instruct the auxiliary server to manage the at least two capacity expansion servers, wherein the management server does not send information to the at least two capacity expansion servers before the auxiliary server is determined. Writing data to any expansion server registered to the management server within a preset time;

其中,在确定预设时间内注册到所述管理服务器的至少两个扩容服务器之后,在一种实现方式中,所述管理服务器可以将所确定的至少两个扩容服务器中的目标扩容服务器确定为辅助服务器。其中,所述目标扩容服务器可以为所述预设时间内第一个注册到所述管理服务器的扩容服务器,当然并不局限于此。Wherein, after determining at least two expansion servers registered to the management server within a preset time, in an implementation manner, the management server may determine a target expansion server among the determined at least two expansion servers as Auxiliary server. Wherein, the target capacity expansion server may be the first capacity expansion server registered with the management server within the preset time, and of course it is not limited thereto.

在另一种实现方式中,所述管理服务器可以将所确定的至少两个扩容服务器所推选出的扩容服务器,选取为辅助服务器,其中,所述辅助服务器为所述至少两个扩容服务器,基于所接收到的各个扩容服务器的存储性能参数所推选出来的。为了清晰布局,后续对该种实现方式进行详细说明。In another implementation manner, the management server may select an expansion server selected by the determined at least two expansion servers as an auxiliary server, wherein the auxiliary server is the at least two expansion servers based on It is selected from the received storage performance parameters of each expansion server. In order to clarify the layout, this implementation manner will be described in detail later.

需要说明的是,所述存储性能参数包括但并不局限于内存使用率、中央处理器使用率和网卡使用率。It should be noted that the storage performance parameters include, but are not limited to, memory usage, central processing unit usage, and network card usage.

可以理解的是,从所确定的至少两个扩容服务器中选取辅助服务器后,所述管理服务器可以指示所述辅助服务器管理该至少两个扩容服务器,也就是说,所述辅助服务器获得管理该至少两个扩容服务器的管理权限,所述管理权限包括对该至少两个扩容服务器进行写数据管理。It can be understood that after the auxiliary server is selected from the determined at least two expansion servers, the management server may instruct the auxiliary server to manage the at least two expansion servers, that is, the auxiliary server obtains the management of the at least two expansion servers. The management authority of the two expansion servers, the management authority includes the management of writing data to the at least two expansion servers.

举例而言,当所述管理服务器将在预设时间为9:00-9:05时间段内,注册的第一扩容设备集群(包括扩容服务器A、扩容服务器B和扩容服务器C)中的扩容服务器A选取为辅助服务器后,所述管理服务器可以指示所述扩容服务器A对其自身,以及扩容服务器B和扩容服务器C进行管理。For example, when the management server will be within the preset time period of 9:00-9:05, the capacity expansion in the registered first capacity expansion device cluster (including capacity expansion server A, capacity expansion server B and capacity expansion server C) After server A is selected as the auxiliary server, the management server may instruct the capacity expansion server A to manage itself, capacity expansion server B and capacity expansion server C.

同理,当所述管理服务器将在预设时间为10:00-15:05时间段内,注册的第二扩容设备集群(包括扩容服务器D和扩容服务器E)中的扩容服务器D,选取为辅助服务器后,所述管理服务器可以指示所述扩容服务器D对其自身,以及扩容服务器E进行管理。Similarly, when the management server will register the expansion server D in the second expansion device cluster (including expansion server D and expansion server E) within the preset time period of 10:00-15:05, select as After assisting the server, the management server can instruct the expansion server D to manage itself and the expansion server E.

需要说明的是,为了避免扩容服务器在注册到所述管理服务器的瞬间,所述管理服务器疯狂地向扩容服务器写入数据,导致扩容服务器的存储压力瞬间飙升的情况发生,所述管理服务器在所述辅助服务器被确定之前,不向在所述预设时间内注册到所述管理服务器的任一扩容服务器写入数据。It should be noted that, in order to avoid the situation that the management server frantically writes data to the expansion server at the moment when the expansion server registers with the management server, causing the storage pressure of the expansion server to soar instantaneously, the management server is in the Before the auxiliary server is determined, do not write data to any expansion server registered with the management server within the preset time.

S103:当检测到写数据请求时,向所述辅助服务器写入数据,以使所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器;S103: When a write data request is detected, write data to the auxiliary server, so that the auxiliary server writes the received data into the at least two expansion servers according to the load balancing principle;

可以理解的是,在一种实现方式中,所述管理服务器在接收到向所述辅助服务器写入数据的写数据请求后,所述管理服务器可以向所述辅助服务器写入数据。其中,所述写数据请求可以是所述辅助服务器发出的。It can be understood that, in an implementation manner, after the management server receives a data write request for writing data to the auxiliary server, the management server may write data to the auxiliary server. Wherein, the write data request may be sent by the auxiliary server.

在另一种实现方式中,当所述管理服务器向所述辅助服务器发出写数据请求时,并当所述辅助服务器作为所述写数据请求的接收者,接收到所述写数据请求并响应允许写入数据时,所述管理服务器向所述辅助服务器写入数据。In another implementation, when the management server sends a data write request to the auxiliary server, and when the auxiliary server is the recipient of the data write request, it receives the data write request and responds with permission When writing data, the management server writes data to the auxiliary server.

另外,所述管理服务器向所述辅助服务器写入数据后,所述辅助服务器接收所述管理服务器所写入的数据,并可以将所接收到的数据,按照负载均衡原则写入所述至少两个扩容服务器,实现对各个扩容服务器的写数据管理。为了清晰布局,后续对所述辅助服务器对各个扩容服务器进行写数据管理的实现方式进行详细说明。In addition, after the management server writes data to the auxiliary server, the auxiliary server receives the data written by the management server, and may write the received data into the at least two Each expansion server realizes write data management for each expansion server. In order to clarify the layout, the implementation manner of the auxiliary server for writing data management to each expansion server will be described in detail later.

S104:通过所述辅助服务器监测所述至少两个扩容服务器的存储空间占用比例;S104: Monitor the storage space occupancy ratio of the at least two expansion servers through the auxiliary server;

S105:当监测到所述至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理所述所述至少两个扩容服务器的管理权限。S105: When it is detected that the storage space occupancy ratios of the at least two expansion servers reach a first threshold, acquire management authority to manage the at least two expansion servers.

可以理解的是,在所述辅助服务器对所述至少两个扩容服务器进行管理的期间,所述管理服务器可以通过所述辅助服务器,监测所述至少两个扩容服务器的存储空间占用比例。当监测到所述至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理所述至少两个扩容服务器的管理权限,实现所述管理服务器对所述至少两个扩容服务器进行直接管理,完成所述云存储系统的扩容。It can be understood that, during the period when the auxiliary server manages the at least two expansion servers, the management server may monitor the storage space occupancy ratio of the at least two expansion servers through the auxiliary server. When it is detected that the storage space occupancy ratios of the at least two expansion servers reach the first threshold, obtain the management authority to manage the at least two expansion servers, so that the management server can directly perform operations on the at least two expansion servers. management to complete the expansion of the cloud storage system.

其中,所述管理服务器获得所述至少两个扩容服务器的管理权限的方式包括:获得所述辅助服务器向所述至少两个扩容服务器写入的数据所对应的索引数据,并指示所述辅助服务器关闭对所述至少两个扩容服务器的进行管理的功能。其中,在所述辅助服务器关闭管理功能后,只作为存储服务器存储数据。Wherein, the manner in which the management server obtains the management authority of the at least two expansion servers includes: obtaining the index data corresponding to the data written by the auxiliary server to the at least two expansion servers, and instructing the auxiliary server to Turn off the function of managing the at least two expansion servers. Wherein, after the auxiliary server closes the management function, it only serves as a storage server to store data.

需要说明的是,所述第一阈值与所述云存储系统中的各个服务器的存储空间占用比例的差值的绝对值小于预设阈值。所述预设阈值可以由本领域技术人根据实际情况进行设定,在此不做限定。It should be noted that the absolute value of the difference between the first threshold and the storage space occupancy ratio of each server in the cloud storage system is smaller than the preset threshold. The preset threshold can be set by those skilled in the art according to actual conditions, and is not limited here.

另外,存储空间占用比例是指写入扩容服务器的数据量和该扩容服务器的存储容量的比值。In addition, the storage space occupancy ratio refers to the ratio of the amount of data written to the expansion server to the storage capacity of the expansion server.

值得说明的是,本发明实施例中所涉及的所述至少两个扩容服务器,均是针对同一预设时间内注册到所述管理服务器的扩容服务器而言的。It is worth noting that, the at least two capacity expansion servers involved in the embodiment of the present invention refer to the capacity expansion servers registered to the management server within the same preset time.

在本发明实施例中,云存储系统中的管理服务器,可以从预设时间内注册到所述管理服务器的扩容服务器中,选取一个扩容服务器作为辅助服务器;并在选取得到辅助服务器之前,不向任一扩容服务器中写入数据,避免了扩容服务器在接入云存储系统的瞬间存储压力飙升的问题;在选取得到辅助服务器之后,指示该辅助服务器对在所述预设时间内,注册到所述管理服务器的所述至少两个扩容服务器进行管理;当检测到写数据请求时,向辅助服务器写入数据,所述辅助服务器平稳地向扩容服务器中写入数据;所述管理服务器还可以通过辅助服务器监测各个扩容服务器的存储空间占用比例;当通过所述辅助服务器监测到各个扩容服务器的存储空间占用比例均达到第一阈值时,管理服务器获取对各个扩容服务器的管理权限,这时,管理服务器能够平稳地向扩容服务器写入数据,即扩容服务器被平稳地添加到所述云存储系统。In the embodiment of the present invention, the management server in the cloud storage system can register to the expansion servers of the management server within a preset time, and select an expansion server as the auxiliary server; Writing data to any expansion server avoids the problem of soaring storage pressure when the expansion server is connected to the cloud storage system; after selecting the auxiliary server, instruct the auxiliary server to register to the specified The at least two expansion servers of the management server are managed; when a write data request is detected, data is written to the auxiliary server, and the auxiliary server smoothly writes data to the expansion server; the management server can also pass The auxiliary server monitors the storage space occupancy ratio of each expansion server; when the storage space occupancy ratio of each expansion server is monitored by the auxiliary server and reaches the first threshold, the management server obtains the management authority for each expansion server. At this time, the management The server can write data to the expansion server smoothly, that is, the expansion server is smoothly added to the cloud storage system.

下面对本发明实施例中管理服务器将所确定的至少两个扩容服务器所推选出的扩容服务器,选取为辅助服务器的实现方式作进一步说明。The implementation manner in which the management server selects the expansion server selected by the determined at least two expansion servers as the auxiliary server in the embodiment of the present invention will be further described below.

举例而言,所述管理服务器在确定预设时间为9:00-9:05时间段内,注册到自身的第一扩容设备集群(包括扩容服务器A、扩容服务器B和扩容服务器C)后,可以将第一扩容设备集群中所包含的扩容服务器的数量,以及所包含的各个扩容服务器的IP地址和存储性能参数等信息,分别发送给所述第一扩容设备集群中的各个扩容服务器。For example, after the management server determines that the preset time is 9:00-9:05, after registering with its own first expansion device cluster (including expansion server A, expansion server B and expansion server C), Information such as the number of expansion servers included in the first expansion device cluster, and the IP addresses and storage performance parameters of each included expansion server may be sent to each expansion server in the first expansion device cluster.

所述第一扩容设备集群中的每个扩容服务器,例如扩容服务器A,在接收到所述管理服务器发送的第一扩容设备集群中所包含的扩容服务器的数量3,扩容服务器A、扩容服务器B和扩容服务器C的IP地址,以及扩容服务器A、扩容服务器B和扩容服务器C的存储性能参数等信息后,该扩容服务器A可以根据每个扩容服务器的存储性能参数,推选扩容服务器B为辅助服务器,并根据扩容服务器B的IP地址,向扩容服务器B发送连接请求,并向扩容服务器B发送自身的工作状态和磁盘参数等信息。For each expansion server in the first expansion equipment cluster, for example, expansion server A, after receiving the number of expansion servers contained in the first expansion equipment cluster sent by the management server, the expansion server A and the expansion server B and the IP address of expansion server C, and the storage performance parameters of expansion server A, expansion server B, and expansion server C, the expansion server A can select expansion server B as the auxiliary server according to the storage performance parameters of each expansion server , and send a connection request to the expansion server B according to the IP address of the expansion server B, and send information such as its working status and disk parameters to the expansion server B.

根据同样的推选方式,扩容服务器B推选自身为辅助服务器;扩容服务器C推选扩容服务器B为辅助服务器,并根据扩容服务器B的IP地址,向扩容服务器B发送连接请求,并向扩容服务器B发送自身的工作状态和磁盘参数等信息。According to the same selection method, the expansion server B elects itself as the auxiliary server; the expansion server C elects the expansion server B as the auxiliary server, and sends a connection request to the expansion server B according to the IP address of the expansion server B, and sends itself to the expansion server B The working status and disk parameters and other information.

扩容服务器B检测接收到2个连接请求,扩容服务器B可以确定自身为扩容服务器A、扩容服务器B和扩容服务器C所推选出的扩容服务器,并向所述管理服务报告自己为所述至少两个扩容服务器所推选出的扩容服务器,从而所述管理服务器可以将该扩容服务器B选取为辅助服务器。The capacity expansion server B detects that two connection requests have been received, and the capacity expansion server B can determine that it is the capacity expansion server selected by the capacity expansion server A, the capacity expansion server B and the capacity expansion server C, and report itself to the management service as the at least two capacity expansion servers. The expansion server is selected by the expansion server, so that the management server can select the expansion server B as an auxiliary server.

由于在现有技术中,在将扩容服务器接入云存储系统前,技术人员需要通过手工操作对该扩容服务器进行初始化操作或者格式化操作,在初始化操作或者格式化操作结束之后,再将该扩容服务器注册到云存储系统中,需要耗费较多的人力资源。并且由于初始化操作和格式化操作常常需要较多的时间,因此会极大地耗费技术人员的时间。因此,在本发明一个实施例中,在向所述辅助服务器写入数据的步骤之前,还可以包括:Because in the prior art, before the expansion server is connected to the cloud storage system, technicians need to perform initialization operation or formatting operation on the expansion server by manual operation, after the initialization operation or formatting operation is completed, the expansion Registering the server into the cloud storage system requires a lot of human resources. And because the initialization operation and the formatting operation often need more time, it will greatly consume the time of the technician. Therefore, in one embodiment of the present invention, before the step of writing data to the auxiliary server, it may further include:

向所述辅助服务器发送初始化和/或格式化指令,以供所述辅助服务器根据所接收到的初始化和/或格式化指令,对各个扩容服务器进行初始化和/或格式化。Sending an initialization and/or formatting instruction to the auxiliary server, so that the auxiliary server can initialize and/or format each expansion server according to the received initialization and/or formatting instruction.

可以理解的是,所述管理服务器在扩容服务器在注册到自身之后,且在向所述辅助服务器写入数据之前,可以向所述辅助服务器发送初始化指令,以使得所述辅助服务器在接收到所述初始化指令后,可以基于所述初始化指令,对所述至少两个扩容服务器进行初始化。例如,将所述至少两个扩容服务器的磁盘虚拟化为一块磁盘,当然并不局限于此。It can be understood that, after the expansion server registers with itself and before writing data to the auxiliary server, the management server may send an initialization instruction to the auxiliary server, so that the auxiliary server receives the After the initialization instruction is executed, the at least two expansion servers may be initialized based on the initialization instruction. For example, the disks of the at least two expansion servers are virtualized into one disk, but of course it is not limited thereto.

另外,所述管理服务器在向所述辅助服务器写入数据之前,也可以向所述辅助服务器发送格式化指令,以使得所述辅助服务器在接收到所述格式化指令后,可以基于所述格式化指令,将所述至少两个扩容服务器的磁盘格式化为所述云存储系统的磁盘格式。例如:将所述至少两个扩容服务器的磁盘划分为预设组(即预设块区域),当然并不局限于此。In addition, before the management server writes data to the auxiliary server, it may also send a formatting instruction to the auxiliary server, so that after receiving the formatting instruction, the auxiliary server may, based on the format Formatting instructions to format the disks of the at least two expansion servers into the disk format of the cloud storage system. For example: dividing the disks of the at least two expansion servers into preset groups (that is, preset block areas), of course, it is not limited thereto.

需要说明的是,所述辅助服务器在对所述至少两个扩容服务器初始化和/或格式化完毕后,可以向所述管理服务器发送写数据请求;所述管理服务器在接收到所述写数据请求后,向所述辅助服务器写入数据。It should be noted that, after the auxiliary server initializes and/or formats the at least two expansion servers, it may send a write data request to the management server; After that, write data to the secondary server.

下面对本发明实施例中所述辅助服务器对各个扩容服务器进行写数据管理的实现方式进行详细说明。The following describes in detail how the auxiliary server performs data writing management on each expansion server in the embodiment of the present invention.

在一种实现方式中,所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器的步骤,可以包括:In an implementation manner, the step of the auxiliary server writing the received data into the at least two expansion servers according to the principle of load balancing may include:

所述辅助服务器将接收到的数据写入所述辅助服务器自身和其他扩容服务器,并检测所述辅助服务器以及所述其他扩容服务器的存储空间占用比例是否均到第二阈值;The auxiliary server writes the received data into the auxiliary server itself and other expansion servers, and detects whether the storage space occupancy ratios of the auxiliary server and the other expansion servers reach a second threshold;

若否,向未达到所述第二阈值的扩容服务器继续写入数据;If not, continue to write data to the expansion server that has not reached the second threshold;

若均达到所述第二阈值,向所述辅助服务器自身和所述其他扩容服务器写入数据,直到所述辅助服务器以及其他扩容服务器的存储空间占用比例均达到所述第一阈值时,停止向所述辅助服务器和其他扩容服务器写数据,其中,所述第二阈值小于所述第一阈值。If both reach the second threshold, write data to the auxiliary server itself and the other expansion servers, and stop writing data to the auxiliary server and other expansion servers until the storage space occupancy ratios of the auxiliary server and other expansion servers reach the first threshold. The auxiliary server and other expansion servers write data, wherein the second threshold is smaller than the first threshold.

其中,所述辅助服务器可以预先设定第一阈值和第二阈值,且设定所述第二阈值小于所述第一阈值。所述第一阈值已在上文进行说明,在此不做赘述。Wherein, the auxiliary server may preset a first threshold and a second threshold, and set the second threshold to be smaller than the first threshold. The first threshold has been described above, and will not be repeated here.

可以理解的是,当所述辅助服务器接收到所述管理服务器发送的数据时,所述辅助服务器可以向所述辅助服务器自身和其他扩容服务器写入数据;并可以采用实时检测的方式,检测所述辅助服务器以及所述其他扩容服务器的存储空间占用比例是否均达到第二阈值。It can be understood that when the auxiliary server receives the data sent by the management server, the auxiliary server can write data to the auxiliary server itself and other expansion servers; Whether the storage space occupancy ratios of the auxiliary server and the other expansion servers reach the second threshold.

若没有均达到第二阈值,则向未达到所述第二阈值的扩容服务器继续写入数据;当均达到所述第二阈值时,使得所述至少两个扩容服务器的存储压力(即存储空间占用比例)达到第一次均衡,此时,再向所述辅助服务器自身和所述其他扩容服务器继续写入数据;然后,所述辅助服务器检测自身以及其他扩容服务器的存储空间占用比例是否均达到第一阈值,若没有均达到所述第一阈值,则向未达到所述第一阈值的扩容服务器继续写入数据;当均达到所述第一阈值时,使得所述至少两个扩容服务器的存储压力达到第二次均衡,并使得所述至少两个扩容服务器的存储压力由第二阈值平缓地过渡到第一阈值,此时停止向所述辅助服务器和其他扩容服务器写数据。If the second threshold is not reached, continue to write data to the expansion server that does not reach the second threshold; when both reach the second threshold, the storage pressure (i.e. storage space) of the at least two expansion servers occupancy ratio) reaches the first balance, at this time, continue to write data to the auxiliary server itself and the other expansion servers; then, the auxiliary server detects whether the storage space occupancy ratios of itself and other expansion servers have reached The first threshold, if the first threshold is not reached, then continue to write data to the expansion server that has not reached the first threshold; when both reach the first threshold, make the at least two expansion servers The storage pressure reaches the second equalization, and the storage pressure of the at least two expansion servers smoothly transitions from the second threshold to the first threshold, and at this time, stop writing data to the auxiliary server and other expansion servers.

需要说明的是,所述其他扩容服务器为:在预设时间内注册到所述管理服务器的至少两个扩容服务中,除了所述辅助服务器之外的所有扩容服务器。It should be noted that, the other capacity expansion servers are: all capacity expansion servers except the auxiliary server among at least two capacity expansion services registered to the management server within a preset time.

还需要说明的是,为了使所述至少两个扩容服务器的存储压力更平缓地过渡到所述第一阈值,还可以预先设定第三阈值、第四阈值和第五阈值等等,这都是合理的。其中,所述第三阈值、第四阈值和第五阈值均小于所述第一阈值。It should also be noted that, in order to make the storage pressure of the at least two expanded servers transition to the first threshold more smoothly, a third threshold, a fourth threshold, a fifth threshold, etc. may also be preset, which all is reasonable. Wherein, the third threshold, the fourth threshold and the fifth threshold are all smaller than the first threshold.

另外,当所述至少两个扩容服务器发生异常时,所述至少两个服务器的存储空间占用比例通常会非常的高。因此,为了检测所述至少两个扩容服务器是否发生异常,本领域技术人员可以根据实际情况设置一个异常阈值。当所述至少两个扩容服务器中任一扩容服务器的存储空间占用比例超过所述异常阈值时,确定该扩容服务器异常并通知技术人员。In addition, when the at least two expansion servers are abnormal, the storage space occupancy ratio of the at least two servers is usually very high. Therefore, in order to detect whether the at least two expansion servers are abnormal, those skilled in the art may set an abnormality threshold according to actual conditions. When the storage space occupancy ratio of any one of the at least two expansion servers exceeds the abnormal threshold, it is determined that the expansion server is abnormal and a technician is notified.

其中,本领域技术人员可以理解的是,所述异常阈值大于所述第一阈值。Wherein, those skilled in the art can understand that the abnormality threshold is greater than the first threshold.

下面结合图2对本发明实施例提供的云存储系统扩容方法作进一步说明。The method for expanding the capacity of the cloud storage system provided by the embodiment of the present invention will be further described below with reference to FIG. 2 .

参见图2,本发明实施例提供的云存储系统扩容方法可以包括如下步骤:Referring to Fig. 2, the cloud storage system expansion method provided by the embodiment of the present invention may include the following steps:

S1:至少两个扩容服务器启动;S1: Start at least two expansion servers;

S2:所述至少两个扩容服务器在预设时间内,注册到云存储系统的管理服务器;S2: The at least two expansion servers register with the management server of the cloud storage system within a preset time;

S3:所述管理服务器向所述至少两个扩容服务器中的每个扩容服务器,返回注册到所述管理服务器的扩容服务器的数量,以及注册到所述管理服务器的各个扩容服务器的存储性能参数;S3: The management server returns the number of expansion servers registered to the management server and storage performance parameters of each expansion server registered to the management server to each expansion server of the at least two expansion servers;

S4:所述至少两个扩容服务器根据各个扩容服务器的存储性能参数,推选辅助服务器;S4: The at least two expansion servers select an auxiliary server according to the storage performance parameters of each expansion server;

S5:所述至少两个扩容服务器中除了辅助服务器外的其他扩容服务器,将自身的在线状态和磁盘参数等信息上报给所述辅助服务器;S5: The expansion servers except the auxiliary server among the at least two expansion servers report information such as their online status and disk parameters to the auxiliary server;

S6:所述辅助服务器在接收到其他扩容设备上报的在线状态和磁盘参数等信息后,初始化在所述预设时间内注册到所述管理服务器的各个扩容服务器;S6: After receiving information such as online status and disk parameters reported by other expansion devices, the auxiliary server initializes each expansion server registered to the management server within the preset time;

S7:在完成初始化操作后,所述辅助服务器对在所述预设时间内注册到所述管理服务器的各个扩容服务器进行格式化;S7: After completing the initialization operation, the auxiliary server formats each expansion server registered to the management server within the preset time;

S8:在完成格式化操作后,所述辅助服务器向所述管理服务器发送写数据请求;S8: After completing the formatting operation, the auxiliary server sends a write data request to the management server;

S9:所述管理服务器在接收到所述写数据请求后,向所述辅助服务器写入数据;S9: After receiving the data write request, the management server writes data to the auxiliary server;

S10:所述辅助服务器在接收到所述管理服务器写入的数据后,所述辅助服务器向自身以及其他扩容服务器写入数据;S10: After the auxiliary server receives the data written by the management server, the auxiliary server writes data to itself and other expansion servers;

S11:所述辅助服务器检测自身以及其他扩容服务器的存储空间占用比例是否均达到第二阈值;S11: The auxiliary server detects whether the storage space occupancy ratios of itself and other expansion servers reach a second threshold;

S12:当所述辅助服务器检测到自身以及其他扩容服务器的存储空间占用比例均达到第二阈值时,所述辅助服务器继续向自身以及其他扩容服务器写入数据;S12: When the auxiliary server detects that the storage space occupancy ratios of itself and other expansion servers reach a second threshold, the auxiliary server continues to write data to itself and other expansion servers;

S13:所述辅助服务器检测自身以及其他扩容服务器的存储空间占用比例是否均达到第一阈值;S13: The auxiliary server detects whether the storage space occupancy ratios of itself and other expansion servers reach a first threshold;

S14:当所述辅助服务器检测到自身以及其他扩容服务器的存储空间占用比例均达到第一阈值时,所述辅助服务器将管理权限移交给所述管理服务器。S14: When the auxiliary server detects that the storage space occupancy ratios of itself and other expansion servers reach a first threshold, the auxiliary server transfers management authority to the management server.

相应于上述方法实施例,本发明实施例还提供了一种云存储系统扩容装置,所述装置应用于云存储系统中的管理服务器,参见图3,所述装置可以包括:Corresponding to the above method embodiment, the embodiment of the present invention also provides a cloud storage system expansion device, the device is applied to the management server in the cloud storage system, see Figure 3, the device may include:

确定单元301,用于确定在预设时间内注册到所述管理服务器的至少两个扩容服务器;A determining unit 301, configured to determine at least two capacity expansion servers registered to the management server within a preset time;

选取单元302,用于从所述至少两个扩容服务器中选取辅助服务器;A selection unit 302, configured to select an auxiliary server from the at least two expansion servers;

指示单元303,用于指示所述辅助服务器管理向所述至少两个扩容服务器,其中,所述管理服务器在所述辅助服务器被确定之前,不向在所述预设时间内注册到所述管理服务器的任一扩容服务器写入数据;An instructing unit 303, configured to instruct the auxiliary server to manage the at least two expansion servers, wherein the management server does not register with the management server within the preset time before the auxiliary server is determined. Any expansion server of the server writes data;

写数据单元304,用于当检测到写数据请求时,向所述辅助服务器写入数据,以使所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器;A write data unit 304, configured to write data to the auxiliary server when a data write request is detected, so that the auxiliary server writes the received data into the at least two expansion servers according to the load balancing principle;

监测单元305,用于通过所述辅助服务器监测所述至少两个扩容服务器的存储空间占用比例;A monitoring unit 305, configured to monitor the storage space occupancy ratio of the at least two expansion servers through the auxiliary server;

获取单元306,用于当监测到所述至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理所述所述至少两个扩容服务器的管理权限。The acquiring unit 306 is configured to acquire management authority to manage the at least two expansion servers when it is detected that the storage space occupancy ratios of the at least two expansion servers reach a first threshold.

在本发明实施例中,云存储系统中的管理服务器,可以从预设时间内注册到所述管理服务器的扩容服务器中,选取一个扩容服务器作为辅助服务器;并在选取得到辅助服务器之前,不向任一扩容服务器中写入数据,避免了扩容服务器在接入云存储系统的瞬间存储压力飙升的问题;在选取得到辅助服务器之后,指示该辅助服务器对在所述预设时间内,注册到所述管理服务器的所述至少两个扩容服务器进行管理;当检测到写数据请求时,向辅助服务器写入数据,所述辅助服务器平稳地向扩容服务器中写入数据;所述管理服务器还可以通过辅助服务器监测各个扩容服务器的存储空间占用比例;当通过所述辅助服务器监测到各个扩容服务器的存储空间占用比例均达到第一阈值时,管理服务器获取对各个扩容服务器的管理权限,这时,管理服务器能够平稳地向扩容服务器写入数据,即扩容服务器被平稳地添加到所述云存储系统。In the embodiment of the present invention, the management server in the cloud storage system can register to the expansion servers of the management server within a preset time, and select an expansion server as the auxiliary server; Writing data to any expansion server avoids the problem of soaring storage pressure when the expansion server is connected to the cloud storage system; after selecting the auxiliary server, instruct the auxiliary server to register to the specified The at least two expansion servers of the management server are managed; when a write data request is detected, data is written to the auxiliary server, and the auxiliary server smoothly writes data to the expansion server; the management server can also pass The auxiliary server monitors the storage space occupancy ratio of each expansion server; when the storage space occupancy ratio of each expansion server is monitored by the auxiliary server and reaches the first threshold, the management server obtains the management authority for each expansion server. At this time, the management The server can write data to the expansion server smoothly, that is, the expansion server is smoothly added to the cloud storage system.

可选地,在一种实现方式中,所述选取单元302具体用于:Optionally, in an implementation manner, the selecting unit 302 is specifically configured to:

将所述至少两个扩容服务器中的目标扩容服务器确定为辅助服务器,所述目标扩容服务器为所述预设时间内第一个注册到所述管理服务器的扩容服务器。Determining a target expansion server among the at least two expansion servers as an auxiliary server, and the target expansion server is the first expansion server registered with the management server within the preset time.

可选地,在另一种实现方式中,所述选取单元302具体用于:Optionally, in another implementation manner, the selecting unit 302 is specifically configured to:

将所述至少两个扩容服务器所推选出的扩容服务器,选取为辅助服务器,其中,所述辅助服务器为所述至少两个扩容服务器基于所接收到的各个扩容服务器的存储性能参数所推选出来的。selecting the expansion server selected by the at least two expansion servers as an auxiliary server, wherein the auxiliary server is selected by the at least two expansion servers based on the received storage performance parameters of each expansion server .

可选地,在本发明一个实施例中,所述装置还包括:Optionally, in one embodiment of the present invention, the device further includes:

发送单元,在所述写数据单元向所述辅助服务器写入数据之前,向所述辅助服务器发送初始化和/或格式化指令,以供所述辅助服务器根据所接收到的初始化和/或格式化指令,对各个扩容服务器进行初始化和/或格式化。a sending unit, before the write data unit writes data to the auxiliary server, send an initialization and/or formatting instruction to the auxiliary server, so that the auxiliary server can use the received initialization and/or formatting instruction Instructions to initialize and/or format each expansion server.

可选地,在所述写数据单元304向所述辅助服务器写入数据后,所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器的步骤,可以包括:Optionally, after the writing data unit 304 writes data to the auxiliary server, the step of the auxiliary server writing the received data into the at least two expansion servers according to the load balancing principle may include:

所述辅助服务器将接收到的数据写入所述辅助服务器自身和其他扩容服务器,并检测所述辅助服务器以及所述其他扩容服务器的存储空间占用比例是否均到第二阈值;The auxiliary server writes the received data into the auxiliary server itself and other expansion servers, and detects whether the storage space occupancy ratios of the auxiliary server and the other expansion servers reach a second threshold;

若否,向未达到所述第二阈值的扩容服务器继续写入数据;If not, continue to write data to the expansion server that has not reached the second threshold;

若均达到所述第二阈值,向所述辅助服务器自身和所述其他扩容服务器写入数据,直到所述辅助服务器以及其他扩容服务器的存储空间占用比例均达到所述第一阈值时,停止向所述辅助服务器和其他扩容服务器写数据,其中,所述第二阈值小于所述第一阈值。If both reach the second threshold, write data to the auxiliary server itself and the other expansion servers, and stop writing data to the auxiliary server and other expansion servers until the storage space occupancy ratios of the auxiliary server and other expansion servers reach the first threshold. The auxiliary server and other expansion servers write data, wherein the second threshold is smaller than the first threshold.

相应于上述方法和装置实施例,本发明实施例还提供了一种云存储系统,所述云存储系统包括管理服务器和多个扩容服务器,所述管理服务器用于:Corresponding to the above method and device embodiments, an embodiment of the present invention also provides a cloud storage system, the cloud storage system includes a management server and multiple expansion servers, and the management server is used for:

确定在预设时间内注册到所述管理服务器的至少两个扩容服务器;determining at least two expansion servers registered to the management server within a preset time;

从所述至少两个扩容服务器中选取辅助服务器,并指示所述辅助服务器管理所述至少两个扩容服务器,其中,所述管理服务器在所述辅助服务器被确定之前,不向在所述预设时间内注册到所述管理服务器的任一扩容服务器写入数据;Select an auxiliary server from the at least two expansion servers, and instruct the auxiliary server to manage the at least two expansion servers, wherein, before the auxiliary server is determined, the management server does not send to the preset Write data to any expansion server registered to the management server within a certain period of time;

当检测到写数据请求时,向所述辅助服务器写入数据,以使所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器;When a write data request is detected, write data to the auxiliary server, so that the auxiliary server writes the received data into the at least two expansion servers according to the load balancing principle;

通过所述辅助服务器监测所述至少两个扩容服务器的存储空间占用比例;Monitoring the storage space occupancy ratio of the at least two expansion servers through the auxiliary server;

当监测到所述至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理所述所述至少两个扩容服务器的管理权限。When it is detected that the storage space occupancy ratios of the at least two expansion servers reach a first threshold, the management authority for managing the at least two expansion servers is acquired.

可选地,在一种实现方式中,所述管理服务器具体用于:将所述至少两个扩容服务器中的目标扩容服务器确定为辅助服务器,所述目标扩容服务器为所述预设时间内第一个注册到所述管理服务器的扩容服务器。Optionally, in an implementation manner, the management server is specifically configured to: determine a target expansion server among the at least two expansion servers as an auxiliary server, and the target expansion server is the second server within the preset time A scaling server registered to the management server.

可选地,在另一种实现方式中,所述管理服务器具体用于:将所述至少两个扩容服务器所推选出的扩容服务器,选取为辅助服务器,其中,所述辅助服务器为所述至少两个扩容服务器基于所接收到的各个扩容服务器的存储性能参数所推选出来的。Optionally, in another implementation manner, the management server is specifically configured to: select an expansion server selected by the at least two expansion servers as an auxiliary server, wherein the auxiliary server is the at least The two expansion servers are selected based on the received storage performance parameters of the respective expansion servers.

可选地,所述管理服务器具体用于:在向所述辅助服务器写入数据的步骤之前,向所述辅助服务器发送初始化和/或格式化指令,以供所述辅助服务器根据所接收到的初始化和/或格式化指令,对各个扩容服务器进行初始化和/或格式化。Optionally, the management server is specifically configured to: before the step of writing data to the auxiliary server, send an initialization and/or formatting instruction to the auxiliary server, for the auxiliary server to use according to the received The initialization and/or formatting instructions are used to initialize and/or format each expansion server.

可选地,所述辅助服务器具体用于:所述辅助服务器将接收到的数据写入所述辅助服务器自身和其他扩容服务器,并检测所述辅助服务器以及所述其他扩容服务器的存储空间占用比例是否均到第二阈值;Optionally, the auxiliary server is specifically configured to: the auxiliary server writes the received data into the auxiliary server itself and other expansion servers, and detects the storage space occupancy ratio of the auxiliary server and the other expansion servers Whether it reaches the second threshold;

若否,向未达到所述第二阈值的扩容服务器继续写入数据;If not, continue to write data to the expansion server that has not reached the second threshold;

若均达到所述第二阈值,向所述辅助服务器自身和所述其他扩容服务器写入数据,直到所述辅助服务器以及其他扩容服务器的存储空间占用比例均达到所述第一阈值时,停止向所述辅助服务器和其他扩容服务器写数据,其中,所述第二阈值小于所述第一阈值。If both reach the second threshold, write data to the auxiliary server itself and the other expansion servers, and stop writing data to the auxiliary server and other expansion servers until the storage space occupancy ratios of the auxiliary server and other expansion servers reach the first threshold. The auxiliary server and other expansion servers write data, wherein the second threshold is smaller than the first threshold.

下面结合图4对云存储系统中的管理服务器与辅助服务器作进一步说明。The management server and auxiliary server in the cloud storage system will be further described below in conjunction with FIG. 4 .

参见图4,由于云存储系统中的管理服务器需要对该系统内的存储服务器进行管理,因此所述管理服务器可以包括:Referring to Fig. 4, since the management server in the cloud storage system needs to manage the storage servers in the system, the management server may include:

第一数据写入模块,所述第一数据写入模块包括第一接收单元和第一转发单元。所述第一接收单元用于接收用户传入的数据,其中,所述数据包括文件数据、图片数据和视频数据;所述第一转发单元用于在接收到第一数据调度模块发出的调度指令时,负责转发数据;A first data writing module, the first data writing module includes a first receiving unit and a first forwarding unit. The first receiving unit is used to receive data from the user, wherein the data includes file data, picture data and video data; the first forwarding unit is used to receive the scheduling instruction issued by the first data scheduling module , responsible for forwarding data;

第一数据调度模块,用于将所述第一数据写入模块所接收到的数据,调度到该云存储系统内的存储服务器中,其中,所述第一数据调度模块包括:写数据单元304和第一监控单元。其中,所述写数据单元304可以在检测到向存储服务器写数据的请求,且第一监控单元检测到该存储服务器的运行状态为在线状态时,向该存储服务器写入数据;所述写数据单元304也可以在检测到向辅助服务器写数据的请求,且第一监控单元检测到该辅助服务器的运行状态为在线状态时,向辅助服务器写入数据;The first data scheduling module is configured to schedule the data received by the first data writing module into a storage server in the cloud storage system, wherein the first data scheduling module includes: a data writing unit 304 and the first monitoring unit. Wherein, the write data unit 304 may write data to the storage server when detecting a request to write data to the storage server and the first monitoring unit detects that the storage server is in an online state; the write data The unit 304 may also write data to the auxiliary server when a request for writing data to the auxiliary server is detected, and the first monitoring unit detects that the operation state of the auxiliary server is online;

第一扩容服务器管理模块,用于根据所述第一扩容管理模块中所包括的确定单元301、选取单元302、指示单元303、监测单元305、获取单元306和发送单元,对在预设时间内注册到所述管理服务器的扩容服务器进行管理,其中,所述确定单元301、选取单元302、指示单元303、监测单元305、获取单元306和发送单元的功能在上文已作具体描述,在此不做赘述。The first expansion server management module is configured to, according to the determination unit 301, the selection unit 302, the indication unit 303, the monitoring unit 305, the acquisition unit 306 and the sending unit included in the first expansion management module, within a preset time Registered to the expansion server of the management server for management, wherein, the functions of the determination unit 301, the selection unit 302, the indication unit 303, the monitoring unit 305, the acquisition unit 306 and the sending unit have been described in detail above, and here I won't go into details.

所述辅助服务器可以包括:The secondary servers may include:

第二数据写入模块,所述第二数据写入模块包括第二接收单元和第二转发单元;所述第二接收单元用于:接收所述第一扩容服务器管理模块中写数据单元304写入的数据;所述第二转发单元用于在接收到第二数据调度模块发出的调度指令时对接收到的数据进行转发;The second data writing module, the second data writing module includes a second receiving unit and a second forwarding unit; the second receiving unit is used to: receive the data written by the writing data unit 304 in the first expansion server management module The incoming data; the second forwarding unit is configured to forward the received data when receiving the scheduling instruction sent by the second data scheduling module;

第二数据调度模块,用于将所述第二数据写入模块所接收到的数据,调度到相应地扩容服务器中,其中,所述第二数据调度模块包括:目标写数据单元和第二监控单元;所述目标写数据单元可以在检测到向扩容服务器写入数据的写数据请求,且第二监控单元检测到该扩容服务器的运行状态为在线状态时,向该扩容服务器写入数据;The second data scheduling module is configured to schedule the data received by the second data writing module into a corresponding expansion server, wherein the second data scheduling module includes: a target write data unit and a second monitoring unit; the target write data unit can write data to the expansion server when detecting a write data request for writing data to the expansion server, and the second monitoring unit detects that the operation status of the expansion server is online;

辅助服务器选举模块,用于从所述至少两个扩容服务器中推选出辅助服务器;An auxiliary server election module, configured to elect an auxiliary server from the at least two expansion servers;

第二扩容服务器管理模块,用于接收所述第一扩容服务器管理模块发出的指令,并根据所述指令对所述第二数据写入模块、数据调度模块、辅助服务器选举模块进行管理,并用于监控各个扩容服务器的存储空间占用比例,并把监控结果发送给所述第一扩容服务器管理模块中的监测单元305。The second expansion server management module is configured to receive the instruction issued by the first expansion server management module, and manage the second data writing module, data scheduling module, and auxiliary server election module according to the instruction, and is used for The storage space occupancy ratio of each expansion server is monitored, and the monitoring result is sent to the monitoring unit 305 in the management module of the first expansion server.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for the related parts, please refer to the part of the description of the method embodiment.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (11)

1.一种云存储系统扩容方法,其特征在于,应用于云存储系统中的管理服务器,包括:1. A method for expanding capacity of a cloud storage system, characterized in that it is applied to a management server in the cloud storage system, comprising: 确定在预设时间内注册到所述管理服务器的至少两个扩容服务器;determining at least two expansion servers registered to the management server within a preset time; 从所述至少两个扩容服务器中选取辅助服务器,并指示所述辅助服务器管理所述至少两个扩容服务器,其中,所述管理服务器在所述辅助服务器被确定之前,不向在所述预设时间内注册到所述管理服务器的任一扩容服务器写入数据;Select an auxiliary server from the at least two expansion servers, and instruct the auxiliary server to manage the at least two expansion servers, wherein, before the auxiliary server is determined, the management server does not send to the preset Write data to any expansion server registered to the management server within a certain period of time; 当检测到写数据请求时,向所述辅助服务器写入数据,以使所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器;When a write data request is detected, write data to the auxiliary server, so that the auxiliary server writes the received data into the at least two expansion servers according to the load balancing principle; 通过所述辅助服务器监测所述至少两个扩容服务器的存储空间占用比例;Monitoring the storage space occupancy ratio of the at least two expansion servers through the auxiliary server; 当监测到所述至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理所述所述至少两个扩容服务器的管理权限。When it is detected that the storage space occupancy ratios of the at least two expansion servers reach a first threshold, the management authority for managing the at least two expansion servers is acquired. 2.根据权利要求1所述的方法,其特征在于,从所述至少两个扩容服务器中选取辅助服务器的步骤,包括:2. The method according to claim 1, wherein the step of selecting an auxiliary server from the at least two expansion servers comprises: 将所述至少两个扩容服务器中的目标扩容服务器确定为辅助服务器,所述目标扩容服务器为所述预设时间内第一个注册到所述管理服务器的扩容服务器。Determining a target expansion server among the at least two expansion servers as an auxiliary server, and the target expansion server is the first expansion server registered with the management server within the preset time. 3.根据权利要求1所述的方法,其特征在于,从所述至少两个扩容服务器中选取辅助服务器的步骤,包括:3. The method according to claim 1, wherein the step of selecting an auxiliary server from the at least two expansion servers comprises: 将所述至少两个扩容服务器所推选出的扩容服务器,选取为辅助服务器,其中,所述辅助服务器为所述至少两个扩容服务器基于所接收到的各个扩容服务器的存储性能参数所推选出来的。selecting the expansion server selected by the at least two expansion servers as an auxiliary server, wherein the auxiliary server is selected by the at least two expansion servers based on the received storage performance parameters of each expansion server . 4.根据权利要求1-3任一项所述的方法,其特征在于,在向所述辅助服务器写入数据的步骤之前,还包括:4. The method according to any one of claims 1-3, further comprising: before the step of writing data to the auxiliary server: 向所述辅助服务器发送初始化和/或格式化指令,以供所述辅助服务器根据所接收到的初始化和/或格式化指令,对各个扩容服务器进行初始化和/或格式化。Sending an initialization and/or formatting instruction to the auxiliary server, so that the auxiliary server can initialize and/or format each expansion server according to the received initialization and/or formatting instruction. 5.根据权利要求1-3任一项所述的方法,其特征在于,所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器的步骤,包括:5. The method according to any one of claims 1-3, wherein the step of the auxiliary server writing the received data into the at least two expansion servers according to the load balancing principle comprises: 所述辅助服务器将接收到的数据写入所述辅助服务器自身和其他扩容服务器,并检测所述辅助服务器以及所述其他扩容服务器的存储空间占用比例是否均到第二阈值;The auxiliary server writes the received data into the auxiliary server itself and other expansion servers, and detects whether the storage space occupancy ratios of the auxiliary server and the other expansion servers reach a second threshold; 若否,向未达到所述第二阈值的扩容服务器继续写入数据;If not, continue to write data to the expansion server that has not reached the second threshold; 若均达到所述第二阈值,向所述辅助服务器自身和所述其他扩容服务器写入数据,直到所述辅助服务器以及其他扩容服务器的存储空间占用比例均达到所述第一阈值时,停止向所述辅助服务器和其他扩容服务器写数据,其中,所述第二阈值小于所述第一阈值。If both reach the second threshold, write data to the auxiliary server itself and the other expansion servers, and stop writing data to the auxiliary server and other expansion servers until the storage space occupancy ratios of the auxiliary server and other expansion servers reach the first threshold. The auxiliary server and other expansion servers write data, wherein the second threshold is smaller than the first threshold. 6.一种云存储系统扩容装置,其特征在于,应用于云存储系统中的管理服务器,包括:6. A cloud storage system expansion device, characterized in that it is applied to the management server in the cloud storage system, including: 确定单元,用于确定在预设时间内注册到所述管理服务器的至少两个扩容服务器;A determining unit, configured to determine at least two expansion servers registered to the management server within a preset time; 选取单元,用于从所述至少两个扩容服务器中选取辅助服务器;a selection unit, configured to select an auxiliary server from the at least two expansion servers; 指示单元,用于指示所述辅助服务器管理所述至少两个扩容服务器,其中,所述管理服务器在所述辅助服务器被确定之前,不向在所述预设时间内注册到所述管理服务器的任一扩容服务器写入数据;An instructing unit, configured to instruct the auxiliary server to manage the at least two capacity expansion servers, wherein the management server does not register with the management server within the preset time before the auxiliary server is determined. Any expansion server writes data; 写数据单元,用于当检测到写数据请求时,向所述辅助服务器写入数据,以使所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器;A write data unit, configured to write data to the auxiliary server when a write data request is detected, so that the auxiliary server writes the received data into the at least two expansion servers according to the load balancing principle; 监测单元,用于通过所述辅助服务器监测所述至少两个扩容服务器的存储空间占用比例;A monitoring unit, configured to monitor the storage space occupancy ratio of the at least two expansion servers through the auxiliary server; 获取单元,用于当监测到所述至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理所述所述至少两个扩容服务器的管理权限。The acquiring unit is configured to acquire management authority to manage the at least two expansion servers when it is detected that the storage space occupancy ratios of the at least two expansion servers reach a first threshold. 7.根据权利要求6所述的装置,其特征在于,所述选取单元具体用于:7. The device according to claim 6, wherein the selecting unit is specifically used for: 将所述至少两个扩容服务器中的目标扩容服务器确定为辅助服务器,所述目标扩容服务器为所述预设时间内第一个注册到所述管理服务器的扩容服务器。Determining a target expansion server among the at least two expansion servers as an auxiliary server, and the target expansion server is the first expansion server registered with the management server within the preset time. 8.根据权利要求6所述的装置,其特征在于,所述选取单元具体用于:8. The device according to claim 6, wherein the selecting unit is specifically used for: 将所述至少两个扩容服务器所推选出的扩容服务器,选取为辅助服务器,其中,所述辅助服务器为所述至少两个扩容服务器基于所接收到的各个扩容服务器的存储性能参数所推选出来的。selecting the expansion server selected by the at least two expansion servers as an auxiliary server, wherein the auxiliary server is selected by the at least two expansion servers based on the received storage performance parameters of each expansion server . 9.根据权利要求6-8任一项所述的装置,其特征在于,所述装置还包括:9. The device according to any one of claims 6-8, wherein the device further comprises: 发送单元,在所述写数据单元向所述辅助服务器写入数据之前,向所述辅助服务器发送初始化和/或格式化指令,以供所述辅助服务器根据所接收到的初始化和/或格式化指令,对各个扩容服务器进行初始化和/或格式化。a sending unit, before the write data unit writes data to the auxiliary server, send an initialization and/or formatting instruction to the auxiliary server, so that the auxiliary server can use the received initialization and/or formatting instruction Instructions to initialize and/or format each expansion server. 10.根据权利要求6-8任一项所述的装置,其特征在于,在所述写数据单元向所述辅助服务器写入数据后,所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器的步骤包括:10. The device according to any one of claims 6-8, wherein after the write data unit writes data to the auxiliary server, the auxiliary server writes the received data according to the principle of load balancing The step of adding the at least two expansion servers includes: 所述辅助服务器将接收到的数据写入所述辅助服务器自身和其他扩容服务器,并检测所述辅助服务器以及所述其他扩容服务器的存储空间占用比例是否均到第二阈值;The auxiliary server writes the received data into the auxiliary server itself and other expansion servers, and detects whether the storage space occupancy ratios of the auxiliary server and the other expansion servers reach a second threshold; 若否,向未达到所述第二阈值的扩容服务器继续写入数据;If not, continue to write data to the expansion server that has not reached the second threshold; 若均达到所述第二阈值,向所述辅助服务器自身和所述其他扩容服务器写入数据,直到所述辅助服务器以及其他扩容服务器的存储空间占用比例均达到所述第一阈值时,停止向所述辅助服务器和其他扩容服务器写数据,其中,所述第二阈值小于所述第一阈值。If both reach the second threshold, write data to the auxiliary server itself and the other expansion servers, and stop writing data to the auxiliary server and other expansion servers until the storage space occupancy ratios of the auxiliary server and other expansion servers reach the first threshold. The auxiliary server and other expansion servers write data, wherein the second threshold is smaller than the first threshold. 11.一种云存储系统,包括管理服务器和多个扩容服务器,其特征在于,所述管理服务器用于:11. A cloud storage system, comprising a management server and multiple expansion servers, characterized in that the management server is used for: 确定在预设时间内注册到所述管理服务器的至少两个扩容服务器;determining at least two expansion servers registered to the management server within a preset time; 从所述至少两个扩容服务器中选取辅助服务器,并指示所述辅助服务器管理所述至少两个扩容服务器,其中,所述管理服务器在所述辅助服务器被确定之前,不向在所述预设时间内注册到所述管理服务器的任一扩容服务器写入数据;Select an auxiliary server from the at least two capacity expansion servers, and instruct the auxiliary server to manage the at least two capacity expansion servers, wherein the management server does not send information to the preset server before the auxiliary server is determined. Write data to any expansion server registered to the management server within a certain period of time; 当检测到写数据请求时,向所述辅助服务器写入数据,以使所述辅助服务器将接收到的数据按照负载均衡原则写入所述至少两个扩容服务器;When a write data request is detected, write data to the auxiliary server, so that the auxiliary server writes the received data into the at least two expansion servers according to the load balancing principle; 通过所述辅助服务器监测所述至少两个扩容服务器的存储空间占用比例;Monitoring the storage space occupancy ratio of the at least two expansion servers through the auxiliary server; 当监测到所述至少两个扩容服务器的存储空间占用比例均达到第一阈值时,获取管理所述所述至少两个扩容服务器的管理权限。When it is detected that the storage space occupancy ratios of the at least two expansion servers reach a first threshold, the management authority for managing the at least two expansion servers is obtained.
CN201611066896.9A 2016-11-25 2016-11-25 Cloud storage system capacity expansion method and device and cloud storage system Active CN108111566B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611066896.9A CN108111566B (en) 2016-11-25 2016-11-25 Cloud storage system capacity expansion method and device and cloud storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611066896.9A CN108111566B (en) 2016-11-25 2016-11-25 Cloud storage system capacity expansion method and device and cloud storage system

Publications (2)

Publication Number Publication Date
CN108111566A true CN108111566A (en) 2018-06-01
CN108111566B CN108111566B (en) 2020-11-06

Family

ID=62204678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611066896.9A Active CN108111566B (en) 2016-11-25 2016-11-25 Cloud storage system capacity expansion method and device and cloud storage system

Country Status (1)

Country Link
CN (1) CN108111566B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110333953A (en) * 2019-07-11 2019-10-15 中国工商银行股份有限公司 Data storage resource dispatching method and device
CN111208952A (en) * 2020-02-13 2020-05-29 河南文正电子数据处理有限公司 Storage system capacity expansion method, readable storage medium and computing device
CN111258710A (en) * 2020-01-09 2020-06-09 同盾控股有限公司 System maintenance method and device
CN112019577A (en) * 2019-05-29 2020-12-01 中国移动通信集团重庆有限公司 Exclusive cloud storage implementation method and device, computing equipment and computer storage medium
CN113377781A (en) * 2021-07-12 2021-09-10 中国工商银行股份有限公司 Data storage method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070022087A1 (en) * 2005-07-25 2007-01-25 Parascale, Inc. Scalable clustered storage system
CN102664914A (en) * 2012-03-22 2012-09-12 北京英孚斯迈特信息技术有限公司 IS/DFS-Image distributed file storage query system
CN103810244A (en) * 2013-12-09 2014-05-21 北京理工大学 Distributed data storage system expansion method based on data distribution
CN104023246A (en) * 2014-04-28 2014-09-03 深圳英飞拓科技股份有限公司 Private video data cloud-storage system and method
CN105162859A (en) * 2015-08-20 2015-12-16 湖南亿谷科技发展股份有限公司 Dynamic server dilatation system and method
CN105657066A (en) * 2016-03-23 2016-06-08 天津书生云科技有限公司 Load rebalance method and device used for storage system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070022087A1 (en) * 2005-07-25 2007-01-25 Parascale, Inc. Scalable clustered storage system
CN102664914A (en) * 2012-03-22 2012-09-12 北京英孚斯迈特信息技术有限公司 IS/DFS-Image distributed file storage query system
CN103810244A (en) * 2013-12-09 2014-05-21 北京理工大学 Distributed data storage system expansion method based on data distribution
CN104023246A (en) * 2014-04-28 2014-09-03 深圳英飞拓科技股份有限公司 Private video data cloud-storage system and method
CN105162859A (en) * 2015-08-20 2015-12-16 湖南亿谷科技发展股份有限公司 Dynamic server dilatation system and method
CN105657066A (en) * 2016-03-23 2016-06-08 天津书生云科技有限公司 Load rebalance method and device used for storage system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高帅,等: "基于轮转部署的 RAID6 分布式存储系统扩容方案", 《计算机应用与软件》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019577A (en) * 2019-05-29 2020-12-01 中国移动通信集团重庆有限公司 Exclusive cloud storage implementation method and device, computing equipment and computer storage medium
CN112019577B (en) * 2019-05-29 2023-04-07 中国移动通信集团重庆有限公司 Exclusive cloud storage implementation method and device, computing equipment and computer storage medium
CN110333953A (en) * 2019-07-11 2019-10-15 中国工商银行股份有限公司 Data storage resource dispatching method and device
CN111258710A (en) * 2020-01-09 2020-06-09 同盾控股有限公司 System maintenance method and device
CN111258710B (en) * 2020-01-09 2023-03-31 同盾控股有限公司 System maintenance method and device
CN111208952A (en) * 2020-02-13 2020-05-29 河南文正电子数据处理有限公司 Storage system capacity expansion method, readable storage medium and computing device
CN111208952B (en) * 2020-02-13 2022-07-12 河南文正电子数据处理有限公司 Storage system capacity expansion method, readable storage medium and computing device
CN113377781A (en) * 2021-07-12 2021-09-10 中国工商银行股份有限公司 Data storage method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN108111566B (en) 2020-11-06

Similar Documents

Publication Publication Date Title
US10949158B2 (en) Screenshot method and apparatus
CN108023967B (en) Data balancing method and device and management equipment in distributed storage system
US9887937B2 (en) Distributed fair allocation of shared resources to constituents of a cluster
CN108111566B (en) Cloud storage system capacity expansion method and device and cloud storage system
CN106663042B (en) Scalable Data Storage Pool
CN108845877B (en) Method, device and system for managing memory
CN108923992A (en) A kind of NAS cluster high availability method, system and electronic equipment and storage medium
CN101699825A (en) Network file system access method, device and system
US9535749B2 (en) Methods for managing work load bursts and devices thereof
CN109802986B (en) Device management method, system, device and server
CN109151028A (en) A kind of distributed memory system disaster recovery method and device
US8543680B2 (en) Migrating device management between object managers
CN107678906B (en) Hard disk management method and system
CN105556472A (en) Managing client access to a plurality of computing systems
US20060212871A1 (en) Resource allocation in computing systems
CN115134373A (en) Data synchronization method and device, storage medium and electronic equipment
CN106533961B (en) Flow control method and device
CN100416542C (en) Load distribution system and method
CN105681266B (en) A kind of communication cluster method and device of mediaphone MMTel
US20170034258A1 (en) Methods for centralized management api service across disparate storage platforms and devices thereof
CN108200151A (en) ISCSI Target load-balancing methods and device in a kind of distributed memory system
JP2022087808A (en) Method, system and computer program of notifying endpoint of storage area network congestion
TW201430584A (en) Monitoring system for managing cloud hosts and monitoring method used for the same
CN104734886A (en) Business server management method, device and system
CN111796768B (en) Distributed service coordination method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250722

Address after: Rooms 602 and 605, No. 85 Xiangxue Avenue Middle, Huangpu District, Guangzhou City, Guangdong Province 510000

Patentee after: Guangzhou Gaohang Technology Transfer Co.,Ltd.

Country or region after: China

Address before: Hangzhou City, Zhejiang province 310051 Binjiang District Qianmo Road No. 555

Patentee before: Hangzhou Hikvision Digital Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250904

Address after: 610000 Sichuan Province Chengdu City Jinniu District Jinfeng Road No. 6 Building 10 1st Floor Room 53 Attached to No. 1

Patentee after: Chengdu Qianyuan Technology Co.,Ltd.

Country or region after: China

Address before: Rooms 602 and 605, No. 85 Xiangxue Avenue Middle, Huangpu District, Guangzhou City, Guangdong Province 510000

Patentee before: Guangzhou Gaohang Technology Transfer Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 611400 Sichuan Province Chengdu City Xinjin District Puxing Street Xinkedao 248.NO 14 Building 3rd Floor Self-number: 314 (Sichuan Chengdu Xinjin Economic Development Zone)

Patentee after: Chengdu Qianyuan Technology Co.,Ltd.

Country or region after: China

Address before: 610000 Sichuan Province Chengdu City Jinniu District Jinfeng Road No. 6 Building 10 1st Floor Room 53 Attached to No. 1

Patentee before: Chengdu Qianyuan Technology Co.,Ltd.

Country or region before: China