CN110109865A - A kind of date storage method, device, equipment and readable storage medium storing program for executing - Google Patents
A kind of date storage method, device, equipment and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN110109865A CN110109865A CN201910376196.7A CN201910376196A CN110109865A CN 110109865 A CN110109865 A CN 110109865A CN 201910376196 A CN201910376196 A CN 201910376196A CN 110109865 A CN110109865 A CN 110109865A
- Authority
- CN
- China
- Prior art keywords
- file
- empty file
- empty
- chained list
- creation
- 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
Links
- 238000003860 storage Methods 0.000 title claims abstract description 77
- 238000000034 method Methods 0.000 title claims abstract description 67
- 238000013500 data storage Methods 0.000 claims abstract description 36
- 238000004590 computer program Methods 0.000 claims description 9
- 238000012423 maintenance Methods 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 20
- 230000004044 response Effects 0.000 abstract description 8
- 238000004891 communication Methods 0.000 abstract description 6
- 230000007246 mechanism Effects 0.000 abstract description 5
- 230000009286 beneficial effect Effects 0.000 abstract description 3
- 230000000977 initiatory effect Effects 0.000 abstract description 3
- 238000012545 processing Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000000047 product Substances 0.000 description 2
- 239000013589 supplement Substances 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000005034 decoration Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000003292 glue Substances 0.000 description 1
- 230000003694 hair properties Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000002045 lasting effect Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/113—Details of archiving
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of date storage methods, this method first creates certain file amount before initiating file creation date write-in application in storage client according to unalterable rules, when storage client creation write-in application is sent, file created is directly returned into user, greatly reduce the time of document creation, entirely the response process of document creation request is not needed and Metadata Service communicates, determine that the empty file pre-created is written in the data flow being directly written into after data to be written, pre-creating mechanism by file reduces communication in data storage procedure between Metadata Service, reduce I/O path therein, improve the concurrency of document creation, shorten time delay, improve service response efficiency.The present invention also provides a kind of data storage device, equipment and a kind of readable storage medium storing program for executing, have above-mentioned beneficial effect.
Description
Technical field
The present invention relates to technical field of data processing, in particular to a kind of date storage method, device, equipment and one kind can
Read storage medium.
Background technique
The efficiency requirements stored now with the increase system of interaction data amount for data are higher, deposit especially for some
The storage application scenarios that data volume is big and timeliness is more demanding, for example often there is the instantaneous high concurrent of set time document creation
Scene, such as video monitoring service scene.Video monitoring service is high to video flowing memory requirement, in order to meet the need of not frame losing
It asks, storage file creation and write-in maximum delay are also required no more than 500ms, while to average delay.
Current date storage method needs to control backstage and carries out when storage client receives document creation write request
New document creation writes data into after creating successfully.Wherein, file creation process is more due to needing the control of backstage Metadata Service
It is square to participate in interaction, it is longer for the scene required time occupancy of certain time file creation date write-in high concurrent, it will lead to front end
Customer service response is slowly even stagnated, and user experience is influenced.
Therefore, how to optimize the time occupancy that creation writes process for data storage procedure, be that those skilled in the art need
Technical problems to be solved.
Summary of the invention
The object of the present invention is to provide a kind of date storage method, this method, which can optimize creation, to be write process data is deposited
The time of storage process occupies, and reduces instantaneous Metadata Service pressure;It is a further object of the present invention to provide a kind of storages of data to fill
It sets, equipment and a kind of readable storage medium storing program for executing, there is above-mentioned beneficial effect.
In order to solve the above technical problems, the present invention provides a kind of date storage method, comprising:
Empty file is created when storage service carry;
For each empty file creation maintenance chained list, empty file chained list is obtained;
When receiving document creation write request, target data stream to be written is determined;
Empty file is pre-created according to what the empty file chained list was determined as data receiver, obtains file destination;
The file destination is called to receive and store the target data stream.
Optionally, empty file is pre-created according to what the empty file chained list was determined as data receiver, comprising:
Obtain the first empty file in the empty file chained list;
The user name specified according to user carries out title replacement to the first empty file of acquisition, and obtained file is made
For the file destination.
Optionally, be determined as according to the empty file chained list data receiver pre-create empty file after, also wrap
It includes:
The output creation successful prompt information of file.
Optionally, be determined as according to the empty file chained list data receiver pre-create empty file after, also wrap
It includes:
Create empty file identical with target number;Wherein, it has been occupied in the target number and the empty file chained list
Quantity of documents is corresponding;
The empty file of the newly created target number is added in the empty file chained list.
To achieve the above object, disclosed herein as well is a kind of data storage devices, comprising:
First empty file creating unit, for creating empty file when storage service carry;
Chained list creating unit obtains empty file chained list for safeguarding chained list for each empty file creation;
Data flow determination unit, for determining target data stream to be written when receiving document creation write request;
File destination determination unit pre-creates ineffective law, rule, etc. for be determined as data receiver according to the empty file chained list
Part obtains file destination;
File destination call unit, for calling the file destination to receive and store the target data stream.
Optionally, the file destination determination unit includes:
File acquisition subelement, for obtaining the first empty file in the empty file chained list;
Title replaces subelement, and the user name for being specified according to user carries out title to the first empty file of acquisition
Replacement, using obtained file as the file destination.
Optionally, data storage device further include: prompt unit, the prompt unit and the file destination determination unit
Output end connection, the prompt unit for export creation the successful prompt information of file.
Optionally, data storage device further include: the second empty file creating unit, the second empty file creating unit with
The output end of the file destination determination unit connects, and the second empty file creating unit includes:
Subelement is created, for creating the empty file of target number;Wherein, the target number is and the empty file chain
It is corresponding that quantity of documents has been occupied in table;
Subelement is added, for the empty file of the newly created target number to be added in the empty file chained list.
To achieve the above object, disclosed herein as well is a kind of data storage devices, comprising:
Memory, for storing computer program;
Processor, the step of above-mentioned date storage method is realized when for executing the computer program.
To achieve the above object, described computer-readable to deposit disclosed herein as well is a kind of computer readable storage medium
Computer program is stored on storage media, the computer program realizes above-mentioned date storage method when being executed by the processor
The step of.
Date storage method provided by the present invention is in storage client before initiating file creation date write-in application
Certain file amount is first created according to unalterable rules, when storage client creation write-in application is sent, directly will
File created returns to user, greatly reduces the time of document creation, entirely to the response process of document creation request
It does not need to be communicated with Metadata Service, determines that the sky pre-created is written in the data flow being directly written into after data to be written
File, pre-creating mechanism by file reduces communication in data storage procedure between Metadata Service, reduces it
In I/O path, improve the concurrency of document creation, shorten time delay, improve service response efficiency.
The present invention also provides a kind of data storage device, equipment and a kind of readable storage medium storing program for executing, have above-mentioned beneficial to effect
Fruit, details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of date storage method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural block diagram of data storage device provided in an embodiment of the present invention;
Fig. 3 is a kind of data storage device structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Core of the invention is to provide a kind of date storage method, and this method, which can optimize creation, to be write process data are deposited
The time of storage process occupies, and reduces instantaneous Metadata Service pressure;Another core of the invention is to provide a kind of data storage dress
It sets, equipment and a kind of readable storage medium storing program for executing.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Embodiment one:
Referring to FIG. 1, Fig. 1 is the flow chart of date storage method provided in this embodiment;This method mainly includes following
Step:
Step s110: empty file is created when storage service carry.
The number of the empty file of creation can be set according to practical application scene.Such as it is needed under certain application scenarios
Set time stores the data flow of 1000 files, then 1000 empty files can be created before the set time.The sky of creation
The number of file can be fixed or is not fixed, and the scene of high concurrent instantaneous for glue file quantity can be in storage service
The empty file for creating specified number when carry in fixed catalogue first, for the indefinite big quantity document creation scene of hair property
It can create quantity with nonail file, such as the creation of empty file can be carried out in any Metadata Service pressure small time,
In the present embodiment without limitation to the quantity of the empty file of creation.The quantity of empty file can be configured by configuration file.
Client directly passes through carry form access storage cluster, can have the function of this.
It creates empty file to need to complete before operational data storage high concurrent occurs as far as possible, to specific creation in the present embodiment
Time without limitation, to guarantee the optimization processing under each period under the indefinite time of storage service, can store in data
Service carry while start empty file creation work, it is of course also possible to consider other factors storage service carry its
The creation that its period carries out empty file can if Metadata Service pressure is larger while than data storage service carry
In the creation of smaller (integrally needing to call Metadata Service less) the Shi Jinhang empty file of Metadata Service pressure.Herein only with
It is introduced for above two empty file creation time, the creation time setting under other concrete application scenes does not limit herein
It is fixed, can progress empty file according to the actual situation as early as possible creation.
Step s120: maintenance chained list is created for each empty file, obtains empty file chained list.
Local client safeguard one include all empty files chained list, mainly include to be called pre- in empty file chained list
The relevant information for creating empty file also may include that all empty files that pre-create call situation.Empty file chained list is mainly used for sky
File calls, and the calling of the empty file chained list under other purposes is it is not limited here.
The creation of empty file chained list can carry out after the completion of empty file creates, and can also create empty file chained list first,
New creation empty file is added to progress empty file management in chained list again, empty file can also be created while empty file creates
Chained list safeguards the execution sequence of chained list without limitation to creation empty file and creation empty file at this.Create the sleeping of empty file
The process of brave chained list may refer to introduction in the related technology, and details are not described herein.
Step s130: when receiving document creation write request, target data stream to be written is determined.
Step s140: empty file is pre-created according to what empty file chained list was determined as data receiver, obtains file destination.
Document creation write request has new data to need to be written and determine target data to be written in newly created file
Stream, and the file destination for currently needing to carry out data write-in is determined from the empty file pre-created.The empty file pre-created is made
For the file destination for currently receiving data, can not only be pressed to avoid servicing in new file creation process Metadata Service bring
Power, while also can be reduced file creation process bring service time delay and being mentioned in distributed file system by pre-creating mechanism
The performance of high document creation, the application of waiting client file creation, the return of no time delay text created after pre-creating
Part.For that when the creation file request of high concurrent issues storage, can will have been created with moment in high concurrent document creation scene
Good empty file returns to user, improves the performance that user creates file, and can satisfy client high concurrent document creation needs
It asks, the more smooth stabilization of service operation.Such as in certain video flowing scenes, the file size of each camera write-in is fixed,
Reaching fixed size just will create new file later, so the creation file of the camera meeting on thousands of roads simultaneously.The present embodiment
What is provided pre-creates mechanism and can significantly improve data storage efficiency under the scene, improves the competitiveness of product.
It should be noted that when receiving document creation write request, target data stream to be written and really is determined
It sets the goal in execution sequence the present embodiment of file without limitation, can first determine that target data stream determines file destination again,
Can first determine that file destination determines target data stream again, or also may be performed simultaneously, can according to practical application scene into
Row setting.
The process that file destination is determined according to empty file chained list it is not limited here, can choose the ineffective law, rule, etc. arbitrarily pre-created
Part is as file destination.Wherein, it is occupied to reduce resource in file selection process and time, available empty file chain
First empty file in table;The user name specified according to user carries out title replacement to the first empty file of acquisition, by what is obtained
File is as file destination.When storing client and sending the request for creating file, first empty file in chained list is carried out
Rename operation, rename are the filename of user's creation, reduce the communication between Metadata Service, reduce IO therein
Time delay is shortened in path, promotes the performance of creation file.
Step s150: invocation target file reception simultaneously stores target data stream.
Invocation target file reception and the process for storing target data stream may refer to method for writing data in the related technology,
This will not be repeated here.
In addition, can further export wound after determining file destination in the empty file pre-created in above-mentioned steps s140
The successful prompt information of file is built, experiences sound while the prompt for executing step can be played to user or from user terminal
Answer the promotion of speed.It is of course also possible to not export prompt information, or node exports prompt information, this implementation at other times
It is not limited this in example.
Based on above-mentioned introduction, date storage method disclosed by the embodiments of the present invention is initiating document creation in storage client
Certain file amount is first created according to unalterable rules before data write-in application, is sent out in storage client creation write-in application
When coming, file created is directly returned into user, greatly reduces the time of document creation, entirely to document creation
The response process of request does not need to be communicated with Metadata Service, determines the data flow being directly written into after data to be written
The empty file pre-created is written, pre-creating mechanism by file reduces in data storage procedure between Metadata Service
Communication, reduces I/O path therein, improves the concurrency of document creation, shorten time delay, improve service response efficiency.
Embodiment two:
Based on the above embodiment, for guarantee while client constantly receives data storage request guarantee backstage hold
Continuous response speed, can according to empty file chained list be determined as data receiver pre-create empty file after, creation with
The identical empty file of target number;Wherein, to have occupied quantity of documents in target number and empty file chained list corresponding;And it will newly create
The empty file of target number be added in empty file chained list.Empty file is created herein after the reduction of empty file quantity, is kept
The empty file quantity pre-created in system avoids the effect caused by empty file lazy weight in the case where lasting mass data is to attack
The case where rate declines.
Wherein, the process for carrying out the creation of new file can carry out after each rename, that is, have invoked an ineffective law, rule, etc.
Newly one empty file of creation, the quantity that empty file in catalogue is fixed in guarantee are constant immediately after part;It can also be in the quantity of empty file
Less than the creation for carrying out high-volume empty file after certain threshold value, for example, as lazy weight 100 of empty file, starting 900
The creation work of a empty file, the request to create for next high concurrent are prepared.To reduce the pressure spike of Metadata Service
Value.The execution period of file supplement new for progress without limitation, can carry out according to actual needs in the present embodiment
Setting.Certainly, the creation process that primary new file can be only carried out while single stored services carry, i.e., without ineffective law, rule, etc.
The supplement of part, without limitation.
Embodiment three:
Referring to FIG. 2, Fig. 2 is the structural block diagram of data storage device provided in this embodiment;The device mainly includes: the
One empty file creating unit 210, chained list creating unit 220, data flow determination unit 230, file destination determination unit 240 and
File destination call unit 250.Data storage device provided in this embodiment can mutually be compareed with above-mentioned date storage method.
Wherein, the first empty file creating unit 210 is mainly used for creating empty file when storage service carry;
Chained list creating unit 220 is mainly used for creating maintenance chained list for each empty file, obtains empty file chained list;
Data flow determination unit 230 is mainly used for determining target to be written when receiving document creation write request
Data flow;
What file destination determination unit 240 was mainly used for being determined as data receiver according to empty file chained list pre-creates sky
File obtains file destination;
File destination call unit 250 is mainly used for invocation target file reception and stores target data stream.
Data storage device provided in this embodiment can optimize creation and write process the time of data storage procedure be accounted for
With reducing instantaneous Metadata Service pressure.
Optionally, file destination determination unit can specifically include:
File acquisition subelement, for obtaining the first empty file in empty file chained list;
Title replaces subelement, and the user name for being specified according to user carries out title to the first empty file of acquisition and replaces
It changes, using obtained file as file destination.
Optionally, data storage device provided in this embodiment may further include: prompt unit, prompt unit and mesh
The output end connection of document determining unit is marked, prompt unit is for exporting the creation successful prompt information of file.
Optionally, data storage device provided in this embodiment may further include: the second empty file creating unit, the
Two empty file creating units are connect with the output end of file destination determination unit, and the second empty file creating unit includes:
Subelement is created, for creating the empty file of target number;Wherein, target number is and has accounted in empty file chained list
It is corresponding with quantity of documents;
Subelement is added, for the empty file of newly created target number to be added in empty file chained list.
Example IV:
Data storage device provided by the present application is introduced below, specifically the introduction of data storage device can refer to
The step of above-mentioned date storage method, the equipment specifically include that
Memory, for storing computer program;
Processor, the step of above-mentioned date storage method is realized when for executing computer program.
Referring to FIG. 3, the structural schematic diagram of data storage device provided by the embodiments of the present application, which can
Bigger difference is generated because configuration or performance are different, may include one or more processors (central
Processing units, CPU) 322 (for example, one or more processors) and memory 332, one or more
Store the storage medium 330 (such as one or more mass memory units) of application program 342 or data 344.Wherein, it deposits
Reservoir 332 and storage medium 330 can be of short duration storage or persistent storage.The program for being stored in storage medium 330 may include
One or more modules (diagram does not mark), each module may include to the series of instructions behaviour in data processing equipment
Make.Further, central processing unit 322 can be set to communicate with storage medium 330, hold on data storage device 301
Series of instructions operation in row storage medium 330.
Data storage device 301 can also include one or more power supplys 326, one or more wired or nothings
Wired network interface 350, one or more input/output interfaces 358, and/or, one or more operating systems 341,
Such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
Step in date storage method described in above figure 1 can be realized by the structure of data storage device.
Embodiment five:
Readable storage medium storing program for executing provided by the embodiments of the present application is introduced below, readable storage medium storing program for executing described below with
Above-described date storage method can correspond to each other reference.
A kind of readable storage medium storing program for executing disclosed in the present application, is stored thereon with program, number is realized when program is executed by processor
The step of according to storage method.
The readable storage medium storing program for executing be specifically as follows USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), the various program storage generations such as random access memory (Random Access Memory, RAM), magnetic or disk
The readable storage medium storing program for executing of code.
It is apparent to those skilled in the art that for convenience and simplicity of description, the device of foregoing description,
The specific work process of equipment, storage medium and unit, can refer to corresponding processes in the foregoing method embodiment, herein no longer
It repeats.
In several embodiments provided herein, it should be understood that disclosed device, system, storage medium and
Method may be implemented in other ways.For example, apparatus embodiments described above are merely indicative, for example, single
Member division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or
Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown
The mutual coupling, direct-coupling or communication connection shown or discussed can be through some interfaces, between device or unit
Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product
To be stored in a mobile terminal.Based on this understanding, the technical solution of the application is substantially in other words to the prior art
The all or part of the part to contribute or the technical solution can be embodied in the form of software products, which deposits
It stores up in one storage medium, including some instructions are used so that a mobile terminal (can be mobile phone or tablet computer
Deng) execute each embodiment method of the application all or part of the steps.And storage medium above-mentioned includes: USB flash disk, moves firmly
Disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM),
The various media that can store program code such as magnetic or disk.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, it can be realized with the combination of electronic hardware, terminal or the two, in order to clearly demonstrate hardware and software
Interchangeability generally describes each exemplary composition and step according to function in the above description.These functions are studied carefully
Unexpectedly it is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technique people
Member can use different methods to achieve the described function each specific application, but this realization is it is not considered that super
Scope of the present application out.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Detailed Jie has been carried out to date storage method provided herein, device, equipment and readable storage medium storing program for executing above
It continues.Specific examples are used herein to illustrate the principle and implementation manner of the present application, and the explanation of above embodiments is only
It is to be used to help understand the method for this application and its core ideas.It should be pointed out that for those skilled in the art
For, under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these improve and repair
Decorations are also fallen into the protection scope of the claim of this application.
Claims (10)
1. a kind of date storage method characterized by comprising
Empty file is created when storage service carry;
For each empty file creation maintenance chained list, empty file chained list is obtained;
When receiving document creation write request, target data stream to be written is determined;
Empty file is pre-created according to what the empty file chained list was determined as data receiver, obtains file destination;
The file destination is called to receive and store the target data stream.
2. date storage method as described in claim 1, which is characterized in that be determined as data according to the empty file chained list
Receiving end pre-creates empty file, comprising:
Obtain the first empty file in the empty file chained list;
The user name specified according to user carries out title replacement to the first empty file of acquisition, using obtained file as institute
State file destination.
3. date storage method as described in claim 1, which is characterized in that be determined as number according to the empty file chained list
According to receiving end pre-create empty file after, further includes:
The output creation successful prompt information of file.
4. the date storage method stated as described in any one of claims 1 to 3, which is characterized in that according to the empty file chain
Table be determined as data receiver pre-create empty file after, further includes:
Create empty file identical with target number;Wherein, number of files is occupied in the target number and the empty file chained list
Amount corresponds to;
The empty file of the newly created target number is added in the empty file chained list.
5. a kind of data storage device characterized by comprising
First empty file creating unit, for creating empty file when storage service carry;
Chained list creating unit obtains empty file chained list for safeguarding chained list for each empty file creation;
Data flow determination unit, for determining target data stream to be written when receiving document creation write request;
File destination determination unit pre-creates empty file for be determined as data receiver according to the empty file chained list,
Obtain file destination;
File destination call unit, for calling the file destination to receive and store the target data stream.
6. data storage device as claimed in claim 5, which is characterized in that the file destination determination unit includes:
File acquisition subelement, for obtaining the first empty file in the empty file chained list;
Title replaces subelement, and the user name for being specified according to user carries out title to the first empty file of acquisition and replaces
It changes, using obtained file as the file destination.
7. data storage device as claimed in claim 5, which is characterized in that further include: prompt unit, the prompt unit with
The output end of the file destination determination unit connects, and the prompt unit is for exporting the creation successful prompt information of file.
8. such as the described in any item data storage devices of claim 5 to 7, which is characterized in that further include: the creation of the second empty file
Unit, the second empty file creating unit are connect with the output end of the file destination determination unit, second empty file
Creating unit includes:
Subelement is created, for creating the empty file of target number;Wherein, in the target number and the empty file chained list
It is corresponding to occupy quantity of documents;
Subelement is added, for the empty file of the newly created target number to be added in the empty file chained list.
9. a kind of data storage device characterized by comprising
Memory, for storing computer program;
Processor realizes the data storage side as described in Claims 1-4 any one when for executing the computer program
The step of method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the data storage as described in Claims 1-4 any one when the computer program is executed by the processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910376196.7A CN110109865A (en) | 2019-05-07 | 2019-05-07 | A kind of date storage method, device, equipment and readable storage medium storing program for executing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910376196.7A CN110109865A (en) | 2019-05-07 | 2019-05-07 | A kind of date storage method, device, equipment and readable storage medium storing program for executing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110109865A true CN110109865A (en) | 2019-08-09 |
Family
ID=67488487
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910376196.7A Pending CN110109865A (en) | 2019-05-07 | 2019-05-07 | A kind of date storage method, device, equipment and readable storage medium storing program for executing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110109865A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112367382A (en) * | 2020-10-29 | 2021-02-12 | 苏州浪潮智能科技有限公司 | File uploading method, device, equipment and storage medium |
CN114189880A (en) * | 2020-09-14 | 2022-03-15 | 大唐移动通信设备有限公司 | Method and device for generating placeholder file for base station test |
CN117785816A (en) * | 2024-01-05 | 2024-03-29 | 柏域信息科技(上海)有限公司 | Method, device, equipment and storage medium for file fragment storage |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01245343A (en) * | 1988-03-28 | 1989-09-29 | Nec Corp | File controller |
CN102272710A (en) * | 2009-01-06 | 2011-12-07 | 汤姆森特许公司 | Method and apparatus for creating files in a file system |
CN103885887A (en) * | 2012-12-21 | 2014-06-25 | 腾讯科技(北京)有限公司 | User data storage method, reading method and system |
CN106570111A (en) * | 2016-11-01 | 2017-04-19 | 浙江宇视科技有限公司 | Data storage method and storage server |
-
2019
- 2019-05-07 CN CN201910376196.7A patent/CN110109865A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01245343A (en) * | 1988-03-28 | 1989-09-29 | Nec Corp | File controller |
CN102272710A (en) * | 2009-01-06 | 2011-12-07 | 汤姆森特许公司 | Method and apparatus for creating files in a file system |
CN103885887A (en) * | 2012-12-21 | 2014-06-25 | 腾讯科技(北京)有限公司 | User data storage method, reading method and system |
CN106570111A (en) * | 2016-11-01 | 2017-04-19 | 浙江宇视科技有限公司 | Data storage method and storage server |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114189880A (en) * | 2020-09-14 | 2022-03-15 | 大唐移动通信设备有限公司 | Method and device for generating placeholder file for base station test |
CN114189880B (en) * | 2020-09-14 | 2024-03-01 | 大唐移动通信设备有限公司 | Method and device for generating occupation file for base station test |
CN112367382A (en) * | 2020-10-29 | 2021-02-12 | 苏州浪潮智能科技有限公司 | File uploading method, device, equipment and storage medium |
CN117785816A (en) * | 2024-01-05 | 2024-03-29 | 柏域信息科技(上海)有限公司 | Method, device, equipment and storage medium for file fragment storage |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110109865A (en) | A kind of date storage method, device, equipment and readable storage medium storing program for executing | |
CN110209642A (en) | Method, apparatus, server and the computer-readable medium of information processing | |
CN101799797B (en) | Dynamic allocation method of user disk quota in distributed storage system | |
CN103078933B (en) | A kind of method and apparatus determining data migration time | |
CN110502340A (en) | A kind of resource dynamic regulation method, device, equipment and storage medium | |
CN103995855B (en) | The method and apparatus of data storage | |
CN106170968B (en) | A kind of data compression storage method, device and distributed file system | |
CN103428290A (en) | Method and device for pushing data | |
CN105518641A (en) | Method, device, and system for peer-to-peer data replication and method, device, and system for master node switching | |
CN113806300B (en) | Data storage method, system, device, equipment and storage medium | |
CN110489225A (en) | A kind of service expansion method, device and equipment based on message queue | |
WO2021259246A1 (en) | Resource scheduling method and apparatus, electronic device, and computer-readable storage medium | |
CN103067479A (en) | Network disk synchronized method and system based on file coldness and hotness | |
CN110119387A (en) | A kind of file delet method, device, equipment and readable storage medium storing program for executing | |
WO2021237630A1 (en) | Multi-key-value command processing method and apparatus, and electronic device and storage medium | |
CN111159265B (en) | ETL data migration method and system | |
CN107135189A (en) | A kind of file transmitting method and physical machine | |
CN104536852B (en) | Data recovery method and device | |
CN109951532B (en) | DPDK-based automatic flow model conversion device | |
WO2010111906A1 (en) | Blade server and service scheduling method thereof | |
CN109150593B (en) | Method and device for managing resources in cloud data system | |
CN109634759A (en) | A kind of quota management method of distributed memory system, system and associated component | |
CN110445874A (en) | A kind of conversation processing method, device, equipment and storage medium | |
JP2019121333A (en) | Data dynamic migration method and data dynamic migration device | |
CN101021846A (en) | Method for storing indefinite frame length structural data stream |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190809 |
|
RJ01 | Rejection of invention patent application after publication |