[go: up one dir, main page]

CN106155566A - For storing method, the Apparatus and system of data - Google Patents

For storing method, the Apparatus and system of data Download PDF

Info

Publication number
CN106155566A
CN106155566A CN201510149887.5A CN201510149887A CN106155566A CN 106155566 A CN106155566 A CN 106155566A CN 201510149887 A CN201510149887 A CN 201510149887A CN 106155566 A CN106155566 A CN 106155566A
Authority
CN
China
Prior art keywords
data
storage system
storage
target data
described target
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.)
Pending
Application number
CN201510149887.5A
Other languages
Chinese (zh)
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.)
Siemens Corp
Original Assignee
Siemens Corp
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 Siemens Corp filed Critical Siemens Corp
Priority to CN201510149887.5A priority Critical patent/CN106155566A/en
Publication of CN106155566A publication Critical patent/CN106155566A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及用于存储数据的方法、装置和系统。该方法包括:接收用于指示对目标数据进行存储的数据操作请求,其中,数据操作请求包括目标数据的数据分类;根据表示多个数据分类与多个存储系统的对应关系的存储策略,确定与目标数据的数据分类相对应的存储系统;以及将目标数据存储在所确定的存储系统中。在本发明实施例中,对数据进行分类并对不同数据分类的数据采用不同的存储系统进行存储,从而能够满足用户对不同分类的数据的不同存储需求。

The present invention relates to methods, devices and systems for storing data. The method includes: receiving a data operation request for instructing to store target data, wherein the data operation request includes a data classification of the target data; according to a storage strategy representing a correspondence between multiple data classifications and multiple storage systems, determine the A storage system corresponding to the data classification of the target data; and storing the target data in the determined storage system. In the embodiment of the present invention, data is classified and different storage systems are used to store data of different data classifications, so as to meet different storage requirements of users for data of different classifications.

Description

用于存储数据的方法、装置及系统Method, device and system for storing data

技术领域technical field

本发明涉及信息技术领域,尤其涉及用于存储数据的方法、装置及系统。The present invention relates to the field of information technology, in particular to a method, device and system for storing data.

背景技术Background technique

随着全球数据规模的爆炸式增长,数据存储技术在这个大数据时代变得越来越重要。因此,如何更好地实现数据存储成为人们的关注热点。With the explosive growth of global data scale, data storage technology is becoming more and more important in this era of big data. Therefore, how to better implement data storage has become a hot spot of people's attention.

常见的存储系统可以包括集中式存储系统和分布式存储系统。集中式存储系统作为传统的存储技术,已经广泛用于企业级应用和一些关键的应用中。例如,常用的集中式存储系统包括网络连接存储(Network Attached Storage,NAS)、存储区域网络(Storage Area Network,SAN)等。由于利用基于特定硬件的控制器和管理软件,因此集中式存储系统能够实现高性能,高可靠性,但是成本也比较高。Common storage systems may include centralized storage systems and distributed storage systems. As a traditional storage technology, centralized storage systems have been widely used in enterprise-level applications and some key applications. For example, commonly used centralized storage systems include network attached storage (Network Attached Storage, NAS), storage area network (Storage Area Network, SAN), and so on. Due to the use of controllers and management software based on specific hardware, the centralized storage system can achieve high performance and high reliability, but the cost is relatively high.

随着云计算和大数据相关技术的发展,分布式存储系统应运而生。在分布式存储系统中,通常采用直连存储(Directly Attached storage,DAS)作为存储介质,并利用分布式文件系统(Distributed File Syetem,DFS)来对分布式数据文件或节点进行管理。因此,相比集中式存储系统而言,分布式存储系统的成本大大降低,但是性能也相应降低。With the development of cloud computing and big data-related technologies, distributed storage systems have emerged. In a distributed storage system, Directly Attached Storage (DAS) is usually used as a storage medium, and a Distributed File System (Distributed File System, DFS) is used to manage distributed data files or nodes. Therefore, compared with the centralized storage system, the cost of the distributed storage system is greatly reduced, but the performance is also reduced accordingly.

目前,用户(例如,企业或事业单位等)会固定使用这两种存储系统中的一种来存储数据。然而,随着数据业务的急剧增加,用户具有各种类型的数据,例如,有些是重要的数据,有些是不太重要的数据,那么对于数据存储也有着多种多样的需求。例如,用户可能希望数据存储既能达到高性能,又能实现低成本,在这种情况下,固定使用这两种存储系统中的一种将难以满足用户不同的存储需求。Currently, users (for example, enterprises or public institutions, etc.) will always use one of these two storage systems to store data. However, with the rapid increase of data services, users have various types of data, for example, some are important data, and some are less important data, so there are also various requirements for data storage. For example, a user may hope that data storage can achieve both high performance and low cost. In this case, it will be difficult to meet the different storage requirements of the user by using one of the two storage systems.

发明内容Contents of the invention

考虑到现有技术的上述问题,本发明的实施例提供了用于存储数据的方法、装置和系统,其能够满足用户对不同分类的数据的不同存储需求。Considering the above-mentioned problems in the prior art, embodiments of the present invention provide a method, device and system for storing data, which can meet users' different storage requirements for different categories of data.

本发明的一个实施例提供了一种用于存储数据的方法,包括:接收用于指示对目标数据进行存储的数据操作请求,其中,所述数据操作请求包括所述目标数据的数据分类;根据表示多个数据分类与多个存储系统的对应关系的存储策略,确定与所述目标数据的数据分类相对应的存储系统;以及将所述目标数据存储在所确定的存储系统中。An embodiment of the present invention provides a method for storing data, including: receiving a data operation request indicating to store target data, wherein the data operation request includes a data classification of the target data; A storage strategy representing correspondence between multiple data categories and multiple storage systems, determining a storage system corresponding to the data category of the target data; and storing the target data in the determined storage system.

其中,所述数据分类利用用户标识或数据来源来表示,所述存储策略包括以下对应关系中的至少一种:多个用户标识与所述多个存储系统的对应关系,以及,多个数据来源与所述多个存储系统的对应关系。Wherein, the data classification is represented by a user ID or a data source, and the storage policy includes at least one of the following correspondences: a correspondence between multiple user IDs and the multiple storage systems, and multiple data sources Correspondence with the multiple storage systems.

其中,所述多个存储系统包括集中式存储系统和分布式存储系统。Wherein, the multiple storage systems include a centralized storage system and a distributed storage system.

其中,所述方法还包括:接收用于指示对所述目标数据执行指定操作的另一数据操作请求,其中,所述另一数据操作请求包括所述目标数据的数据分类,所述指定操作包括读取操作、更新操作和删除操作中的一种;根据所述存储策略,查找与所述目标数据的数据分类相对应的存储系统;以及在所查找到的存储系统中对所述目标数据执行所述指定操作。Wherein, the method further includes: receiving another data operation request indicating to perform a specified operation on the target data, wherein the another data operation request includes the data classification of the target data, and the specified operation includes One of a read operation, an update operation, and a delete operation; according to the storage policy, search for a storage system corresponding to the data classification of the target data; and execute the target data in the found storage system The specified operation.

本发明的另一实施例提供了一种用于存储数据的装置,包括:接收模块,用于接收用于指示对目标数据进行存储的数据操作请求,其中,所述数据操作请求包括所述目标数据的数据分类;确定模块,用于根据表示多个数据分类与多个存储系统的对应关系的存储策略,确定与所述目标数据的数据分类相对应的存储系统;操作模块,用于将所述目标数据存储在所确定的存储系统中。Another embodiment of the present invention provides an apparatus for storing data, including: a receiving module, configured to receive a data operation request indicating to store target data, wherein the data operation request includes the target Data classification of data; a determination module, configured to determine a storage system corresponding to the data classification of the target data according to a storage strategy representing a correspondence relationship between multiple data classifications and multiple storage systems; an operation module, used to convert all The above target data is stored in the determined storage system.

其中,所述数据分类利用用户标识或数据来源来表示,所述存储策略包括以下对应关系中的至少一种:多个用户标识与所述多个存储系统的对应关系,以及,多个数据来源与所述多个存储系统的对应关系。Wherein, the data classification is represented by a user ID or a data source, and the storage policy includes at least one of the following correspondences: a correspondence between multiple user IDs and the multiple storage systems, and multiple data sources Correspondence with the multiple storage systems.

其中,所述多个存储系统包括集中式存储系统和分布式存储系统。Wherein, the multiple storage systems include a centralized storage system and a distributed storage system.

其中,所述接收模块,还用于接收用于指示对所述目标数据执行指定操作的另一数据操作请求,其中,所述另一数据操作请求包括所述目标数据的数据分类,所述指定操作包括读取操作、更新操作和删除操作中的一种;所述确定模块,还用于根据所述存储策略,查找与所述目标数据的数据分类相对应的存储系统;以及所述操作模块,还用于在所查找到的存储系统中对所述目标数据执行所述指定操作。Wherein, the receiving module is further configured to receive another data operation request indicating to perform a specified operation on the target data, wherein the other data operation request includes the data classification of the target data, and the specified The operation includes one of a read operation, an update operation, and a delete operation; the determination module is further configured to search for a storage system corresponding to the data classification of the target data according to the storage policy; and the operation module , further configured to perform the specified operation on the target data in the found storage system.

本发明的另一实施例提供了一种用于存储数据的系统,包括:多个存储系统;以及控制设备,用于当接收到用于指示对目标数据进行存储且包括所述目标数据的数据分类的数据操作请求时,确定与所述目标数据的数据分类相对应的存储系统并将所述目标数据存储在所确定的存储系统中。Another embodiment of the present invention provides a system for storing data, including: a plurality of storage systems; and a control device, configured to, when receiving data indicating to store target data and including the target data When a classified data operation request is made, a storage system corresponding to the data classification of the target data is determined and the target data is stored in the determined storage system.

其中,所述数据分类利用用户标识或数据来源来表示,所述存储策略包括以下对应关系中的至少一种:多个用户标识与所述多个存储系统的对应关系,以及,多个数据来源与所述多个存储系统的对应关系。Wherein, the data classification is represented by a user ID or a data source, and the storage policy includes at least one of the following correspondences: a correspondence between multiple user IDs and the multiple storage systems, and multiple data sources Correspondence with the multiple storage systems.

其中,所述多个存储系统包括集中式存储系统和分布式存储系统。Wherein, the multiple storage systems include a centralized storage system and a distributed storage system.

其中,所述控制设备,还用于在接收到用于指示对所述目标数据执行指定操作并且包括所述目标数据的数据分类的另一数据操作请求时,查找与所述目标数据的数据分类相对应的存储系统并在所查找到的存储系统中对所述目标数据执行所述指定操作,其中,所述指定操作包括读取操作、更新操作和删除操作中的一种。Wherein, the control device is further configured to, when receiving another data operation request indicating to perform a specified operation on the target data and including the data classification of the target data, search for a data classification related to the target data The corresponding storage system performs the specified operation on the target data in the found storage system, where the specified operation includes one of a read operation, an update operation, and a delete operation.

在本发明实施例中,对数据进行分类并对不同数据分类的数据采用不同的存储系统进行存储,从而能够满足用户对不同分类的数据的不同存储需求。In the embodiment of the present invention, data is classified and different storage systems are used to store data of different data classifications, so as to meet different storage requirements of users for data of different classifications.

附图说明Description of drawings

本发明的其它特征、特点、优点和益处通过以下结合附图的详细描述将变得更加显而易见。Other features, features, advantages and benefits of the present invention will become more apparent from the following detailed description in conjunction with the accompanying drawings.

图1是根据本发明一个实施例的用于存储数据的系统的示意图。FIG. 1 is a schematic diagram of a system for storing data according to an embodiment of the present invention.

图2是根据本发明一个实施例的存储策略的形式的例子的示意图。FIG. 2 is a schematic diagram of an example of a form of a storage policy according to an embodiment of the present invention.

图3是根据本发明一个实施例的用于存储数据的方法的流程图。Fig. 3 is a flowchart of a method for storing data according to an embodiment of the present invention.

图4是根据本发明一个实施例的用于存储数据的装置的示意图。Fig. 4 is a schematic diagram of an apparatus for storing data according to an embodiment of the present invention.

图5是根据本发明一个实施例的控制设备的示意图。Fig. 5 is a schematic diagram of a control device according to an embodiment of the present invention.

具体实施方式detailed description

下面,将参照附图详细描述本发明的各个实施例。Hereinafter, various embodiments of the present invention will be described in detail with reference to the accompanying drawings.

图1是根据本发明一个实施例的用于存储数据的系统的示意图。如图1所示,用于存储数据的系统100包括控制设备110和多个存储系统。FIG. 1 is a schematic diagram of a system for storing data according to an embodiment of the present invention. As shown in FIG. 1 , a system 100 for storing data includes a control device 110 and multiple storage systems.

在一种具体实施方式中,多个存储系统可以包括集中式存储系统和分布式存储系统,例如,如图1所示的集中式存储系统120和分布式存储系统130。例如,集中式存储系统120可以是NAS或SAN等。分布式存储系统130可以采用DAS作为存储介质,并利用DFS对分布式数据文件或节点进行管理。但是,本发明实施例并不限于此。例如,多个存储系统可以包括更多数量的存储系统,还可以包括除集中式存储系统和分布式存储系统之外的其它存储系统。In a specific implementation manner, the multiple storage systems may include a centralized storage system and a distributed storage system, for example, the centralized storage system 120 and the distributed storage system 130 shown in FIG. 1 . For example, the centralized storage system 120 may be NAS or SAN. The distributed storage system 130 may use DAS as a storage medium, and use DFS to manage distributed data files or nodes. However, the embodiments of the present invention are not limited thereto. For example, multiple storage systems may include a greater number of storage systems, and may also include other storage systems than the centralized storage system and the distributed storage system.

控制设备110可以与集中式存储系统120和分布式存储系统130进行交互。例如,控制设备110可以通过有线或无线的方式连接到集中式存储系统120和分布式存储系统130,从而与集中式存储系统120和分布式存储系统130进行通信。The control device 110 can interact with the centralized storage system 120 and the distributed storage system 130 . For example, the control device 110 may be connected to the centralized storage system 120 and the distributed storage system 130 in a wired or wireless manner, so as to communicate with the centralized storage system 120 and the distributed storage system 130 .

在控制设备110与集中式存储系统120和分布式存储系统130之间,可以使用多种数据传输协议。例如,如果集中式存储系统120为NAS,则可以在控制设备110与NAS之间使用NFS或通用互联网文件系统(CommonInternet File System,CIFS)协议。Various data transmission protocols can be used between the control device 110 and the centralized storage system 120 and the distributed storage system 130 . For example, if the centralized storage system 120 is NAS, NFS or Common Internet File System (Common Internet File System, CIFS) protocol can be used between the control device 110 and the NAS.

如果集中式存储系统120为SAN,则可以根据SAN的类型来确定要使用的数据传输协议。例如,对于光纤信道(Fiber Channel,FC)SAN,可以在控制设备110与NAS之间使用专门的FC协议;而对于互联网协议(InternetProtocol,IP)SAN,可以在控制设备110与NAS之间使用互联网小型计算机系统接口(Internet Small Computer System Interface,ISCSI)协议。If the centralized storage system 120 is a SAN, the data transmission protocol to be used may be determined according to the type of the SAN. For example, for a Fiber Channel (Fiber Channel, FC) SAN, a dedicated FC protocol can be used between the control device 110 and the NAS; and for an Internet Protocol (Internet Protocol, IP) SAN, the Internet can be used between the control device 110 and the NAS Small Computer System Interface (Internet Small Computer System Interface, ISCSI) protocol.

控制设备110与分布式存储系统120之间的传输协议通常取决于用于组织DAS的DFS。例如,在DFS为Hadoop DFS(HDFS)的情况下,可以使用基于HTTP的HDFS协议。The transmission protocol between the control device 110 and the distributed storage system 120 usually depends on the DFS used to organize the DAS. For example, when the DFS is Hadoop DFS (HDFS), an HTTP-based HDFS protocol can be used.

此外,控制设备110还可以通过有线或无线的方式连接到用户使用的设备(例如,计算机等)上,与用户使用的设备进行通信。In addition, the control device 110 may also be connected to a device used by the user (for example, a computer, etc.) in a wired or wireless manner, and communicate with the device used by the user.

例如,控制设备110可以连接到企业中的各个部门使用的计算机。这些计算机上可以安装有应用,并且可以通过所安装的应用来与控制设备110进行通信。各个部门的计算机可能产生不同类型的数据,比如,财务数据、管理数据、业务数据等。在需要将这些数据存储到存储系统时,这些计算机上安装的应用可以向控制设备110发送数据操作请求来请求将数据存储到某个存储系统中。For example, control device 110 may be connected to computers used by various departments in an enterprise. Applications can be installed on these computers, and can communicate with the control device 110 through the installed applications. Computers in various departments may generate different types of data, such as financial data, management data, business data, and so on. When these data need to be stored in a storage system, the applications installed on these computers may send a data operation request to the control device 110 to request to store the data in a certain storage system.

应用可以通过多种件传输协议来向控制设备110发送数据操作请求,例如,应用与控制设备110之间的传输协议可以包括REST API、文件传输协议(File Transfer Protocol,FTP)、网络文件系统(Network File Syetem,NFS)等。The application can send a data operation request to the control device 110 through a variety of file transfer protocols. For example, the transfer protocol between the application and the control device 110 can include REST API, File Transfer Protocol (File Transfer Protocol, FTP), network file system ( Network File System, NFS), etc.

具体地,控制设备110用于当接收到用于指示对目标数据进行存储且包括所述目标数据的数据分类的数据操作请求时,确定与目标数据的数据分类相对应的存储系统并将目标数据存储在所确定的存储系统中。Specifically, the control device 110 is configured to determine the storage system corresponding to the data classification of the target data and store the target data when receiving a data operation request indicating to store the target data and including the data classification of the target data stored in the identified storage system.

具体地,控制设备110可以接收用于指示对目标数据进行存储的数据操作请求,其中,数据操作请求包括目标数据的数据分类;根据表示多个数据分类与多个存储系统的对应关系的存储策略,确定与目标数据的数据分类相对应的存储系统;以及将目标数据存储在所确定的存储系统中。Specifically, the control device 110 may receive a data operation request for instructing to store the target data, where the data operation request includes the data classification of the target data; according to the storage policy indicating the correspondence between multiple data classifications and multiple storage systems , determining a storage system corresponding to the data classification of the target data; and storing the target data in the determined storage system.

例如,存储策略可以是用户预先在控制设备110中配置的。此外,用户还可以对存储策略进行更新,以适应用户对存储方案的不断变化的需求。例如,存储策略可以是用户通过网络用户接口(Web User Interface)或者基于代表性状态传输(Representational State Transfer,REST)协议的应用编程接口(Application Programming Interface,API)(其可以被称为REST API)来配置的。For example, the storage policy may be configured in the control device 110 by the user in advance. In addition, users can also update storage policies to adapt to users' ever-changing requirements for storage solutions. For example, the storage policy may be a user through a web user interface (Web User Interface) or an application programming interface (Application Programming Interface, API) based on a representational state transfer (Representational State Transfer, REST) protocol (which may be referred to as a REST API) to configure.

在一种具体的实施方式中,数据分类可以利用用户标识或者数据来源来表示。存储策略可以包括以下对应关系中的至少一种:多个用户标识(UserIdentification,User ID)与多个存储系统的对应关系,以及,多个数据来源与多个存储系统的对应关系。In a specific implementation manner, the data classification may be represented by a user identifier or a data source. The storage policy may include at least one of the following correspondences: correspondences between multiple user identifications (UserIdentification, User ID) and multiple storage systems, and correspondences between multiple data sources and multiple storage systems.

相应地,上述数据操作请求可以包括目标数据的用户标识或者数据来源标识。Correspondingly, the above-mentioned data operation request may include a user identifier or a data source identifier of the target data.

这样,控制设备110可以根据数据操作请求中的用户标识或者数据来源标识,查询存储策略,从而可以确定与目标数据的用户标识或数据来源标识相对应的存储系统,然后将目标数据存储在所确定的存储系统中。In this way, the control device 110 can query the storage policy according to the user ID or data source ID in the data operation request, so as to determine the storage system corresponding to the user ID or data source ID of the target data, and then store the target data in the determined in the storage system.

从上述可以看出,在本发明实施例中,对数据进行分类并对不同数据分类的数据采用不同的存储系统进行存储,从而能够满足用户对不同分类的数据的不同存储需求。It can be seen from the above that in the embodiment of the present invention, data is classified and data of different data classifications are stored using different storage systems, so as to meet different storage requirements of users for data of different classifications.

例如,在多个存储系统包括集中式存储系统和分布式存储系统的情况下,用户在配置存储策略时可以将存储需求与两个存储系统的特点相结合,从而能够满足用户不同的存储需求。例如,实时数据要求高存储性能,而针对其它数据,用户希望达到低存储成本。对于集中式存储系统来说,其具有高存储性能,而分布式存储系统具有低成本,那么,用户可以在存储策略中指定将实时数据存储在集中式存储系统中,将其它数据存储在分布式存储系统中。For example, in the case of multiple storage systems including a centralized storage system and a distributed storage system, the user can combine the storage requirements with the characteristics of the two storage systems when configuring the storage policy, so as to meet the different storage requirements of the user. For example, real-time data requires high storage performance, while for other data, users want to achieve low storage costs. For the centralized storage system, it has high storage performance, and the distributed storage system has low cost. Then, the user can specify in the storage strategy to store real-time data in the centralized storage system and store other data in the distributed storage system. in the storage system.

在另一种具体实施方式中,控制设备110还可以用于在接收到用于指示对目标数据执行指定操作并且包括目标数据的数据分类的另一数据操作请求时,查找与目标数据的数据分类相对应的存储系统并在所查找到的存储系统中对目标数据执行指定操作,其中,指定操作包括读取操作、更新操作和删除操作中的一种。In another specific implementation manner, the control device 110 may also be configured to, when receiving another data operation request indicating to perform a specified operation on the target data and including the data classification of the target data, search for the data classification related to the target data. The corresponding storage system performs a specified operation on the target data in the found storage system, wherein the specified operation includes one of a read operation, an update operation and a delete operation.

具体而言,控制设备110可以支持对目标数据的读取、更新和删除操作。因此,控制设备可以被理解为进行数据访问的透明接口,支持CRUD(create/read/update/delete)操作。Specifically, the control device 110 may support read, update and delete operations on target data. Therefore, the control device can be understood as a transparent interface for data access, supporting CRUD (create/read/update/delete) operations.

在对目标数据存储之后,可以将目标数据的存储地址进行缓存,或者也可以不缓存目标数据的存储地址。在将目标数据的存储地址缓存的情况下,控制设备110在从应用接收到用于请求对目标数据执行存储之外的其它操作的数据操作请求之后,无需查询存储策略,可以获取所缓存的存储地址,从而在相应的存储系统中对目标数据执行操作。在未将目标数据的存储地址缓存的情况下,控制设备110在从应用接收到用于请求对目标数据执行存储之外的其它操作的数据操作请求之后,可以查询存储策略,确定与目标数据的数据分类相对应的存储系统中,从而在所确定的存储系统中对目标数据执行相应的操作。例如,可以在所确定的存储系统中对目标数据执行读取、更新或删除等操作。After the target data is stored, the storage address of the target data may be cached, or the storage address of the target data may not be cached. In the case of caching the storage address of the target data, the control device 110 can obtain the cached storage address without querying the storage policy after receiving a data operation request from the application for requesting an operation other than storage on the target data. address to perform operations on the target data in the corresponding storage system. If the storage address of the target data is not cached, after the control device 110 receives a data operation request from the application for requesting to perform operations other than storage on the target data, it can query the storage policy to determine the location of the target data. In the storage system corresponding to the data classification, corresponding operations are performed on the target data in the determined storage system. For example, operations such as read, update, or delete may be performed on the target data in the determined storage system.

下面将针对存储策略进行描述。上述的存储策略可以采用多种形式来表示。The storage strategy will be described below. The above storage policy can be expressed in various forms.

作为一个例子,多个用户标识与多个存储系统的对应关系可以直接通过多个用户标识与多个存储系统的标识的对应关系来表示,多个数据来源与多个存储系统的对应关系可以直接通过多个数据来源标识与多个存储系统的标识的对应关系来表示。As an example, the correspondence between multiple user identities and multiple storage systems can be directly represented by the correspondence between multiple user identities and multiple storage system identities, and the correspondence between multiple data sources and multiple storage systems can be directly It is represented by the corresponding relationship between multiple data source identifiers and multiple storage system identifiers.

或者,作为另一例子,可以定义“角色”的概念。角色可以包括贵宾(VeryImportant Person,VIP)角色和普通角色。可以通过多个用户标识、角色和多个存储系统的标识来表示多个用户标识与多个存储系统的对应关系,例如该对应关系可以由多个用户标识与多个角色的对应关系以及多个角色与多个存储系统的标识的对应关系来表示。对于多个数据来源与多个存储系统的对应关系,可以通过多个数据来源标识、多个角色和多个存储系统的标识来表示,例如,该对应关系可以由多个数据来源标识与多个角色的对应关系以及多个角色与多个存储系统的标识的对应关系来表示。Or, as another example, the concept of a "role" could be defined. The roles may include VIP (Very Important Person, VIP) roles and common roles. The correspondence between multiple user IDs and multiple storage systems can be represented by multiple user IDs, roles, and multiple storage system IDs. For example, the corresponding relationship can be defined by the correspondence between multiple user IDs and multiple roles and multiple It is represented by the corresponding relationship between roles and identifiers of multiple storage systems. The corresponding relationship between multiple data sources and multiple storage systems can be represented by multiple data source IDs, multiple roles, and multiple storage system IDs. For example, the corresponding relationship can be represented by multiple data source IDs and multiple The corresponding relationship between roles and the corresponding relationship between multiple roles and multiple storage system identities are represented.

下面将结合具体例子来详细描述存储策略的形式。应当理解的是,该例子仅是为了帮助本领域技术人员更好地理解本发明实施例,而非限制本发明的范围。图2是根据本发明一个实施例的存储策略的形式的例子的示意图。在图2中,仍以集中式存储系统和分布式存储系统为例进行说明。The form of the storage policy will be described in detail below in combination with specific examples. It should be understood that this example is only intended to help those skilled in the art better understand the embodiments of the present invention, rather than limit the scope of the present invention. FIG. 2 is a schematic diagram of an example of a form of a storage policy according to an embodiment of the present invention. In FIG. 2 , the centralized storage system and the distributed storage system are still taken as examples for illustration.

如图2所示,存储策略可以包括多个角色与多个存储系统的对应关系。例如,VIP角色与集中式存储系统相对应,而普通角色与分布式存储系统相对应。As shown in FIG. 2 , the storage policy may include correspondences between multiple roles and multiple storage systems. For example, a VIP role corresponds to a centralized storage system, while a common role corresponds to a distributed storage system.

存储策略还可以包括多个用户ID与多个角色之间的对应关系。例如,如图2所示,用户ID G001-032、G001-021可以与VIP角色相对应,而用户ID G002-001可以与普通角色相对应,那么来自用户ID G001-032和G001-021的数据可以与集中式存储系统相对应,而来自用户ID G002-001的数据可以与分布式存储系统相对应。The storage policy may also include correspondences between multiple user IDs and multiple roles. For example, as shown in Figure 2, user IDs G001-032 and G001-021 can correspond to VIP roles, while user ID G002-001 can correspond to ordinary roles, then the data from user IDs G001-032 and G001-021 Can correspond to a centralized storage system, while data from user ID G002-001 can correspond to a distributed storage system.

此外,存储策略还可以包括多个数据来源与多个角色之间的对应关系。例如,数据来源可以包括企业资源计划(Enterprise Resources Planning,ERP)、客户关系管理(Customer Relationship Management,CRM)、归档系统等。如图2所示,ERP可以对应于VIP角色,CRM可以对应于VIP角色,而归档系统可以对应于普通角色。那么,来自ERP的数据和来自CRM的数据均可以与集中式存储系统相对应,而来自归档系统的数据可以与分布式存储系统相对应。In addition, the storage policy may also include correspondences between multiple data sources and multiple roles. For example, data sources may include enterprise resource planning (Enterprise Resources Planning, ERP), customer relationship management (Customer Relationship Management, CRM), filing systems, and the like. As shown in Figure 2, ERP can correspond to a VIP role, CRM can correspond to a VIP role, and the filing system can correspond to a common role. Then, both the data from ERP and the data from CRM can correspond to the centralized storage system, and the data from the filing system can correspond to the distributed storage system.

应当理解,尽管上面描述了存储策略是根据数据的用户或者数据来源来配置的,但是用户还可以根据其它因素来配置存储策略,以满足不同的存储需求。It should be understood that although it is described above that the storage policy is configured according to the data user or data source, the user may also configure the storage policy according to other factors to meet different storage requirements.

现在参照图3,其是根据本发明一个实施例的用于存储数据的方法的流程图。例如,图3的方法可以由上述图1中的控制设备110来执行。Referring now to FIG. 3 , it is a flowchart of a method for storing data according to one embodiment of the present invention. For example, the method in FIG. 3 may be executed by the control device 110 in FIG. 1 above.

如图3所示,该方法包括以下步骤:As shown in Figure 3, the method includes the following steps:

步骤310,接收用于指示对目标数据进行存储的数据操作请求,其中,数据操作请求包括目标数据的数据分类。Step 310, receiving a data operation request for instructing to store the target data, wherein the data operation request includes the data classification of the target data.

步骤320,根据表示多个数据分类与多个存储系统的对应关系的存储策略,确定与目标数据的数据分类相对应的存储系统。Step 320: Determine the storage system corresponding to the data classification of the target data according to the storage policy indicating the correspondence between multiple data classifications and multiple storage systems.

步骤330,将目标数据存储在所确定的存储系统中。Step 330, storing the target data in the determined storage system.

在一种具体实施方式中,多个存储系统可以包括集中式存储系统和分布式存储系统。In a specific implementation manner, the multiple storage systems may include a centralized storage system and a distributed storage system.

在另一种具体实施方式中,上述数据分类可以利用用户标识或数据来源来表示,相应地,存储策略可以包括以下对应关系中的至少一种:多个用户标识与多个存储系统的对应关系,以及,多个数据来源与多个存储系统的对应关系。In another specific implementation manner, the above-mentioned data classification can be represented by user ID or data source, and correspondingly, the storage policy can include at least one of the following correspondences: correspondence between multiple user IDs and multiple storage systems , and, the correspondence between multiple data sources and multiple storage systems.

在另一种具体实施方式中,该方法还可以包括以下步骤:接收用于指示对目标数据执行指定操作的另一数据操作请求,其中,另一数据操作请求包括目标数据的数据分类,指定操作包括读取操作、更新操作和删除操作中的一种;根据存储策略,查找与目标数据的数据分类相对应的存储系统;以及在所查找到的存储系统中对目标数据执行指定操作。In another specific implementation manner, the method may further include the following steps: receiving another data operation request indicating to perform a specified operation on the target data, wherein the other data operation request includes the data classification of the target data, the specified operation Including one of a read operation, an update operation and a delete operation; according to a storage policy, searching for a storage system corresponding to the data classification of the target data; and performing a specified operation on the target data in the found storage system.

现在参照图4,其是根据本发明一个实施例的用于存储数据的装置的示意图。图4所示的装置400可以利用软件、硬件(例如集成电路或DSP等)或软硬件结合的方式来实现,并且可以安装在控制设备110中。Referring now to FIG. 4 , it is a schematic diagram of an apparatus for storing data according to an embodiment of the present invention. The apparatus 400 shown in FIG. 4 can be implemented by software, hardware (such as an integrated circuit or DSP, etc.) or a combination of software and hardware, and can be installed in the control device 110 .

如图4所示,装置400可以包括接收模块410、确定模块420和操作模块430。As shown in FIG. 4 , the apparatus 400 may include a receiving module 410 , a determining module 420 and an operating module 430 .

接收模块410用于接收用于指示对目标数据进行存储的数据操作请求,其中,数据操作请求包括目标数据的数据分类。确定模块420用于根据表示多个数据分类与多个存储系统的对应关系的存储策略,确定与目标数据的数据分类相对应的存储系统。操作模块430用于将目标数据存储在所确定的存储系统中。The receiving module 410 is configured to receive a data operation request for instructing to store target data, wherein the data operation request includes data classification of the target data. The determining module 420 is configured to determine the storage system corresponding to the data classification of the target data according to the storage policy indicating the correspondence between multiple data classifications and multiple storage systems. The operation module 430 is used for storing the target data in the determined storage system.

在一种具体实现方式中,数据分类可以利用用户标识或数据来源来表示,相应地,存储策略可以包括以下对应关系中的至少一种:多个用户标识与多个存储系统的对应关系,以及,多个数据来源与多个存储系统的对应关系。In a specific implementation manner, data classification may be represented by user identifiers or data sources, and correspondingly, the storage policy may include at least one of the following correspondences: correspondences between multiple user identifiers and multiple storage systems, and , the correspondence between multiple data sources and multiple storage systems.

在另一种具体实施方式中,多个存储系统可以包括集中式存储系统和分布式存储系统。In another specific implementation manner, the multiple storage systems may include a centralized storage system and a distributed storage system.

在另一种具体实施方式中,接收模块410还可以用于接收用于指示对所述目标数据执行指定操作的另一数据操作请求,其中,另一数据操作请求包括所述目标数据的数据分类,指定操作包括读取操作、更新操作和删除操作中的一种。确定模块420还可以用于根据存储策略,查找与目标数据的数据分类相对应的存储系统;以及操作模块430还可以用于在所查找到的存储系统中对目标数据执行指定操作。In another specific implementation manner, the receiving module 410 may also be configured to receive another data operation request indicating to perform a specified operation on the target data, where the other data operation request includes the data classification of the target data , specifying that the operation includes one of a read operation, an update operation, and a delete operation. The determination module 420 can also be used to search for a storage system corresponding to the data category of the target data according to the storage policy; and the operation module 430 can also be used to perform a specified operation on the target data in the found storage system.

现在参见图5,其是根据本发明一个实施例的控制设备的示意图。如图5所示,控制设备500可以包括用于存储可执行指令的存储器510和与存储器510连接的处理器520,其中,处理器520可以执行前述装置400的各个模块所执行的操作。Referring now to FIG. 5 , which is a schematic diagram of a control device according to one embodiment of the present invention. As shown in FIG. 5 , the control device 500 may include a memory 510 for storing executable instructions and a processor 520 connected to the memory 510 , where the processor 520 may execute the operations performed by the various modules of the aforementioned apparatus 400 .

本发明实施例还提供一种机器可读介质,其上存储可执行指令,当该可执行指令被执行时,使得机器实现处理器520的操作。The embodiment of the present invention also provides a machine-readable medium on which executable instructions are stored, and when the executable instructions are executed, the machine implements the operations of the processor 520 .

本领域技术人员应当理解,上面公开的各个实施例可以在不偏离发明实质的情况下做出各种变形和修改。因此,本发明的保护范围应当由所附的权利要求书来限定。Those skilled in the art should understand that various variations and modifications can be made to the above-disclosed embodiments without departing from the essence of the invention. Therefore, the protection scope of the present invention should be defined by the appended claims.

Claims (14)

1. the method being used for storing data, comprising:
Receiving the data operation request storing target data for instruction, wherein, described data are grasped Make request and include the data classification of described target data;
According to the storage strategy representing the classification of multiple data and the corresponding relation of multiple storage systems, determine with The data corresponding storage system of classification of described target data;And
In storage system determined by described target data is stored in.
2. method according to claim 1, wherein,
Described data classified use ID or data source represent,
Described storage strategy includes at least one in following corresponding relation: multiple ID with described many The corresponding relation of individual storage system, and, multiple data source is corresponding with the plurality of storage system closes System.
3. method according to claim 1 and 2, wherein,
The plurality of storage system includes centralised storage system and distributed memory system.
4. method according to claim 1 and 2, also includes:
Receive for indicating another data operation request performing assigned operation to described target data, wherein, Another data operation request described includes the data classification of described target data, and described assigned operation includes reading Extract operation, the one updating in operation and deletion action;
According to described storage strategy, search the storage system corresponding with the classification of the data of described target data; And
In the storage system finding, described assigned operation is performed to described target data.
5. the device being used for storing data, comprising:
Receiver module, for receiving the data operation request storing target data for instruction, its In, described data operation request includes the data classification of described target data;
Determining module, for according to representing depositing of the classification of multiple data and the corresponding relation of multiple storage systems Storage strategy, determines the storage system corresponding with the classification of the data of described target data;
Operation module, in storage system determined by being stored in described target data.
6. device according to claim 5, wherein,
Described data classified use ID or data source represent,
Described storage strategy includes at least one in following corresponding relation: multiple ID with described many The corresponding relation of individual storage system, and, multiple data source is corresponding with the plurality of storage system closes System.
7. the device according to claim 5 or 6, wherein,
The plurality of storage system includes centralised storage system and distributed memory system.
8. the device according to claim 5 or 6, wherein,
Described receiver module, is additionally operable to reception and performs the another of assigned operation for instruction to described target data One data operation request, wherein, another data operation request described includes that the data of described target data are divided Class, described assigned operation includes read operation, the one updating in operation and deletion action;
Described determining module, is additionally operable to, according to described storage strategy, search the data with described target data Classify corresponding storage system;And
Described operation module, is additionally operable to perform institute to described target data in the storage system being found State assigned operation.
9. a control equipment, comprising:
Memory;And
Processor, for performing the operation included by any one in claim 1-4.
10. a machine readable media, is stored thereon with executable instruction, when described executable instruction quilt During execution so that machine performs the operation included by any one in claim 1-4.
11. 1 kinds for storing the system of data, comprising:
Multiple storage systems;And
Control equipment, carries out storing and include described target to target data for instruction for working as to receive
During the data operation request that the data of data are classified, determine the data classification phase with described target data
In corresponding storage system storage system determined by described target data is stored in.
12. systems according to claim 11, wherein,
Described data classified use ID or data source represent,
Described storage strategy includes at least one in following corresponding relation: multiple ID with described many The corresponding relation of individual storage system, and, multiple data source is corresponding with the plurality of storage system closes System.
13. systems according to claim 11 or 12, wherein,
The plurality of storage system includes centralised storage system and distributed memory system.
14. systems according to claim 11 or 12, wherein,
Described control equipment, is additionally operable to receiving for instruction to described target data execution assigned operation And including described target data data classification another data operation request when, search with described target The data of data classify corresponding storage system and in the storage system being found to described target Data perform described assigned operation, and wherein, described assigned operation includes read operation, updates operation and delete One in division operation.
CN201510149887.5A 2015-03-31 2015-03-31 For storing method, the Apparatus and system of data Pending CN106155566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510149887.5A CN106155566A (en) 2015-03-31 2015-03-31 For storing method, the Apparatus and system of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510149887.5A CN106155566A (en) 2015-03-31 2015-03-31 For storing method, the Apparatus and system of data

Publications (1)

Publication Number Publication Date
CN106155566A true CN106155566A (en) 2016-11-23

Family

ID=57338363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510149887.5A Pending CN106155566A (en) 2015-03-31 2015-03-31 For storing method, the Apparatus and system of data

Country Status (1)

Country Link
CN (1) CN106155566A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598502A (en) * 2016-12-23 2017-04-26 广州杰赛科技股份有限公司 Data storage method and system
CN106940725A (en) * 2017-03-21 2017-07-11 深圳微众税银信息服务有限公司 A kind of collage-credit data storage dispatching method and system
CN107453948A (en) * 2017-07-28 2017-12-08 北京邮电大学 The storage method and system of a kind of network measurement data
CN107526545A (en) * 2017-08-16 2017-12-29 国家电网公司 A Resource Integration Method of Distributed Storage and Centralized Storage
CN108762675A (en) * 2018-05-24 2018-11-06 北京无线电测量研究所 Date storage method and system
CN110927475A (en) * 2018-09-20 2020-03-27 湖南省计量检测研究院 Large-scale industrial equipment electromagnetic wave interference field test system
CN112416858A (en) * 2020-11-09 2021-02-26 深圳市珍爱捷云信息技术有限公司 Document storage method and device, electronic equipment and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1653422A (en) * 2002-05-31 2005-08-10 国际商业机器公司 Method, system, and program for a policy based storage manager
CN102959558A (en) * 2010-07-08 2013-03-06 惠普发展公司,有限责任合伙企业 System and method for document policy enforcement

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1653422A (en) * 2002-05-31 2005-08-10 国际商业机器公司 Method, system, and program for a policy based storage manager
CN102959558A (en) * 2010-07-08 2013-03-06 惠普发展公司,有限责任合伙企业 System and method for document policy enforcement

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106598502A (en) * 2016-12-23 2017-04-26 广州杰赛科技股份有限公司 Data storage method and system
CN106940725A (en) * 2017-03-21 2017-07-11 深圳微众税银信息服务有限公司 A kind of collage-credit data storage dispatching method and system
CN106940725B (en) * 2017-03-21 2019-12-27 深圳微众税银信息服务有限公司 Credit investigation data storage scheduling method and system
CN107453948A (en) * 2017-07-28 2017-12-08 北京邮电大学 The storage method and system of a kind of network measurement data
CN107526545A (en) * 2017-08-16 2017-12-29 国家电网公司 A Resource Integration Method of Distributed Storage and Centralized Storage
CN108762675A (en) * 2018-05-24 2018-11-06 北京无线电测量研究所 Date storage method and system
CN108762675B (en) * 2018-05-24 2021-04-16 北京无线电测量研究所 Data storage method and system
CN110927475A (en) * 2018-09-20 2020-03-27 湖南省计量检测研究院 Large-scale industrial equipment electromagnetic wave interference field test system
CN112416858A (en) * 2020-11-09 2021-02-26 深圳市珍爱捷云信息技术有限公司 Document storage method and device, electronic equipment and computer readable storage medium
CN112416858B (en) * 2020-11-09 2024-08-06 深圳市珍爱捷云信息技术有限公司 Document storage method, apparatus, electronic device, and computer-readable storage medium

Similar Documents

Publication Publication Date Title
US9165031B2 (en) Retrieving stored data using a web service
CN103959264B (en) Using deduplication in a storage cloud to manage immutable redundant files
US9817987B2 (en) Restricting access to content
CN106155566A (en) For storing method, the Apparatus and system of data
US10656972B2 (en) Managing idempotent operations while interacting with a system of record
US9344515B2 (en) Social-driven precaching of accessible objects
US20170300307A1 (en) Utilizing user devices for backing up and retrieving data in a distributed backup system
US10860604B1 (en) Scalable tracking for database udpates according to a secondary index
US20140195514A1 (en) Unified interface for querying data in legacy databases and current databases
US10187255B2 (en) Centralized configuration data in a distributed file system
US20120159479A1 (en) Providing a persona-based application experience
US20140304384A1 (en) Uploading large content items
JP2016518653A (en) Local server for synchronized online content management system
EP4145299A1 (en) Systems and methods for list retrieval in a storage device
WO2018233630A1 (en) DISCOVERY OF FAILURE
US11768883B2 (en) System and method for in-place record content management
US20190334757A1 (en) Cross-cloud operation management
CN104020961A (en) Distributed data storage method, device and system
CN103597800A (en) Automatic cloud service reconnection
US10262024B1 (en) Providing consistent access to data objects transcending storage limitations in a non-relational data store
US12341856B2 (en) Communication protocols for an online content management system
CN106331075A (en) Method for storing files, metadata server and manager
US20180205790A1 (en) Distributed data structure in a software defined networking environment
JP2010530588A (en) Extending file storage scale using federated repositories
CN107426288A (en) A kind of resource-sharing schedule method and apparatus based on storage network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161123