CN108459829A - A kind of date storage method, device and computer storage media - Google Patents
A kind of date storage method, device and computer storage media Download PDFInfo
- Publication number
- CN108459829A CN108459829A CN201810326747.4A CN201810326747A CN108459829A CN 108459829 A CN108459829 A CN 108459829A CN 201810326747 A CN201810326747 A CN 201810326747A CN 108459829 A CN108459829 A CN 108459829A
- Authority
- CN
- China
- Prior art keywords
- storage
- resource
- data
- storage resource
- data storage
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0631—Configuration or reconfiguration of storage systems by allocating resources to storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0607—Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/067—Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of date storage method, device and computer storage media, including:The idle storage resource that conversion authorizes is that can distribute storage resource;What addition conversion obtained distributes storage resource to preset resource allocation system;According to the storage resource of distributing for being added to resource allocation system, acquisition uses voucher with that can distribute storage resource size at the storage resource of correspondence.The embodiment of the present invention reduces the extension demand to memory node when storage data increase;Improve the application efficiency of storage resource.
Description
Technical field
Present document relates to but be not limited to cloud computing technology, espespecially a kind of date storage method, device and computer storage media.
Background technology
Currently, data storage depends on the storage system of rear end in cloud computing platform, including:High in the clouds stored items
(Swift), distributed file system (Ceph), logical volume management (LVM, Logical Volume Manager) etc..
The data storage that storage system dependent on rear end carries out has the following problems:
1, safety problem;Data in cloud platform are centrally stored on single or multiple memory nodes, cannot be satisfied
To the storage service demand of security requirement higher row industry;Such as public cloud enterprise by Data Hosting in the publicly-owned of other enterprises
On Cloud Server, there is the risk being copied in data;And although private clound enters Self management pattern, but private clound will be publicly-owned
The problems such as maloperation, easily occurs for cloud, high failure rate, and easy initiation causes part or all of loss of data.
2, scaling problem;Dependent on the storage system of rear end, the total amount of data storage can not be more than bottom physical resource
Total amount then needs constantly to increase memory node with the explosive growth of data storage capacity;If in addition data backup,
Need to increase more memory nodes to realize the extension of memory space, when extension needs to add a large amount of storage resource.
3, data transmission problems;In the related technology, the data transmission in heterogeneous platform, majority is by based on Hyper text transfer
The file transfer conveyance of agreement (HTTP, HyperText Transfer Protocol);Big in progress high-frequency or data volume
When data transmission, often there is the problems such as taking, data are easy to be lost in data transmission procedure;
4, level of resources utilization problem;Currently, large-scale cloud platform generally designs realization in a manner of multiple data centers;
The storage resource of each data center is mutual indepedent, and the level of resources utilization is relatively low;And each cloud platform is mainly with itself storage system
Core reduces the carrying cost of user in a manner of storing and be multiplexed, therefore the resource between cloud platform also cannot achieve flexibly
With.
With the continuous growth of data volume, the above-mentioned storage system dependent on rear end cannot be satisfied growing data and deposit
Storage requires.
Invention content
It is the general introduction of the theme to being described in detail herein below.This general introduction is not to limit the protection model of claim
It encloses.
A kind of date storage method of offer of the embodiment of the present invention, device, computer storage media, can reduce storage data
To the extension demand of memory node when growth;Promote the application efficiency of storage resource.
An embodiment of the present invention provides a kind of date storage methods, including:
The idle storage resource that conversion authorizes is that can distribute storage resource;
What addition conversion obtained distributes storage resource to preset resource allocation system;
According to the storage resource of distributing for being added to resource allocation system, obtains and storage resource size can be distributed at corresponding
The storage resource of relationship uses voucher.
Optionally, the idle storage resource that the conversion authorizes is that can distribute storage resource to include:
In network attached storage NAS chain logical layers, by preset checking algorithm, by the idle storage resource of mandate
Be converted to the block for data storage of respective numbers.
Optionally, the acquisition with can distribute storage resource size and include using voucher at the storage resource of correspondence:
According to described piece of quantity for being added to the resource allocation system, the quantity with described piece is obtained into correspondence
Ideal money.
Optionally, the resource allocation system includes:NAS catenary systems.
Optionally, the acquisition with can distribute storage resource size into the storage resource of correspondence using after voucher, institute
Stating date storage method further includes:
When carrying out data storage processing, use voucher from the resource allocation system according to the storage resource of acquisition
Obtain the block for data storage;
In the described piece of upper storage for carrying out data of acquisition.
Optionally, described obtain includes for the block of data storage:
It is serviced by pre-set network attached storage NAS, uses voucher from institute according to the storage resource of acquisition
State the block obtained in resource allocation system for data storage.
On the other hand, the embodiment of the present invention also provides a kind of computer storage media, is deposited in the computer storage media
Computer executable instructions are contained, the computer executable instructions are for executing above-mentioned date storage method.
In another aspect, the embodiment of the present invention also provides a kind of date storage method, which is characterized in that including:
Determine the size for distributing storage resource for being added to resource allocation system;
The distribution that storage resource uses voucher is carried out according to the determining size for distributing storage resource.
Optionally, the determination is added to the distributing before the size of storage resource of resource allocation system, the data
Storage method further includes:
By pre-set management client and cloud host binding;
It, will be by described in the access of the management client of authentication after carrying out authentication to the management client
Resource allocation system.
Optionally, the resource allocation system includes:NAS catenary systems;
The storage resource of distributing includes:In network attached storage NAS chain logical layers, by preset checking algorithm,
The block for data storage obtained by the idle storage resource conversion authorized.
Optionally, after the progress storage resource is using the distribution of voucher, the date storage method further includes:
When receiving data storage request, is determined according to the size of storage data and required distribute storage resource;
It is determined using voucher according to storage resource and retrievable distributes storage resource;
When it is determining it is described it is retrievable distribute storage resource be more than it is described required when distributing storage resource, from institute
It states to obtain in NAS catenary systems and distributes storage resource for data storage;
In acquisition progress data storage in storage resource is distributed for data storage.
Optionally, described to carry out data storages for distributing in storage resource for data storage in acquisition and include:
It is data fragmentation that cutting, which needs the data stored,;
To the data fragmentation that cutting obtains, storage resource addition report heading and fragment pass are distributed according to acquisition
Join information;
According to the report heading of addition, storage resource is distributed for data storage by what data fragmentation write-in obtained.
Optionally, it is described by data fragmentation write-in obtain distribute storage resource before, the method further includes:
The data fragmentation that cutting is obtained, is encrypted according to preset block chain Encryption Algorithm.
Optionally, the distributing in storage resource after progress data storage for data storage in acquisition, institute
Stating date storage method further includes:
Storage resource can be distributed described in after deleting storage data in the resource allocation system.
Further aspect, the embodiment of the present invention also provide a kind of data storage device, which is characterized in that including:Converting unit,
Adding device and acquisition voucher unit;Wherein,
Converting unit is used for:The idle storage resource that conversion authorizes is that can distribute storage resource;
Adding device is used for:What addition conversion obtained distributes storage resource to preset resource allocation system;
Voucher unit is obtained to be used for:According to the storage resource of distributing for being added to resource allocation system, obtains and can distribute
Storage resource size uses voucher at the storage resource of correspondence.
Optionally, the converting unit is specifically used for:
In network attached storage NAS chain logical layers, by preset checking algorithm, by the idle storage resource of mandate
Be converted to the block for data storage of respective numbers.
Optionally, the acquisition voucher unit is specifically used for:
According to described piece of quantity for being added to the resource allocation system, the quantity with described piece is obtained into correspondence
Ideal money.
Optionally, the resource allocation system includes:NAS catenary systems.
Optionally, the data storage device further includes application resource unit, is used for:
When carrying out data storage processing, use voucher from the resource allocation system according to the storage resource of acquisition
Block of the application for data storage, with described piece obtained in the application upper storage for carrying out data.
Optionally, the application resource unit is specifically used for::
It is serviced by pre-set network attached storage NAS, uses voucher from institute according to the storage resource of acquisition
State block of the application for data storage in resource allocation system.
In another aspect, the embodiment of the present invention also provides a kind of data storage device, which is characterized in that including:Determination unit
And allocation unit;Wherein,
Determination unit is used for:Determine the size for distributing storage resource for being added to resource allocation system;
Allocation unit is used for:Point of the storage resource using voucher is carried out according to the determining size for distributing storage resource
Match.
Optionally, described device further includes binding unit and access unit;Wherein,
Binding unit is used for:By pre-set management client and cloud host binding;
Access unit is used for:After carrying out authentication to the management client, the management of authentication will be passed through
Client accesses the resource allocation system.
Optionally, the resource allocation system includes:NAS catenary systems;
The storage resource of distributing includes:In network attached storage NAS chain logical layers, by preset checking algorithm,
The block for data storage obtained by the idle storage resource conversion authorized.
Optionally, the data storage device further includes computing unit, obtains resource unit and storage unit;Wherein,
Computing unit is used for:When receiving data storage request, required distribute is determined according to the size of storage data
Storage resource;It is determined using voucher according to storage resource and retrievable distributes storage resource;
Resource unit is obtained to be used for:When the determining retrievable storage resource of distributing is more than described required divide
When with storage resource, is obtained from the NAS catenary systems and distribute storage resource for data storage;
Storage unit is used for:In acquisition progress data storage in storage resource is distributed for data storage.
Optionally, the storage unit is specifically used for:
It is data fragmentation that cutting, which needs the data stored,;
To the data fragmentation that cutting obtains, storage resource addition report heading and fragment pass are distributed according to acquisition
Join information;
According to the report heading of addition, storage resource is distributed for data storage by what data fragmentation write-in obtained.
Optionally, the storage unit is additionally operable to:
By data fragmentation write-in obtain distribute storage resource before, by cutting obtain the data fragmentation, according to
Preset block chain Encryption Algorithm is encrypted.
Optionally, the data storage device further includes deleting unit, is used for:
Storage resource can be distributed described in after deleting storage data in the resource allocation system.
In another aspect, the embodiment of the present invention also provides a kind of computer storage media, deposited in the computer storage media
Computer executable instructions are contained, the computer executable instructions are for executing above-mentioned date storage method.
Compared with the relevant technologies, technical scheme includes:The idle storage resource that conversion authorizes is that can distribute storage
Resource;What addition conversion obtained distributes storage resource to preset resource allocation system;According to being added to resource allocation system
Distribute storage resource, obtain and storage resource size can be distributed use voucher at the storage resource of correspondence.The present invention
Embodiment reduces the extension demand to memory node when storage data increase;Improve the application efficiency of storage resource.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by specification, rights
Specifically noted structure is realized and is obtained in claim and attached drawing.
Description of the drawings
Attached drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of date storage method of the embodiment of the present invention;
Fig. 2 is the flow chart of another embodiment of the present invention date storage method;
Fig. 3 is the structure diagram of data storage device of the embodiment of the present invention;
Fig. 4 is the structure diagram of another embodiment of the present invention data storage device;
Fig. 5 is flow chart of the present invention using sample data storage;
Fig. 6 is the structural schematic diagram that the present invention applies example system.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature mutually can arbitrarily combine.
Step shown in the flowchart of the accompanying drawings can be in the computer system of such as a group of computer-executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be with suitable different from herein
Sequence executes shown or described step.
Fig. 1 is the flow chart of date storage method of the embodiment of the present invention, as shown in Figure 1, including:
The idle storage resource that step 101, conversion authorize is that can distribute storage resource;
Optionally, the idle storage resource that conversion of the embodiment of the present invention authorizes is that can distribute storage resource to include:
In network attached storage (NAS) chain logical layer, by preset checking algorithm, by the idle storage money of mandate
Source is converted to the block for data storage of respective numbers.
It should be noted that preset checking algorithm can be existing digging mine algorithm in the related technology;The present invention is implemented
When example is implemented, user is by being added NAS chain services after the NAS chain subscription client login accounts that pre-establish;By the sky of mandate
Not busy storage resource is committed to NAS chain logical layers;In NAS chains logical layer by preset checking algorithm, the free time based on mandate deposits
It stores up resource and generates the block stored for data;
What step 102, addition conversion obtained distributes storage resource to preset resource allocation system;
Optionally, resource allocation system of the embodiment of the present invention includes:NAS catenary systems.
Step 103, according to the storage resource of distributing of resource allocation system is added to, obtain and can to distribute storage resource big
The small storage resource at correspondence uses voucher.
Optionally, the embodiment of the present invention obtain with can distribute storage resource size at correspondence storage resource use with
Card includes:
According to described piece of quantity for being added to the resource allocation system, the quantity with described piece is obtained into correspondence
Ideal money.
The above embodiment of the present invention obtains storage resource by the idle storage space of mandate with an account and uses voucher
It illustrates, when multiple accounts of different platform use the application and storage of present invention method progress storage resource
When, when can substantially reduce data growth, to the extension demand of memory node;By can distribute storage resource be added to it is default
Resource allocation system, effective application of storage resource may be implemented, promote the utilization rate of storage resource.
Optionally, it obtains and storage resource size can be distributed into the storage resource of correspondence using after voucher, the present invention
Embodiment date storage method further includes:
When carrying out data storage processing, use voucher from the resource allocation system according to the storage resource of acquisition
Block of the application for data storage;
In the described piece of upper storage for carrying out data of acquisition.
Optionally, application of the embodiment of the present invention for data storage block include:
It is serviced by pre-set network attached storage NAS, uses voucher from institute according to the storage resource of acquisition
State block of the application for data storage in resource allocation system.
Compared with the relevant technologies, technical scheme includes:The idle storage resource that conversion authorizes is that can distribute storage
Resource;What addition conversion obtained distributes storage resource to preset resource allocation system;According to being added to resource allocation system
Distribute storage resource, obtain and storage resource size can be distributed use voucher at the storage resource of correspondence.The present invention
Embodiment reduces the extension demand to memory node when storage data increase;Improve the application efficiency of storage resource.
The embodiment of the present invention also provides a kind of computer storage media, and computer is stored in the computer storage media
Executable instruction, the computer executable instructions are for executing above-mentioned date storage method.
Fig. 2 is the flow chart of another embodiment of the present invention date storage method, as shown in Fig. 2, including:
Step 201 determines the size for distributing storage resource for being added to resource allocation system;
Optionally, it determines and is added to the distributing before the size of storage resource of resource allocation system, the embodiment of the present invention
Date storage method further includes:
By pre-set management client and cloud host binding;
It, will be by described in the access of the management client of authentication after carrying out authentication to the management client
Resource allocation system.
Optionally, the embodiment of the present invention:
The resource allocation system includes:NAS catenary systems;
The storage resource of distributing includes:In network attached storage NAS chain logical layers, by preset checking algorithm,
The block for data storage obtained by the idle storage resource conversion authorized.
Step 202 carries out the distribution that storage resource uses voucher according to the determining size for distributing storage resource.
Optionally, after carrying out storage resource using the distribution of voucher, date storage method of the embodiment of the present invention further includes:
When receiving data storage request, is determined according to the size of storage data and required distribute storage resource;
It is determined using voucher according to storage resource and retrievable distributes storage resource;
When it is determining it is described it is retrievable distribute storage resource be more than it is described required when distributing storage resource, from institute
It states to obtain in NAS catenary systems and distributes storage resource for data storage;
In acquisition progress data storage in storage resource is distributed for data storage.
Optionally, the embodiment of the present invention distributes progress data storage in storage resource in acquisition for data storage
Including:
It is data fragmentation that cutting, which needs the data stored,;
To the data fragmentation that cutting obtains, storage resource addition report heading and fragment pass are distributed according to acquisition
Join information;
According to the report heading of addition, storage resource is distributed for data storage by what data fragmentation write-in obtained.
Optionally, by data fragmentation write-in obtain distribute storage resource before, present invention method further includes:
The data fragmentation that cutting is obtained, is encrypted according to preset block chain Encryption Algorithm.
Optionally, in the distributing in storage resource after progress data storage for data storage of acquisition, the present invention
Embodiment date storage method further includes:
Storage resource can be distributed described in after deleting storage data in the resource allocation system.
It should be noted that from resource allocation system delete storage data after distribute storage resource after, the present invention
Embodiment can notify each cloud platform according to the algorithm of the relevant technologies, can distribute the variation of storage resource, be deposited with realizing to distribute
Store up the real-time update of resource.
The embodiment of the present invention reduces the extension demand to memory node when storage data increase;Improve storage resource
Application efficiency.
The embodiment of the present invention also provides a kind of computer storage media, and computer is stored in the computer storage media
Executable instruction, the computer executable instructions are for executing above-mentioned date storage method.
Fig. 3 is the structure diagram of data storage device of the embodiment of the present invention, as shown in figure 3, including:Converting unit, addition
Unit and acquisition voucher unit;Wherein,
Converting unit is used for:The idle storage resource that conversion authorizes is that can distribute storage resource;
Adding device is used for:What addition conversion obtained distributes storage resource to preset resource allocation system;
Voucher unit is obtained to be used for:According to the storage resource of distributing for being added to resource allocation system, obtains and can distribute
Storage resource size uses voucher at the storage resource of correspondence.
The above embodiment of the present invention obtains storage resource by the idle storage space of mandate with an account and uses voucher
It illustrates, when multiple accounts of different platform use the application and storage of present invention method progress storage resource
When, when can substantially reduce data growth, to the extension demand of memory node;By can distribute storage resource be added to it is default
Resource allocation system, effective application of storage resource may be implemented, promote the utilization rate of storage resource.
Optionally, converting unit of the embodiment of the present invention is specifically used for:
In network attached storage NAS chain logical layers, by preset checking algorithm, by the idle storage resource of mandate
Be converted to the block for data storage of respective numbers.
Optionally, the embodiment of the present invention obtains voucher unit and is specifically used for:
According to described piece of quantity for being added to the resource allocation system, the quantity with described piece is obtained into correspondence
Ideal money.
Optionally, resource allocation system of the embodiment of the present invention includes:NAS catenary systems.
Optionally, data storage device of the embodiment of the present invention further includes application resource unit, is used for:
When carrying out data storage processing, use voucher from the resource allocation system according to the storage resource of acquisition
Block of the application for data storage, with described piece obtained in the application upper storage for carrying out data.
Optionally, application of embodiment of the present invention resource unit is specifically used for::
It is serviced by pre-set network attached storage NAS, uses voucher from institute according to the storage resource of acquisition
State block of the application for data storage in resource allocation system.
Fig. 4 is the structure diagram of another embodiment of the present invention data storage device, as shown in figure 4, including:Determination unit and
Allocation unit;Wherein,
Determination unit is used for:Determine the size for distributing storage resource for being added to resource allocation system;
Allocation unit is used for:Point of the storage resource using voucher is carried out according to the determining size for distributing storage resource
Match.
Optionally, described device further includes binding unit and access unit;Wherein,
Binding unit is used for:By pre-set management client and cloud host binding;
Access unit is used for:After carrying out authentication to the management client, the management of authentication will be passed through
Client accesses the resource allocation system.
Optionally,
The resource allocation system includes:NAS catenary systems;
The storage resource of distributing includes:In network attached storage NAS chain logical layers, by preset checking algorithm,
The block for data storage obtained by the idle storage resource conversion authorized.
Optionally, the data storage device further includes computing unit, obtains resource unit and storage unit;Wherein,
Computing unit is used for:When receiving data storage request, required distribute is determined according to the size of storage data
Storage resource;It is determined using voucher according to storage resource and retrievable distributes storage resource;
Resource unit is obtained to be used for:When the determining retrievable storage resource of distributing is more than described required divide
When with storage resource, is obtained from the NAS catenary systems and distribute storage resource for data storage;
Storage unit is used for:In acquisition progress data storage in storage resource is distributed for data storage.
Optionally, the storage unit is specifically used for:
It is data fragmentation that cutting, which needs the data stored,;
To the data fragmentation that cutting obtains, storage resource addition report heading and fragment pass are distributed according to acquisition
Join information;
According to the report heading of addition, storage resource is distributed for data storage by what data fragmentation write-in obtained.
Optionally, the storage unit is additionally operable to:
By data fragmentation write-in obtain distribute storage resource before, by cutting obtain the data fragmentation, according to
Preset block chain Encryption Algorithm is encrypted.
Optionally, the data storage device further includes deleting unit, is used for:
Storage resource can be distributed described in after deleting storage data in the resource allocation system.
The embodiment of the present invention also provides a kind of computer storage media, and computer is stored in the computer storage media
Executable instruction, the computer executable instructions are for executing above-mentioned date storage method.
Present invention method is carried out to understand detailed description below by way of using example, is only used for using example old
The present invention is stated, is not intended to limit the scope of protection of the present invention.
Using example
The embodiment of the present invention is illustrated from user side and management server side individually below;
User side:
This application sample application is in two or more cloud platforms, to implementing each cloud platform of the embodiment of the present invention, cloud
User on platform can obtain the application of storage resource in the following manner:
First, user carries out Account Logon by pre-set NAS chains subscription client, after completing Account Logon,
Realize the exemplary subsequent processing of this application;Here, the account verification information that logon account uses is usually set to user into line number
According to the key information of storage operation.
After user's logon account, the available free storage resource in account is determined;
The idle storage resource authorized is determined from determining available free storage resource;
Optionally, this application example can determine the available free storage in account according to preset stock assessment algorithm
Space;External command is received, the idle storage resource of the mandate is selected from determining available free memory space;It needs
Bright, preset stock assessment algorithm can be that existing assessment algorithm, the assessment algorithm can be set in advance in the related technology
It sets in NAS chain subscription clients;In addition, external command is deposited to account for available free for the idle storage resource of analysis and regulation mandate
The percentage in space is stored up, most high percentage can be 100%;
The idle storage resource that conversion authorizes is that can distribute storage resource;
Optionally, the idle storage resource that the conversion of this application example authorizes is that can distribute storage resource to include:
In NAS chain logical layers, by preset checking algorithm, the idle storage resource of account authorization is converted into respective counts
The block for data storage of amount;Block is a kind of exemplary alternative embodiment for distributing storage resource of this application, the size of block
Analysis can be carried out by those skilled in the art to determine;Preset checking algorithm can be that existing digging mine is calculated in the related technology
Method;When the embodiment of the present invention is implemented, user is taken by the way that NAS chains are added after the NAS chain subscription client login accounts that pre-establish
Business;The idle storage resource of mandate is committed to NAS chain logical layers;In NAS chains logical layer by preset checking algorithm, it is based on
The idle storage resource of mandate generates the block for data storage;
What addition conversion obtained distributes storage resource to preset resource allocation system;
According to the storage resource of distributing for being added to resource allocation system, obtains and storage resource size can be distributed at corresponding
The storage resource of relationship uses voucher.The idle storage resource provided with account determines the resource of user's contribution, according to user
The resource of contribution is that the corresponding storage resource of user configuration uses voucher;In the presence of it can distribute storage resource in a manner of block,
Storage resource includes using voucher:The voucher of how many pieces of progress data storages can be used.
Optionally, by taking the block of resource allocation system when can distribute storage resource and be addition as an example, the embodiment of the present invention obtains
Include using voucher at the storage resource of correspondence with storage resource size can be distributed:
According to described piece of the quantity that conversion obtains, obtains and stored described in the conduct with described piece of quantity at correspondence
Resource uses the ideal money of voucher.Here, ideal money is the optional mode of the embodiment of the present invention, and the embodiment of the present invention is also
Storage resource can be defined using voucher with other measurement indexs;Such as integral.
The resource allocation system includes:NAS catenary systems.Here, NAS catenary systems can be well known system in the related technology
System.
Optionally, present invention method further includes:
When carrying out data storage, voucher and storage are used according to the storage resource of acquisition from the resource allocation system
The size of data obtains the block for data storage;
On the block of acquisition, data storage is carried out.
Optionally, it can be serviced by pre-set network attached storage (NAS), be based on depositing from resource allocation system
Size of the resource using voucher and the data of storage is stored up, the block for data storage is obtained.
It should be noted that when the storage resource in account can not obtain sufficient amount of piece using voucher, Yong Huke
To do following processing:1, it abandons carrying out data storage on block;2, it by authorizing more idle storage resources, obtains more
Storage resource use voucher;3, more storage resources are obtained by other means uses voucher.
In addition, data storage procedure of the embodiment of the present invention is that data fragmentation is written to the process of one or more blocks,
In storing process, after completing preceding piece of data write-in, the block of storage data is constantly provided in a manner of additional.
Optionally, user of the embodiment of the present invention can also delete the data of storage, be updated after logon account
Processing;When user is when deleting the data of storage, when releasing block resource, the embodiment of the present invention can also be by the block of release again
Add value resource allocation system, and distribute corresponding storage resource according to the quantity of block for user and use voucher.
Management server side
This application example can be by pre-set NAS chains management client and cloud host binding, and passes through cloud platform reality
It pair can now distribute the application of storage resource;Corresponding NAS chains management client account can be arranged in different cloud platforms, in its platform
Under account carry out data storage when, for user obtain can distribute storage resource;It is the processing procedure of data storage, packet below
It includes:
After NAS chain management clients are by authentication, NAS catenary systems are accessed;
When NAS chain management clients receive the data storage request of NAS chain subscription clients, NAS chain management clients
By cloud host to NAS catenary system transmission datas;
Storage resource can be distributed needed for size calculating of the NAS chains management client according to storage data;
NAS chains management client according to NAS subscription clients, the storage resource of account using voucher determine it is retrievable can
Distribute storage resource;When retrievable storage resource of distributing when distributing storage resource, can divide more than required needed for acquisition
With storage resource;
Progress data storage in storage resource is distributed in acquisition;
Can distribute storage resource as the block in block chain, storage resource is using voucher for for ideal money, it is assumed that uses
Family carries out data storage and needs the first numerical value block;And the virtual goods in user account for second value block can be obtained
Coin, if second value is more than the first numerical value, user can be to obtain the ideal money that the first numerical value block needs, and displacement obtains
Obtain the first numerical value block;By the block of the first numerical value of acquisition, the storage of data is realized.
It should be noted that if the storage resource in user account is not enough to obtain sufficient amount of piece using voucher
When, NAS chain management clients will be unable to obtain the block of enough user data storages for NAS chain subscription clients, and data will be unable to
Realize storage.
When carrying out data storage, NAS chains management clients will be added to the storage resource of distributing of resource allocation system
Information is distributed to one or more cloud platforms;Specifically, resource allocation system can will be added to by NAS link networks network layers
The information for distributing storage resource be distributed to one or more cloud platforms;The embodiment of the present invention, which is worked as, can distribute storage resource
When being stored by user data, the information for distributing storage resource applied in resource allocation system is distributed to one or one
The above cloud platform.Here, the cloud platform of distribution is to implement the cloud platform of the embodiment of the present invention.
Fig. 5 is flow chart of the present invention using sample data storage, as shown in figure 3, the data storage carried out on NAS chains
Processing include:
Step 501, NAS chain management clients receive the data for needing to store;
It is data fragmentation that step 502, cutting, which need the data stored,;
Optionally, cutting needs the data that store to include for data fragmentation:
NAS chain management clients will need to send to default in the data stored using preset first algorithm (contract algorithm)
Centroid, to carry out fragment cutting to the data that store of needs by Centroid;
After step 503, cutting obtain data fragmentation, adds report heading for the data fragmentation that cutting obtains and be associated with fragment
Information;The embodiment of the present invention can be associated with letter with fragment by Centroid to the data fragmentation addition report heading that cutting obtains
Breath;
The data fragmentation for adding report heading is sent to NSA network layers by step 504, NSA chains link layer;
Different data fragmentations is encrypted the embodiment of the present invention by step 505, NSA link networks network layers by block chain Encryption Algorithm
It is encrypted by block chain, provides the data service of safety and reliability to the user.
Step 506, NSA link networks network layers are distributed encrypted data fragmentation to NAS chains according to the report heading received and are deposited
Reservoir, NAS chains accumulation layer store encrypted data fragmentation to corresponding block.
Fig. 6 is the structural schematic diagram that the present invention applies example system, as shown in fig. 6, the user from each cloud platform is logical
After crossing NAS chain subscription clients progress Account Logon, the idle storage resource of mandate is converted in block, NAS linkworks are increased to
The accumulation layer of system;NAS chains management client is to log in the corresponding ideal money of account distribution of NAS chain subscription clients;NAS chains
When subscription client stores data, block for storing data is obtained by NAS chain management clients, when carrying out data storage,
Block is used for data storage in a manner of additional;When logging in the account progress data storage of NAS chain subscription clients, consumption distribution
To the ideal money in account, the block of consumption is above sent to cloud platform, by the communication between cloud platform, realizes available piece
It timely updates.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program
Related hardware (such as processor) is completed, and described program can be stored in computer readable storage medium, as read-only memory,
Disk or CD etc..Optionally, all or part of step of above-described embodiment can also be come using one or more integrated circuits
It realizes.Correspondingly, the form realization of hardware may be used in each module/unit in above-described embodiment, such as passes through integrated electricity
Its corresponding function is realized on road, can also be realized in the form of software function module, such as is stored in by processor execution
Program/instruction in memory realizes its corresponding function.The present invention is not limited to the hardware and softwares of any particular form
In conjunction with.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use
Embodiment is not limited to the present invention.Technical staff in any fields of the present invention is taken off not departing from the present invention
Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (28)
1. a kind of date storage method, which is characterized in that including:
The idle storage resource that conversion authorizes is that can distribute storage resource;
What addition conversion obtained distributes storage resource to preset resource allocation system;
According to the storage resource of distributing for being added to resource allocation system, obtains and storage resource size can be distributed into correspondence
Storage resource use voucher.
2. date storage method according to claim 1, which is characterized in that it is described conversion authorize idle storage resource be
Storage resource, which can be distributed, includes:
In network attached storage NAS chain logical layers, by preset checking algorithm, by the idle storage resource conversion of mandate
For the block for data storage of respective numbers.
3. date storage method according to claim 2, which is characterized in that described to obtain and storage resource size be distributed
Include using voucher at the storage resource of correspondence:
According to described piece of quantity for being added to the resource allocation system, the void at correspondence with described piece of quantity is obtained
Quasi- currency.
4. according to claims 1 to 3 any one of them date storage method, which is characterized in that the resource allocation system packet
It includes:NAS catenary systems.
5. date storage method according to claim 2 or 3, which is characterized in that described to obtain and storage resource be distributed
At the storage resource of correspondence using after voucher, the date storage method further includes size:
When carrying out data storage processing, applied from the resource allocation system using voucher according to the storage resource of acquisition
Block for data storage;
In the described piece of upper storage for carrying out data of acquisition.
6. date storage method according to claim 5, which is characterized in that block packet of the application for data storage
It includes:
It is serviced by pre-set network attached storage NAS, uses voucher from the money according to the storage resource of acquisition
Block of the application for data storage in the distribution system of source.
7. a kind of date storage method, which is characterized in that including:
Determine the size for distributing storage resource for being added to resource allocation system;
The distribution that storage resource uses voucher is carried out according to the determining size for distributing storage resource.
8. date storage method according to claim 7, which is characterized in that the determination is added to resource allocation system
It can distribute before the size of storage resource, the date storage method further includes:
By pre-set management client and cloud host binding;
After carrying out authentication to the management client, the resource will be accessed by the management client of authentication
Distribution system.
9. date storage method according to claim 7, which is characterized in that
The resource allocation system includes:NAS catenary systems;
The storage resource of distributing includes:In network attached storage NAS chain logical layers, by preset checking algorithm, by awarding
The block for data storage that the idle storage resource conversion of power obtains.
10. date storage method according to claim 8 or claim 9, which is characterized in that the progress storage resource uses voucher
Distribution after, the date storage method further includes:
When receiving data storage request, is determined according to the size of storage data and required distribute storage resource;
It is determined using voucher according to storage resource and retrievable distributes storage resource;
When it is determining it is described it is retrievable distribute storage resource be more than it is described required when distributing storage resource, from described
It is obtained in NAS catenary systems and distributes storage resource for data storage;
In acquisition progress data storage in storage resource is distributed for data storage.
11. date storage method according to claim 10, which is characterized in that described to be used for what data stored in acquisition
Progress data storage in storage resource, which can be distributed, includes:
It is data fragmentation that cutting, which needs the data stored,;
To the data fragmentation that cutting obtains, letter is associated with fragment according to the storage resource addition report heading that distributes of acquisition
Breath;
According to the report heading of addition, storage resource is distributed for data storage by what data fragmentation write-in obtained.
12. date storage method according to claim 11, which is characterized in that it is described by data fragmentation write-in obtain can
It distributes before storage resource, the method further includes:
The data fragmentation that cutting is obtained, is encrypted according to preset block chain Encryption Algorithm.
13. date storage method according to claim 10, which is characterized in that described to be used for what data stored in acquisition
It can distribute in storage resource after carrying out data storage, the date storage method further includes:
Storage resource can be distributed described in after deleting storage data in the resource allocation system.
14. a kind of data storage device, which is characterized in that including:Converting unit, adding device and acquisition voucher unit;Wherein,
Converting unit is used for:The idle storage resource that conversion authorizes is that can distribute storage resource;
Adding device is used for:What addition conversion obtained distributes storage resource to preset resource allocation system;
Voucher unit is obtained to be used for:According to the storage resource of distributing for being added to resource allocation system, obtains and storage can be distributed
Resource size uses voucher at the storage resource of correspondence.
15. data storage device according to claim 14, which is characterized in that the converting unit is specifically used for:
In network attached storage NAS chain logical layers, by preset checking algorithm, by the idle storage resource conversion of mandate
For the block for data storage of respective numbers.
16. data storage device according to claim 15, which is characterized in that the acquisition voucher unit is specifically used for:
According to described piece of quantity for being added to the resource allocation system, the void at correspondence with described piece of quantity is obtained
Quasi- currency.
17. according to claim 14~16 any one of them data storage device, which is characterized in that the resource allocation system
Including:NAS catenary systems.
18. data storage device according to claim 15 or 16, which is characterized in that the data storage device further includes
Apply for resource unit, is used for:
When carrying out data storage processing, applied from the resource allocation system using voucher according to the storage resource of acquisition
For the block of data storage, with described piece obtained in the application upper storage for carrying out data.
19. data storage device according to claim 18, which is characterized in that the application resource unit is specifically used for::
It is serviced by pre-set network attached storage NAS, uses voucher from the money according to the storage resource of acquisition
Block of the application for data storage in the distribution system of source.
20. a kind of data storage device, which is characterized in that including:Determination unit and allocation unit;Wherein,
Determination unit is used for:Determine the size for distributing storage resource for being added to resource allocation system;
Allocation unit is used for:The distribution that storage resource uses voucher is carried out according to the determining size for distributing storage resource.
21. data storage device according to claim 20, which is characterized in that described device further includes binding unit and connects
Enter unit;Wherein,
Binding unit is used for:By pre-set management client and cloud host binding;
Access unit is used for:After carrying out authentication to the management client, the managing customer of authentication will be passed through
It terminates into the resource allocation system.
22. data storage device according to claim 21, which is characterized in that
The resource allocation system includes:NAS catenary systems;
The storage resource of distributing includes:In network attached storage NAS chain logical layers, by preset checking algorithm, by awarding
The block for data storage that the idle storage resource conversion of power obtains.
23. the data storage device according to claim 21 or 22, which is characterized in that the data storage device further includes
Computing unit obtains resource unit and storage unit;Wherein,
Computing unit is used for:When receiving data storage request, is determined according to the size of storage data and required distribute storage
Resource;It is determined using voucher according to storage resource and retrievable distributes storage resource;
Resource unit is obtained to be used for:When the determining retrievable storage resource of distributing is deposited more than required the distributing
When storing up resource, is obtained from the NAS catenary systems and distribute storage resource for data storage;
Storage unit is used for:In acquisition progress data storage in storage resource is distributed for data storage.
24. data storage device according to claim 23, which is characterized in that the storage unit is specifically used for:
It is data fragmentation that cutting, which needs the data stored,;
To the data fragmentation that cutting obtains, letter is associated with fragment according to the storage resource addition report heading that distributes of acquisition
Breath;
According to the report heading of addition, storage resource is distributed for data storage by what data fragmentation write-in obtained.
25. data storage device according to claim 24, which is characterized in that the storage unit is additionally operable to:
By data fragmentation write-in obtain distribute storage resource before, the data fragmentation that cutting is obtained, according to default
Block chain Encryption Algorithm be encrypted.
26. data storage device according to claim 23, which is characterized in that the data storage device further includes deleting
Unit is used for:
Storage resource can be distributed described in after deleting storage data in the resource allocation system.
27. a kind of computer storage media, computer executable instructions are stored in the computer storage media, feature exists
In the computer executable instructions require the date storage method described in any one of 1~6 for perform claim.
28. a kind of computer storage media, computer executable instructions are stored in the computer storage media, feature exists
In the computer executable instructions require the date storage method described in any one of 7~13 for perform claim.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810326747.4A CN108459829B (en) | 2018-04-12 | 2018-04-12 | Data storage method and device and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810326747.4A CN108459829B (en) | 2018-04-12 | 2018-04-12 | Data storage method and device and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108459829A true CN108459829A (en) | 2018-08-28 |
CN108459829B CN108459829B (en) | 2021-11-12 |
Family
ID=63234698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810326747.4A Active CN108459829B (en) | 2018-04-12 | 2018-04-12 | Data storage method and device and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108459829B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109981586A (en) * | 2019-02-27 | 2019-07-05 | 北京柏链基石科技有限公司 | A kind of vertex ticks method and device |
CN110554616A (en) * | 2019-09-24 | 2019-12-10 | 北京艾摩瑞策科技有限公司 | Intelligent home data chaining method and system of Internet of things on block chain |
CN110958211A (en) * | 2018-09-27 | 2020-04-03 | 北京云雾链网络科技有限公司 | Data processing system and method based on block chain |
CN112667123A (en) * | 2020-12-15 | 2021-04-16 | 歌尔光学科技有限公司 | Health detection project customization method and device, wearable device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104737132A (en) * | 2012-09-12 | 2015-06-24 | 萨勒斯福斯通讯有限公司 | Auction-based resource sharing for message queues in an on-demand services environment |
CN105677478A (en) * | 2015-12-30 | 2016-06-15 | 深圳市阿拉互联网金融服务有限公司 | Method and apparatus for resources management |
CN106576114A (en) * | 2014-08-08 | 2017-04-19 | 甲骨文国际公司 | Policy based resource management and allocation system |
CN107688492A (en) * | 2016-08-05 | 2018-02-13 | 阿里巴巴集团控股有限公司 | Control method, device and the cluster resource management system of resource |
-
2018
- 2018-04-12 CN CN201810326747.4A patent/CN108459829B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104737132A (en) * | 2012-09-12 | 2015-06-24 | 萨勒斯福斯通讯有限公司 | Auction-based resource sharing for message queues in an on-demand services environment |
CN106576114A (en) * | 2014-08-08 | 2017-04-19 | 甲骨文国际公司 | Policy based resource management and allocation system |
CN105677478A (en) * | 2015-12-30 | 2016-06-15 | 深圳市阿拉互联网金融服务有限公司 | Method and apparatus for resources management |
CN107688492A (en) * | 2016-08-05 | 2018-02-13 | 阿里巴巴集团控股有限公司 | Control method, device and the cluster resource management system of resource |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110958211A (en) * | 2018-09-27 | 2020-04-03 | 北京云雾链网络科技有限公司 | Data processing system and method based on block chain |
CN109981586A (en) * | 2019-02-27 | 2019-07-05 | 北京柏链基石科技有限公司 | A kind of vertex ticks method and device |
CN109981586B (en) * | 2019-02-27 | 2021-09-07 | 北京柏链基石科技有限公司 | Node marking method and device |
CN110554616A (en) * | 2019-09-24 | 2019-12-10 | 北京艾摩瑞策科技有限公司 | Intelligent home data chaining method and system of Internet of things on block chain |
CN110554616B (en) * | 2019-09-24 | 2021-04-27 | 北京瑞策科技有限公司 | Intelligent home data chaining method and system of Internet of things on block chain |
CN112667123A (en) * | 2020-12-15 | 2021-04-16 | 歌尔光学科技有限公司 | Health detection project customization method and device, wearable device and storage medium |
CN112667123B (en) * | 2020-12-15 | 2023-01-20 | 歌尔科技有限公司 | Health detection project customization method and device, wearable device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108459829B (en) | 2021-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108459829A (en) | A kind of date storage method, device and computer storage media | |
CN109033405B (en) | Method and apparatus for maintaining blockchain, server, and computer-readable storage medium | |
US20200076574A1 (en) | Systems and methods of blockchain platform for rule-based de-centralized roles and control | |
CN107995120B (en) | Construct the method and multi-tiling catenary system of multi-tiling chain | |
CN105074702B (en) | The Database Systems of single tenant and multi-tenant environment are provided | |
CN104301404B (en) | A kind of method and device of the adjustment operation system resource based on virtual machine | |
Kaur et al. | Scalability in blockchain: Challenges and solutions | |
CN105247529B (en) | The synchronous voucher hash between directory service | |
CN109829718B (en) | Block chain multi-level framework based on storage application scene and operation method thereof | |
CN100375040C (en) | Storage management bridges | |
CN108776929A (en) | Bill processing method, system based on block chain database and readable storage medium storing program for executing | |
Jia et al. | ElasticChain: Support very large blockchain by reducing data redundancy | |
CN106559392A (en) | A kind of file sharing method, device and system | |
CN102170440A (en) | Method suitable for safely migrating data between storage clouds | |
CN110531924A (en) | For extending the method and apparatus, storage medium and system of block chain memory capacity | |
CN106102054A (en) | A kind of method and communication system that safe unit is carried out safety management | |
CN109493051B (en) | Main chain and parallel multi-subchain system architecture capable of dynamically allocating and migrating accounts | |
CN106993049A (en) | A kind of General Aviation enterprise operation total management system based on cloud computing | |
CN106713391A (en) | Session information sharing method and sharing system | |
CN106716968A (en) | Account management method, device and account management system | |
CN110289999A (en) | A kind of data processing method, system and device | |
CN107634989A (en) | A kind of cloud wallet construction method and server | |
CN108337208A (en) | Data guard method, alternative based on cloud storage and cloud storage system | |
CN114022285A (en) | Cross-enterprise cloud computing resource metering method and system based on alliance block chain | |
CN116258609B (en) | Electric power system transaction cooperation method, device and storage medium |
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 |