Movatterモバイル変換


[0]ホーム

URL:


CN109408467A - A kind of method and device for realizing data storage - Google Patents

A kind of method and device for realizing data storage
Download PDF

Info

Publication number
CN109408467A
CN109408467ACN201811377503.5ACN201811377503ACN109408467ACN 109408467 ACN109408467 ACN 109408467ACN 201811377503 ACN201811377503 ACN 201811377503ACN 109408467 ACN109408467 ACN 109408467A
Authority
CN
China
Prior art keywords
storage
data
service
data storage
file
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
CN201811377503.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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co LtdfiledCriticalZhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811377503.5ApriorityCriticalpatent/CN109408467A/en
Publication of CN109408467ApublicationCriticalpatent/CN109408467A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

Translated fromChinese

本申请实施例公开了一种实现数据存储的方法及装置,在传统的文件存储系统中配置两种存储模式,分别为文件存储模式和对象存储模式,在具体实现时,存储系统通过对外接口接收对象客户端发送的数据存储请求,并对该数据存储请求进行解析,获得用户身份信息,然后根据用户身份信息查找该数据存储请求对应的用户配置文件,再根据用户配置文件确定数据存储模式,最后根据确定的数据存储模式选择对应的存储路径进行数据存储,从而实现在一个存储系统中融合两种存储模式,根据用户的需求选择不同的存储模式,提高存储系统的利用率,满足海量数据的存储。同时,在一种存储系统中部署两种存储模式,减少设备成本。

The embodiment of the present application discloses a method and device for implementing data storage. Two storage modes are configured in a traditional file storage system, namely, a file storage mode and an object storage mode. During specific implementation, the storage system receives data through an external interface. Object to the data storage request sent by the client, and parse the data storage request to obtain user identity information, then search for the user profile corresponding to the data storage request according to the user identity information, and then determine the data storage mode according to the user profile, and finally According to the determined data storage mode, the corresponding storage path is selected for data storage, so as to realize the integration of two storage modes in one storage system, and select different storage modes according to the needs of users, improve the utilization rate of the storage system, and meet the storage of massive data. . At the same time, two storage modes are deployed in one storage system to reduce equipment costs.

Description

A kind of method and device for realizing data storage
Technical field
This application involves Internet technical fields, and in particular to a kind of method and device for realizing data storage.
Background technique
With further speeding up for information technology, the storage of mass data and shared seem more urgent and necessary.WithThe rise of big data and cloud, data are stored to be played an increasingly important role as the bases of all other data behaviors.
Traditional file system storage service is just widely used, and file storage uses Network File System (NetworkFile System, NFS) or the visit of universal network file system (Common Internet File System, CIFS) command setIt asks data, using file as transport protocol, networking storage is realized by TCP/IP, scalability is good, cheap, user Yi GuanReason such as applies more NFS file system in PC cluster at present.But due to the protocol overhead of file storage is high, bandwidth is low,Delay is big, is unfavorable for applying in High-Performance Computing Cluster, can not be applicable in the storage of mass data.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of realization date storage method and device, to improve data storage clothesMass data storage is realized in business.
To solve the above problems, technical solution provided by the embodiments of the present application is as follows:
The application first aspect provides a kind of method for realizing data storage, and the method is deposited applied to distributed documentStorage system, the external interface connecting object client of the distributed file storage system, which comprises
Receive the data storage request that the object client is sent;The data storage request include storage data withAnd subscriber identity information;
The data storage request is parsed, the corresponding use of the data storage request is obtained according to the subscriber identity informationFamily configuration file;
Data model storage is determined according to the user profile;The data model storage be file memory module orObject memory module;
According to the data model storage, corresponding store path is selected to store data.
In one possible implementation, described before receiving the data storage request that the object client is sentMethod further include:
Start rados service;The rados service is for providing object storage service;
It is described according to the data model storage, selection when the data model storage is the object memory moduleCorresponding store path stores data, comprising:
Corresponding store path is selected, data are stored using rados service.
In one possible implementation, the method also includes:
The corresponding configuration file of the external interface is modified, addition executes the rados service in the configuration fileMemory node.
In one possible implementation, the external interface of the distributed file storage system and the target customerEnd is carried out data transmission using s3 agreement or Swift agreement.
In one possible implementation, the method also includes:
Storage result information is sent to the object client, to show storage result to user.
The application second aspect provides a kind of device for realizing data storage, and described device is deposited applied to distributed documentStorage system, the external interface connecting object client of the distributed file storage system, described device include:
Receiving unit, the data storage request sent for receiving the object client;The data storage request packetInclude the data and subscriber identity information of storage;
Resolution unit obtains the data according to the subscriber identity information and deposits for parsing the data storage requestCorresponding user profile is requested in storage;
Determination unit, for determining data model storage according to the user profile;The data model storage isFile memory module or object memory module;
Storage unit, for selecting corresponding store path to store data according to the data model storage.
In one possible implementation, described device further include:
Start unit, for before receiving unit receives the data storage request, starting rados to be serviced;The radosService is for providing object storage service;
When the data model storage is the object memory module, the storage unit is specifically used for selection and corresponds toStore path, using the rados service data are stored.
In one possible implementation, described device further include:
Unit is modified, for modifying the corresponding configuration file of the external interface, adds and executes in the configuration fileThe memory node of the rados service.
In one possible implementation, the external interface of the distributed file storage system and the target customerEnd is carried out data transmission using s3 agreement or Swift agreement.
In one possible implementation, described device further include:
Transmission unit, for sending storage result information to the object client, to show storage result to user.
It can be seen that the embodiment of the present application has the following beneficial effects:
The embodiment of the present application configures two kinds of memory modules, respectively file memory module in traditional document storage systemWith object memory module, in specific implementation, storage system receives the data that object client is sent by external interface and storesRequest, and the data storage request is parsed, subscriber identity information is obtained, the number is then searched according to subscriber identity informationCorresponding user profile is requested according to storage, data model storage is determined further according to user profile, finally according to determinationData model storage select corresponding store path to carry out data storage, two kinds are merged in a storage system to realizeMemory module selects different memory modules according to the demand of user, improves the utilization rate of storage system, meets mass dataStorage.Meanwhile two kinds of memory modules are disposed in a kind of storage system, reduce equipment cost.
Detailed description of the invention
Fig. 1 is the block schematic illustration of exemplary application scene provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of method for realizing data storage provided by the embodiments of the present application
Fig. 3 is a kind of distributed file storage system partition structure figure provided by the embodiments of the present application;
Fig. 4 is a kind of structure drawing of device for realizing data storage provided by the embodiments of the present application.
Specific embodiment
In order to make the above objects, features, and advantages of the present application more apparent, with reference to the accompanying drawing and it is specific realMode is applied to be described in further detail the embodiment of the present application.
The technical solution of the application for ease of understanding will first be illustrated the background technique of the application below.
Invention finds that traditional file system storage service is just widely used in traditional storage method research,File storage is exactly network storage (Network Attached Storage, NAS).But since the protocol overhead of NAS is high, bandwidthLow, delay greatly, is unfavorable for applying in High-Performance Computing Cluster.However, facing mass memory demand, object storage service is because of its Gao AnEntirely with high reliability, additional its addressable characteristic, the increasingly favor by numerous Internet users whenever and wherever possible.Object is depositedStorage is the date storage method of non-hierarchical structure, commonly used in cloud.It is object-based to deposit different from other date storage methodsStorage does not use directory tree, object storage, then using flat data structure, instead of the directory tree structure of traditional NAS,Secondary is succinct data read and write interface, to improve the efficiency of user's access and reading and writing data.
Based on this, the embodiment of the present application provides a kind of method and device for realizing data storage, which is based onDistributed file storage system merges two different memory modules, i.e. file memory module and object in the storage systemMemory module, the system receive the data storage request that object client is sent by external interface, and parse data storageRequest is to obtain the corresponding user profile of the data storage request according to subscriber identity information, then according to user configuration textPart determines data model storage, finally according to data model storage, corresponding path of depositing is selected to store data.As it can be seen thatThe embodiment of the present application to provide two kinds of different data memory modules in a kind of storage system for user, both saved equipment atThis, meets the needs of different users simultaneously, improves the competitiveness of file storage and object storage.
Referring to Fig. 1, which is the block schematic illustration of exemplary application scene provided by the embodiments of the present application.Wherein, this ShenPlease the method for realizations data storage that provides of embodiment applied to distributed file storage system 20.
When practical application, distributed file storage system 20 receives the data storage request that object client 10 is sent, andData storage request is parsed, the corresponding user of the data storage request is determined according to the subscriber identity information that parsing obtainsConfiguration file determines data model storage, carries out data storage.
It will be understood by those skilled in the art that block schematic illustration shown in FIG. 1 is only that presently filed embodiment can beAn example being wherein achieved.The scope of application of the application embodiment is not limited by any aspect of the frame.
It should be noted that object client 10 can be carried on terminal, terminal can be it is existing, researching and developing orIn the future research and development, can by it is any type of wiredly and/or wirelessly connection (for example, Wi-Fi, LAN, honeycomb, coaxial cableDeng) any user equipment for interacting, including but not limited to: existing, researching and developing or research and development in the future intelligence can be wornWear equipment, smart phone, non-smart mobile phone, tablet computer, laptop PC, desktop personal computer, small-sized meterCalculation machine, medium-size computer, mainframe computer etc..Presently filed embodiment is unrestricted in this regard.It is also noted that, distributed file storage system 20 can be existing, researching and developing or research and development in the future, energy in the embodiment of the present applicationEnough provide a user an example of the equipment of data storage service.Presently filed embodiment is not in this regard by any limitSystem.
Technical solution provided by the present application for ease of understanding deposits realization data provided by the present application below in conjunction with attached drawingMethod for storing is illustrated.
Referring to fig. 2, which is a kind of flow chart for realizing date storage method provided by the embodiments of the present application, and this method is answeredFor distributed file storage system, wherein the external interface connecting object client of distributed file storage system, this methodMay include:
S201: the data storage request that object client is sent is received.
In the present embodiment, when object client there are data to be stored, sent to distributed file storage systemData storage request realizes data so that distributed file storage system can carry out corresponding operating according to data storage requestStorage.
Wherein, data storage request may include the data and subscriber identity information of storage, which canThink that ID, IP address of corresponding objects client etc. can be with the information of unique identification user identity.
S202: parsing data storage request obtains the corresponding user configuration of data storage request according to subscriber identity informationFile.
In the present embodiment, after receiving the data storage request of object client transmission, data storage request is parsed, withObtain subscriber identity information.Then, the corresponding user profile of data storage request is obtained according to subscriber identity information.
Wherein, user profile is the configuration file being pre-created by system according to the request of user, the user configurationFile may include user identifier, data model storage set by the user storage data.In practical applications, different useFamily corresponds to different user profiles, may include different data model storages in different user profiles.WhereinData model storage can be file memory module and object memory module.
S203: data model storage is determined according to user profile.
In the present embodiment, after parsing obtains user profile, the target customer can be determined from user profileHold corresponding data model storage.
S204: according to data model storage, corresponding store path is selected to store data.
In the present embodiment, when determining data model storage, store path corresponding with the data model storage is selected, soData storage is carried out afterwards.That is, when determining data model storage is file memory module, according to pre-set store path,Data are stored with file memory module;When determining data model storage is object memory module, according to presettingStore path, data are stored with object memory module.
In practical applications, object storage is divided into three-decker, respectively client layer, container floor and object layer, tenantNot as independent distinguishing hierarchy.And in order to realize that merging file storage and object in a set of storage system stores two kinds of storagesMode, universal formulation are four-layer structure, i.e., using tenant as one layer, realize the multi-tenant function of support target storage.In this ShenPlease corresponding distributed file storage system include tenant grade catalogue, container levels catalogue, file-level catalogue, this four layers respectively correspondTenant, user, container and the object of object storage, as shown in Figure 3.
In addition, when storage system completes data storage storage result information can be sent to object client, so as to rightAs client to user show storage result, check storage condition convenient for user.
In practical applications, distributed file storage system external interface can be rados gateway, and rados can be dynamicA kind of stabilization, expansible, high performance unity logic object are provided on a storage equipment group of planes for state variation and heterojunction structure(Object) memory interface is communicated by rados gateway with object client.In specific implementation, external interface and object visitorFamily end can be carried out data transmission using s3 agreement or Swift agreement.
When providing storage service to object client using the distributed document deposit system, starting rados service first,The rados service can be used for providing object storage service for object client;When determine data model storage for object storageWhen mode, corresponding store path is selected, data are stored using rados service.
It should be noted that also needing the corresponding configuration file of modification external interface before starting rados service, matchingSet the memory node that addition in file executes rados service.It is understood that may include in distributed file storage systemMultiple memory nodes can choose one of memory node for executing rados service.
By foregoing description, storage method provided in this embodiment is based on distributed file storage system, in the storage systemTwo different memory modules, i.e. file memory module and object memory module are merged in system, which is connect by external interfaceThe data storage request that object client is sent is received, and parses the data storage request to obtain the number according to subscriber identity informationCorresponding user profile is requested according to storage, data model storage is then determined according to user profile, finally according to numberAccording to memory module, corresponding path of depositing is selected to store data.As it can be seen that the embodiment of the present application is in a kind of storage systemUser provides two kinds of different data memory modules, has both saved equipment cost, has met the needs of different users simultaneously, improves file and depositsThe competitiveness of storage and object storage.
Based on above method embodiment, present invention also provides a kind of devices for realizing data storage, below in conjunction with attachedFigure is illustrated the device.
Referring to fig. 4, which is a kind of structure drawing of device for realizing data storage provided by the embodiments of the present application, described deviceApplied to distributed file storage system, the external interface connecting object client of the distributed file storage system is describedDevice includes:
Receiving unit 401, the data storage request sent for receiving the object client;The data storage requestData and subscriber identity information including storage;
Resolution unit 402 obtains the data according to the subscriber identity information for parsing the data storage requestCorresponding user profile is requested in storage;
Determination unit 403, for determining data model storage according to the user profile;The data model storageFor file memory module or object memory module;
Storage unit 404, for selecting corresponding store path to deposit data according to the data model storageStorage.
In a kind of possible implementation, described device further include:
Start unit, for before receiving unit receives the data storage request, starting rados to be serviced;The radosService is for providing object storage service;
When the data model storage is the object memory module, the storage unit is specifically used for selection and corresponds toStore path, using the rados service data are stored.
In a kind of possible implementation, described device further include:
Unit is modified, for modifying the corresponding configuration file of the external interface, adds and executes in the configuration fileThe memory node of the rados service.
In a kind of possible implementation, the external interface of the distributed file storage system and the object clientCarried out data transmission using s3 agreement or Swift agreement.
In a kind of possible implementation, described device further include:
Transmission unit, for sending storage result information to the object client, to show storage result to user.
It should be noted that the realization of each unit may refer to the realization of Fig. 2 the method embodiment in the present embodiment,Details are not described herein for the present embodiment.
By foregoing description, the embodiment of the present application configures two kinds of memory modules in traditional document storage system, respectivelyFor file memory module and object memory module, in specific implementation, storage system receives object client by external interfaceThe data storage request of transmission, and the data storage request is parsed, subscriber identity information is obtained, then according to user's bodyThe corresponding user profile of part information searching data storage request determines that data store mould further according to user profileFormula finally selects corresponding store path to carry out data storage according to determining data model storage, deposits to realize at oneTwo kinds of memory modules are merged in storage system, are selected different memory modules according to the demand of user, are improved the utilization of storage systemRate meets the storage of mass data.Meanwhile two kinds of memory modules are disposed in a kind of storage system, reduce equipment cost.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment emphasis is saidBright is the difference from other embodiments, and the same or similar parts in each embodiment may refer to each other.For realityFor applying system or device disclosed in example, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, phasePlace is closed referring to method part illustration.
It should be appreciated that in this application, " at least one (item) " refers to one or more, and " multiple " refer to two or twoMore than a."and/or" indicates may exist three kinds of relationships, for example, " A and/or B " for describing the incidence relation of affiliated partnerIt can indicate: only exist A, only exist B and exist simultaneously tri- kinds of situations of A and B, wherein A, B can be odd number or plural number.WordSymbol "/" typicallys represent the relationship that forward-backward correlation object is a kind of "or"." at least one of following (a) " or its similar expression, refers toAny combination in these, any combination including individual event (a) or complex item (a).At least one of for example, in a, b or c(a) can indicate: a, b, c, " a and b ", " a and c ", " b and c ", or " a and b and c ", and wherein a, b, c can be individually, can alsoTo be multiple.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to oneEntity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operationThere are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to containLid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including thoseElement, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipmentIntrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded thatThere is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processorThe combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only depositReservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technologyIn any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application.Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined hereinGeneral Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the applicationIt is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase oneThe widest scope of cause.

Claims (10)

CN201811377503.5A2018-11-192018-11-19A kind of method and device for realizing data storagePendingCN109408467A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201811377503.5ACN109408467A (en)2018-11-192018-11-19A kind of method and device for realizing data storage

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201811377503.5ACN109408467A (en)2018-11-192018-11-19A kind of method and device for realizing data storage

Publications (1)

Publication NumberPublication Date
CN109408467Atrue CN109408467A (en)2019-03-01

Family

ID=65474132

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201811377503.5APendingCN109408467A (en)2018-11-192018-11-19A kind of method and device for realizing data storage

Country Status (1)

CountryLink
CN (1)CN109408467A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111274616A (en)*2020-01-162020-06-12上海德拓信息技术股份有限公司Ceph object storage based overall uploading segmented verification implementation method
CN114079659A (en)*2020-08-132022-02-22支付宝(杭州)信息技术有限公司Server of distributed storage system, data storage method and data access system
CN114077578A (en)*2020-08-122022-02-22富泰华工业(深圳)有限公司Distributed storage method, server and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103561101A (en)*2013-11-062014-02-05中国联合网络通信集团有限公司Network file system
CN105573672A (en)*2015-12-112016-05-11上海爱数信息技术股份有限公司Virtual storage method and system based on NFS
CN108170777A (en)*2017-12-262018-06-15郑州云海信息技术有限公司A kind of distributed file system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103561101A (en)*2013-11-062014-02-05中国联合网络通信集团有限公司Network file system
CN105573672A (en)*2015-12-112016-05-11上海爱数信息技术股份有限公司Virtual storage method and system based on NFS
CN108170777A (en)*2017-12-262018-06-15郑州云海信息技术有限公司A kind of distributed file system

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
刘荣辉: "《大数据架构技术与实例分析》", 31 August 2017, 东北师范大学出版社*
散尽浮华: "Ceph分布式存储工作原理及部署介绍", 《HTTPS://WWW.CNBLOGS.COM/KEVINGRACE/P/8387999.HTML》*
文静等: "云计算环境下的分布式存储技术研究与应用", 《电信工程技术与标准化》*
杨震乾等: "面向大数据的分布式存储技术的发展与应用", 《电子技术与软件工程》*
蒋理: "《计算机网络虚拟实践操作》", 31 January 2014, 西安电子科技大学出版社*

Cited By (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN111274616A (en)*2020-01-162020-06-12上海德拓信息技术股份有限公司Ceph object storage based overall uploading segmented verification implementation method
CN111274616B (en)*2020-01-162023-06-02上海德拓信息技术股份有限公司Ceph object storage based integral uploading segmented verification realization method
CN114077578A (en)*2020-08-122022-02-22富泰华工业(深圳)有限公司Distributed storage method, server and storage medium
CN114079659A (en)*2020-08-132022-02-22支付宝(杭州)信息技术有限公司Server of distributed storage system, data storage method and data access system
CN114079659B (en)*2020-08-132025-01-10支付宝(杭州)信息技术有限公司 Distributed storage system server, distributed storage system, data storage and data access method and system

Similar Documents

PublicationPublication DateTitle
US9628438B2 (en)Consistent ring namespaces facilitating data storage and organization in network infrastructures
EP3158480B1 (en)Data query method and apparatus
US12032550B2 (en)Multi-tenant partitioning in a time-series database
CN105138571B (en)Distributed file system and method for storing massive small files
US10860604B1 (en)Scalable tracking for database udpates according to a secondary index
CN104020961A (en)Distributed data storage method, device and system
CN104679665A (en)Method and system for achieving block storage of distributed file system
US11803572B2 (en)Schema-based spatial partitioning in a time-series database
US20140123142A1 (en)System and method for providing data analysis service in cloud environment
US11263270B1 (en)Heat balancing in a distributed time-series database
CN110019048A (en)Document handling method, device, system and server based on MongoDB
CN107087031A (en) A storage resource load balancing method and device
CN109408467A (en)A kind of method and device for realizing data storage
CN109783018A (en)A kind of method and device of data storage
KR20190008228A (en) A method and system for storing graph information in a database using a B-tree
CN113806300B (en) Data storage method, system, device, equipment and storage medium
CN103049574B (en)Realize key assignments file system and the method for file dynamic copies
CN107426288A (en)A kind of resource-sharing schedule method and apparatus based on storage network
CN106155566A (en)For storing method, the Apparatus and system of data
US20250225116A1 (en)Data processing method and apparatus
CN114879907B (en) Method, device, equipment and storage medium for determining data distribution
US9703788B1 (en)Distributed metadata in a high performance computing environment
US9648103B2 (en)Non-uniform file access in a distributed file system
CN106709056A (en)Nfs mounted directory exporting method and device
US11727022B2 (en)Generating a global delta in distributed databases

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20190301

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp