CN108255412A - For the method and device of distributed document storage - Google Patents

For the method and device of distributed document storage Download PDF

Info

Publication number
CN108255412A
CN108255412A CN201611249534.3A CN201611249534A CN108255412A CN 108255412 A CN108255412 A CN 108255412A CN 201611249534 A CN201611249534 A CN 201611249534A CN 108255412 A CN108255412 A CN 108255412A
Authority
CN
China
Prior art keywords
download
virtual machine
file
request
virtual machines
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611249534.3A
Other languages
Chinese (zh)
Inventor
杨金城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201611249534.3A priority Critical patent/CN108255412A/en
Publication of CN108255412A publication Critical patent/CN108255412A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0664Virtualisation aspects at device level, e.g. emulation of a storage device or system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a kind of method and device for distributed document storage, and for including the file system of multiple virtual machine nodes, this method includes:It is obtained by any virtual machine and downloads request;If any virtual machine has corresponding to the file for downloading request, any virtual machine, which provides, downloads response;If any virtual machine to other virtual machines without corresponding to the file for downloading request, sending and downloading inquiry message;And if other described virtual machines have corresponding to the file for downloading request, the download response is provided according to one of other virtual machines described in pre-defined rule selection.Disclosed method has decoupled the dependence to distal end cloud storage, improves the availability of local system service.

Description

For the method and device of distributed document storage
Technical field
The present invention relates to data storage process field, in particular to a kind of method for distributed document storage And device.
Background technology
Virtual machine (Virtual Machine) refer to by software simulate have the function of complete hardware system, operate in Complete computer in one completely isolated environment.Virtual machine can preserve data with independently installed runs software, possess certainly Oneself independent table, will not generate real system any influence, and with can existing system and virtual image it Between the characteristics of flexibly switching.It is being frequently necessary to for the enterprise of long-distance on-line and cross program operation, virtual machine is must can not Scarce tool.By taking certain Company File service system as an example, this document service system by more than 10 virtual robot arms into.Due to every void The local disk very little (about 40GB) of plan machine, so in addition to very small part hotspot program source code is other than local disk, other Program's source code distal end cloud storage is required for download.Again since cloud storage service is unstable once in a while, lead to failed download, in this way Just directly affect file system service.There are two types of schemes in the prior art:Scheme 1:All program's source codes are all saved in text The local disk of part service system;Scheme;2:The local disk of File Serving System preserves hotspot program source code, other source codes exist It is downloaded when needing from distal end cloud storage.
As described above, the shortcomings that scheme 1 is to need very big local disk space, and local disk can there are single-point events Barrier problem, if local disk damages, the program's source code of all storages is just lost.The shortcomings that scheme 2 is strong dependence distal end cloud Storage service, when cloud storage service is unavailable, the upload download service that can cause program's source code is unavailable.
Therefore, it is necessary to a kind of new method and devices for distributed document storage.
Above- mentioned information is only used for strengthening the understanding of the background to the present invention, therefore it disclosed in the background technology part It can include not forming the information to the prior art known to persons of ordinary skill in the art.
Invention content
In view of this, the present invention provides a kind of method and device for distributed document storage, can solve symplectic cloud and deposit The dependence of storage improves the availability of system service.
Other characteristics and advantages of the present invention will be by the following detailed description apparent from or partially by the present invention Practice and acquistion.
According to an aspect of the invention, it is proposed that a kind of method for distributed document storage, multiple virtual for including The file system of machine node, this method include:
It is obtained by any virtual machine and downloads request;
If any virtual machine has corresponding to the file for downloading request, any virtual machine, which provides, downloads response;
If any virtual machine does not correspond to the file for downloading request, sent to other virtual machines and download inquiry message; And
If other virtual machines have corresponding to the file for downloading request, one of other virtual machines is selected to carry according to pre-defined rule It is responded for downloading.
In a kind of exemplary embodiment of the disclosure, further include:
For its corresponding node address of the setting of virtual machine.
In a kind of exemplary embodiment of the disclosure, if other virtual machines have corresponding to the file for downloading request, root One of other virtual machines is selected to provide according to pre-defined rule and download response, including:
If other virtual machines have corresponding to the file for downloading request, other virtual transmission return informations;
According to pre-defined rule and return information, one of other virtual machines is selected to provide and download response.
In a kind of exemplary embodiment of the disclosure, return information includes:Download weighted value.
In a kind of exemplary embodiment of the disclosure, according to pre-defined rule and return information, select other virtual machines it One provides download response, including:
Return information is obtained, generates node address list;
According to weighted value is downloaded, the node in node address list is ranked up;And
It is provided by the minimum corresponding node of download weighted value and downloads response.
In a kind of exemplary embodiment of the disclosure, provide to download by the minimum corresponding node of download weighted value and ring Should, including:
After the download weighted value of this node is increased by 1 by node, download response is provided.
In a kind of exemplary embodiment of the disclosure, further include:
Receive the timing cleaning request for coming from any virtual machine;
Timing cleaning inquiry message is initiated to other virtual machines;And
Receive returning the result for timing cleaning inquiry message.
In a kind of exemplary embodiment of the disclosure, further include:
Any virtual machine is timed cleaning according to returning the result.
In a kind of exemplary embodiment of the disclosure, file system is GIT service systems.
In a kind of exemplary embodiment of the disclosure, further include:
If other virtual machines do not correspond to the file for downloading request, file download is provided by distal end cloud storage.
According to an aspect of the invention, it is proposed that a kind of device for distributed document storage, multiple virtual for including The file system of machine node, the device include:
Download module obtains download request for passing through any virtual machine;
Judge download module, if had for any virtual machine corresponding to the file for downloading request, any virtual machine carries It is responded for downloading;
Inquiry module is downloaded, if not corresponding to the file for downloading request for any virtual machine, to other virtual machines It sends and downloads inquiry message;And
If had for other virtual machines corresponding to the file for downloading request, it is selected according to pre-defined rule for respond module One of his virtual machine, which provides, downloads response.
In a kind of exemplary embodiment of the disclosure, further include:
Cleaning modul, for receiving the timing cleaning request for coming from any virtual machine;
Cleaning inquiry module, for initiating timing cleaning inquiry message to other virtual machines;And
Receiving module, for receiving returning the result for timing cleaning inquiry message.
Method and device according to the present invention for distributed document storage can solve the dependence of symplectic cloud storage, Improve the availability of local system service.
It should be understood that above general description and following detailed description is only exemplary, this can not be limited Invention.
Description of the drawings
Its example embodiment is described in detail by referring to accompanying drawing, above and other target of the invention, feature and advantage will It becomes more fully apparent.Drawings discussed below is only some embodiments of the present invention, for the ordinary skill of this field For personnel, without creative efforts, other attached drawings are can also be obtained according to these attached drawings.
Fig. 1 is the flow chart according to a kind of method stored for distributed document shown in an exemplary embodiment.
Fig. 2 is a kind of flow chart of the method for distributed document storage shown according to another exemplary embodiment.
Fig. 3 is a kind of flow chart of the method for distributed document storage shown according to another exemplary embodiment.
Fig. 4 is a kind of frame diagram of the method for distributed document storage shown according to another exemplary embodiment.
Fig. 5 is the block diagram according to a kind of device stored for distributed document shown in an exemplary embodiment.
Fig. 6 is a kind of block diagram of the device for distributed document storage shown according to another exemplary embodiment.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms It applies, and is not understood as limited to embodiment set forth herein;On the contrary, these embodiments are provided so that the present invention will be comprehensively and complete It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical reference numeral represents in figure Same or similar part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner In example.In the following description, many details are provided to fully understand the embodiment of the present invention so as to provide.However, It will be appreciated by persons skilled in the art that technical scheme of the present invention can be put into practice without one or more in specific detail, Or other methods, constituent element, device, step etc. may be used.In other cases, side known in being not shown in detail or describe Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Attached block diagram shown in figure is only functional entity, not necessarily must be corresponding with physically separate entity. I.e., it is possible to it realizes these functional entitys using software form or is realized in one or more hardware modules or integrated circuit These functional entitys realize these functional entitys in heterogeneous networks and/or processor device and/or microcontroller device.
Attached flow chart shown in figure is merely illustrative, it is not necessary to including all contents and operation/step, It is not required to perform by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close And or partly merge, therefore the sequence actually performed is possible to be changed according to actual conditions.
It should be understood that although herein various assemblies may be described using term first, second, third, etc., these groups Part should not be limited by these terms.These terms are to distinguish a component and another component.Therefore, first group be discussed herein below Part can be described as teaching of second component without departing from disclosure concept.As used herein, term " and/or " including associated All combinations for listing any one and one or more in project.
It will be understood by those skilled in the art that attached drawing is the schematic diagram of example embodiment, module or flow in attached drawing Necessary to not necessarily implementing the present invention, therefore it cannot be used for limiting the scope of the invention.
Fig. 1 is the flow chart according to a kind of method stored for distributed document shown in an exemplary embodiment.
As shown in Figure 1, in S102, obtained by any virtual machine and download request.As described above, the present invention is suitable for The method of distributed document storage, for document storage system, document storage system includes multiple virtual machine nodes.Distributed text Part system (Distributed File System) refers to that the physical memory resources of file system management are not necessarily connected directly between On local node, but it is connected by computer network with node.During system actual operation, a certain void in system Plan machine has received download request.It may be, for example, to download the source code of certain section of program to download request;It downloads under asking also to may be, for example, Certain document is carried, the present invention is not limited.
In S104, if any virtual machine has corresponding to the file for downloading request, any virtual machine, which provides to download, to be rung It should.After virtual machine in systems has received download request, first judge whether to have cached in the virtual machine local disk pair Should be in the file for downloading request, this document also may be, for example, certain document as described above, may be, for example, the source code of certain section of program. In the present embodiment, by taking the source code request of certain section of program as an example, if current virtual machine has the source code of this section of program, the void Plan machine is asked directly in response to download, and provides download response.
In S106, if any virtual machine does not correspond to the file for downloading request, send and download to other virtual machines Inquiry message.If not corresponding to the file that download is asked as described above, being currently received on the virtual machine of download request, Into system, other virtual machines, which are sent, downloads inquiry message, can be for example, by address of node under the transmission of other virtual machines Carry inquiry message.The information such as request source can be downloaded for example, comprising the brief description for downloading file by downloading in inquiry message.Under Carrying can be with for example, comprising brief descriptions such as the relevant informations for it is expected to return in information.
In S108, if other virtual machines have corresponding to the file for downloading request, other void are selected according to pre-defined rule One of plan machine, which provides, downloads response.If in system, other virtual machines have the file corresponding to the download request, then basis It is preset to download rule, virtual machine is selected to provide download corresponding.Scheduled rule may be, for example, to be ask by returning to download at first Request is downloaded in the virtual machine processing asked, can also be for example, according to the current number of downloads of each virtual machine, and preferential selection, which is downloaded, appoints The virtual machine for being engaged in less provides download service.The present invention is not limited.
Method according to the present invention for distributed document storage passes through what is backed up between virtual machine each other as storage Method can solve the dependence of symplectic distal end cloud storage, improve the availability of local system service.
It will be clearly understood that the present disclosure describe how formation and using particular example, but the principle of the present invention is not limited to These exemplary any details.On the contrary, the introduction based on present disclosure, these principles can be applied to many other Embodiment.
In a kind of exemplary embodiment of the disclosure, further include:If other virtual machines, which do not correspond to, downloads request File, by distal end cloud storage provide file download.
In a kind of exemplary embodiment of the disclosure, further include:For virtual machine, its corresponding node address is set.May be used also For example, applied to the virtual machine in certain systems, node address is brotgher of node address, is distinguished in order to which virtual machine is done mark The title used.The present invention is not limited.
In a kind of exemplary embodiment of the disclosure, if other virtual machines have corresponding to the file for downloading request, root One of other virtual machines is selected to provide according to pre-defined rule and download response, including:If other virtual machines have corresponding to download request File, then there is the virtual of this document to send return information;According to pre-defined rule and return information, selection has the virtual of this document One of machine, which provides, downloads response.Return information can be sent corresponding to the virtual machine for downloading demand file for example, having, not to reply The virtual machine for downloading demand file does not send return information then.
In a kind of exemplary embodiment of the disclosure, return information includes:Download weighted value.It can be such as in return information It including the currently provided number of downloads of the virtual machine, is returned as weighted value is downloaded, while can also be for example, returning to the section of download Dot address information, as label information.It may be, for example, number to download weighted value, for the brotgher of node is marked to download tight situation Value, can be for example, the numerical value of number is bigger to represent more busy.The present invention is not limited.
In a kind of exemplary embodiment of the disclosure, according to pre-defined rule and return information, select other virtual machines it One provides download response, including:Return information is obtained, generates node address list;According to weighted value is downloaded, node address is arranged Node in table is ranked up;And it is provided by the minimum corresponding node of download weighted value and downloads response.Now have and correspond to The virtual machine for downloading demand file is arranged, and using node address as label, establishes node address list.As described above, lead to The download weighted value in return information is crossed, the node in node address list is ranked up, minimum by current number of downloads Virtual machine, which provides, downloads response.The present invention is not limited.
In a kind of exemplary embodiment of the disclosure, provide to download by the minimum corresponding node of download weighted value and ring Should, including:After the download weighted value of this node is increased by 1 by node, download response is provided.
Fig. 2 is a kind of flow chart of the method for distributed document storage shown according to another exemplary embodiment.
As shown in Fig. 2, in S202, the timing cleaning request for coming from any virtual machine is obtained.As described above, this hair The bright method suitable for distributed document storage, for document storage system, document storage system includes multiple virtual machine nodes. During actual operation, a certain virtual machine in system proposes timing cleaning request first when being timed cleaning.
In S204, timing cleaning inquiry message is initiated to other virtual machines.In order to ensure the availability of system service, When virtual machine carries out file clean-up, need to ensure in local system have the backup of file for clearance, so being carried out in virtual machine Before file clean-up, cleaning inquiry message is sent, is cleared up in inquiry message, it can be for example, including fileinfo for clearance.
In S206, returning the result for timing cleaning inquiry message is obtained.Receive the virtual of timing cleaning inquiry message Machine, according to the state of file in own local disk, transmission returns result to server end.
In S208, any virtual machine is timed cleaning according to returning the result.Pending timing clean-up task it is virtual Machine is according to return as a result, being timed clean-up task.If returning the result middle display, in the present system, other virtual machines In have the backup of file for clearance, then the virtual machine can clear up the file in local disk.If in systems, Without the backup of this document on other virtual machines, then the virtual machine does not clear up this part of file.
Method according to the present invention for distributed document storage, it is other virtual by inquiring in file clean-up Whether there is the mode of file backup on machine, be capable of the High Availabitity rate of safeguard file system.
In a kind of exemplary embodiment of the disclosure, file system is GIT service systems.Git be it is a it is free, increase income Distributed version control system, be mainly used for the trustship of program's source code and project data and share.
Fig. 3 is a kind of flow chart of the method for distributed document storage shown according to another exemplary embodiment; Fig. 4 is a kind of frame diagram of the method for distributed document storage shown according to another exemplary embodiment.
Fig. 3 is the Application Example of method according to the present invention, and as shown in Figures 3 and 4, a certain of Git services is virtual Program's source code is first saved in local disk (not shown) by prow, then asynchronous upload to distal end cloud storage.Git services A certain virtual machine receives request, checks whether local disk has cached the program's source code, if so, then objective directly in response to returning End is taken, flow terminates.If it is not, inquiry brotgher of node download component, is responded by brotgher of node download component.Git Service on startup, sets the brotgher of node address of each virtual machine.Etc. then younger brother's elder male cousin node to be received downloads program's source code Request, after receiving request, concurrent initiates to ask to all brotgher of node addresses, and it is desired to inquire the brotgher of node whether there is Program's source code if certain brotgher of node has the program's source code, will return and download the information such as weighted value.All feedbacks are collected into deposit In the brotgher of node address list of the program's source code, it is ranked up by weighted value is downloaded, selects the brother for downloading weighted value minimum Node address.It initiates to download request to the brotgher of node address for downloading weighted value minimum, which receives download request Afterwards, the download weighted value of this node is added 1 first, then from local disk reading program source code, responds go back to customer side.
Local disk program's source code timing Prune Policies.Since local disk space is limited, timing is needed to clear up.Cleaning When, it checks other brotghers of node whether there is the program's source code, if any one brotgher of node feedback has, removes local disk The program's source code;If all other brotgher of node all feeds back nothing, retain the program's source code of local disk, ensure that entire In brotgher of node cluster, at least there is portion in any portion source code.
It will be appreciated by those skilled in the art that realize that all or part of step of above-described embodiment is implemented as being performed by CPU Computer program.When the computer program is performed by CPU, the above-mentioned work(that the above method provided by the invention is limited is performed Energy.The program can be stored in a kind of computer readable storage medium, which can be read-only memory, magnetic Disk or CD etc..
Further, it should be noted that above-mentioned attached drawing is only the place included by method according to an exemplary embodiment of the present invention Reason schematically illustrates rather than limits purpose.It can be readily appreciated that above-mentioned processing shown in the drawings is not indicated or is limited at these The time sequencing of reason.In addition, being also easy to understand, these processing for example can be performed either synchronously or asynchronously in multiple modules.
Following is apparatus of the present invention embodiment, can be used for performing the method for the present invention embodiment.For apparatus of the present invention reality The details not disclosed in example is applied, please refers to the method for the present invention embodiment.
Fig. 5 is the block diagram according to a kind of device stored for distributed document shown in an exemplary embodiment.
Wherein download module 502, which is used to obtain by any virtual machine, downloads request.
Judge that if download module 504 has for any virtual machine corresponding to the file for downloading request, any virtual machine It provides and downloads response.
If downloading inquiry module 506 does not correspond to the file for downloading request for any virtual machine, virtual to other Machine, which is sent, downloads inquiry message.
If respond module 508 has for other virtual machines corresponding to the file for downloading request, selected according to pre-defined rule One of other virtual machines, which provide, downloads response.
Device according to the present invention for distributed document storage passes through what is backed up between virtual machine each other as storage Mode can solve the dependence of symplectic distal end cloud storage, improve the availability of local system service.
Fig. 6 is a kind of block diagram of the device for distributed document storage shown according to another exemplary embodiment.
Wherein, cleaning modul 602 comes from the timing cleaning request of any virtual machine for reception;
Cleaning inquiry module 604 is used to initiate timing cleaning inquiry message to other virtual machines;And
Receiving module 606 clears up returning the result for inquiry message for receiving timing.
It will be appreciated by those skilled in the art that above-mentioned each module can be distributed according to the description of embodiment in device, also may be used To carry out respective change uniquely different from one or more devices of the present embodiment.The module of above-described embodiment can be merged into One module, can also be further split into multiple submodule.
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein It can be realized, can also be realized in a manner that software is with reference to necessary hardware by software.Therefore, implemented according to the present invention The technical solution of example can be embodied in the form of software product, which can be stored in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions so that a computing device (can To be personal computer, server, mobile terminal or network equipment etc.) it performs according to the method for the embodiment of the present invention.
By above detailed description, those skilled in the art is it can be readily appreciated that according to embodiments of the present invention is used to divide The method and device of cloth file storage has one or more of the following advantages.
According to some embodiments, the method for distributed document storage of the invention, by making mutually between virtual machine For the method for storage backup, the dependence of symplectic distal end cloud storage can be solved, improves the availability of local system service.
According to other embodiments, the method for distributed document storage of the invention in file clean-up, passes through inquiry Whether other virtual machines on have the mode of file backup, be capable of the High Availabitity rate of safeguard file system if asking.
It is particularly shown and described exemplary embodiment of the present invention above.It should be appreciated that the present invention is not limited to Detailed construction described herein, set-up mode or implementation method;On the contrary, it is intended to cover included in appended claims Various modifications and equivalence setting in spirit and scope.
In addition, structure, ratio, size shown by this specification Figure of description etc., only coordinating specification institute Disclosure, for skilled in the art realises that with reading, being not limited to the enforceable qualifications of the disclosure, therefore Do not have technical essential meaning, the modification of any structure, the change of proportionate relationship or the adjustment of size are not influencing the disclosure Under the technique effect that can be generated and achieved purpose, it should all still fall and obtain and can cover in the technology contents disclosed in the disclosure In the range of.Meanwhile in this specification it is cited such as " on ", " first ", " second " and " one " term, be also only and be convenient for Narration understands rather than that limit the disclosure enforceable range relativeness is altered or modified, without substantive change Under technology contents, when being also considered as the enforceable scope of the present invention.

Claims (12)

1. a kind of method for distributed document storage, for including the file system of multiple virtual machine nodes, feature exists In, including:
It is obtained by any virtual machine and downloads request;
If any virtual machine has corresponding to the file for downloading request, any virtual machine, which provides to download, to be rung It should;
If any virtual machine does not have to correspond to the file for downloading request, send to download to other virtual machines and ask Ask information;And
If other described virtual machines have corresponding to it is described download request the file, according to pre-defined rule selection described in other One of virtual machine provides described download and responds.
2. the method as described in claim 1, which is characterized in that further include:
For the virtual machine, its corresponding node address is set.
3. the method as described in claim 1, which is characterized in that if other described virtual machines have downloads request corresponding to described The file, one of other described virtual machines is selected to provide described download according to pre-defined rule and responded, including:
If other described virtual machines have corresponding to the file for downloading request, other described virtual send return to letter Breath;
According to the pre-defined rule and the return information, one of other described virtual machines is selected to provide described download and are responded.
4. method as claimed in claim 3, which is characterized in that the return information includes:Download weighted value.
5. method as claimed in claim 4, which is characterized in that described according to the pre-defined rule and the return information, choosing It selects one of other described virtual machines and the download response is provided, including:
The return information is obtained, generates node address list;
According to the download weighted value, the node in the node address list is ranked up;And
Described download is provided by the minimum corresponding node of the download weighted value to respond.
6. method as claimed in claim 5, which is characterized in that described by the minimum corresponding section of the download weighted value Point provides described download and responds, including:
After the download weighted value of this node is increased by 1 by the node, described download is provided and is responded.
7. the method as described in claim 1, which is characterized in that further include:
Obtain the timing cleaning request for coming from any virtual machine;
Timing cleaning inquiry message is initiated to other described virtual machines;And
Obtain returning the result for the timing cleaning inquiry message.
8. the method for claim 7, which is characterized in that further include:
Any virtual machine is returned the result according to carries out the timing cleaning.
9. the method as described in claim 1, which is characterized in that the file system is GIT service systems.
10. the method as described in claim 1, which is characterized in that further include:
If other described virtual machines do not have to correspond to the file for downloading request, provided under file by distal end cloud storage It carries.
11. a kind of device for distributed document storage, for including the file system of multiple virtual machine nodes, feature exists In, including:
Download module obtains download request for passing through any virtual machine;
Judge download module, it is described any if had for any virtual machine corresponding to the file for downloading request Virtual machine, which provides, downloads response;
Inquiry module is downloaded, if for any virtual machine without downloading the file asked corresponding to described, to other void Plan machine, which is sent, downloads inquiry message;And
Respond module if had for other described virtual machines corresponding to the file for downloading request, is selected according to pre-defined rule It selects one of other described virtual machines and the download response is provided.
12. device as claimed in claim 11, which is characterized in that further include:
Cleaning modul, for receiving the timing cleaning request for coming from any virtual machine;
For passing through node address, timing cleaning inquiry message is initiated to other described virtual machines for cleaning inquiry module;And
Receiving module, for receiving returning the result for the timing cleaning inquiry message.
CN201611249534.3A 2016-12-29 2016-12-29 For the method and device of distributed document storage Pending CN108255412A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611249534.3A CN108255412A (en) 2016-12-29 2016-12-29 For the method and device of distributed document storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611249534.3A CN108255412A (en) 2016-12-29 2016-12-29 For the method and device of distributed document storage

Publications (1)

Publication Number Publication Date
CN108255412A true CN108255412A (en) 2018-07-06

Family

ID=62721660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611249534.3A Pending CN108255412A (en) 2016-12-29 2016-12-29 For the method and device of distributed document storage

Country Status (1)

Country Link
CN (1) CN108255412A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917454A (en) * 2010-06-09 2010-12-15 中兴通讯股份有限公司 Method and device for synchronizing EPG (Error Pattern Generator) files in IPTV (Internet Protocol Television)
CN103078944A (en) * 2013-01-08 2013-05-01 赛凡信息科技(厦门)有限公司 Distributed symmetrical file system-based data center architecture
CN104133718A (en) * 2013-04-30 2014-11-05 国际商业机器公司 Bandwidth-efficient virtual machine image delivery
US20160004450A1 (en) * 2014-07-02 2016-01-07 Hedvig, Inc. Storage system with virtual disks
CN105980991A (en) * 2014-02-17 2016-09-28 斯特拉托斯卡莱有限公司 Memory resource sharing among multiple compute nodes

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917454A (en) * 2010-06-09 2010-12-15 中兴通讯股份有限公司 Method and device for synchronizing EPG (Error Pattern Generator) files in IPTV (Internet Protocol Television)
CN103078944A (en) * 2013-01-08 2013-05-01 赛凡信息科技(厦门)有限公司 Distributed symmetrical file system-based data center architecture
CN104133718A (en) * 2013-04-30 2014-11-05 国际商业机器公司 Bandwidth-efficient virtual machine image delivery
CN105980991A (en) * 2014-02-17 2016-09-28 斯特拉托斯卡莱有限公司 Memory resource sharing among multiple compute nodes
US20160004450A1 (en) * 2014-07-02 2016-01-07 Hedvig, Inc. Storage system with virtual disks

Similar Documents

Publication Publication Date Title
CN109949111B (en) Electronic bill identification distribution method, electronic bill generation method, device and system
CN111163130B (en) Network service system and data transmission method thereof
CN107203541A (en) Page loading method and its page loading device
CN105407117A (en) Distributed data backup method, device and system
US20230216895A1 (en) Network-based media processing (nbmp) workflow management through 5g framework for live uplink streaming (flus) control
CN110912814A (en) Interface data distribution method and device
CN114924751A (en) Method and device for distributing service access request flow
CN107342929B (en) Method, device and system for sending new message notification
EP4033719A1 (en) System for providing exact communication delay protection of request response for distributed service
CN107895035A (en) A kind of display methods of the page, front-end server and internet banking system
CN105450694A (en) Redirecting the service request to destination address;
CN104320458A (en) Informatization achieving system based on Domino servers and Nginx server
US8533333B2 (en) Shared hosting using host name affinity
CN108255412A (en) For the method and device of distributed document storage
CN110619579A (en) Method and device for reporting disk at highest speed and computer readable storage medium
CN104852986A (en) Method and device for providing newly-added function
CN110995890B (en) Domain name request scheduling method and device
JP2023522785A (en) Harmony Comprehensive Proxy Service
CN112685613A (en) Resource packet query method and device and information processing system
CN105912477A (en) Directory reading method, device and system
CN113157405A (en) Method and device for retrying breakpoint of business process
CN105306508A (en) Service processing method and service processing device
CN116599965B (en) Communication method, communication device, electronic apparatus, and readable storage medium
JP2002334057A (en) Method for carrying on session at load decentralization time
CN114928604B (en) File distribution method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180706