CN108076078A - A kind of cloud host creation method, device and cloud service system - Google Patents

A kind of cloud host creation method, device and cloud service system Download PDF

Info

Publication number
CN108076078A
CN108076078A CN201610983593.7A CN201610983593A CN108076078A CN 108076078 A CN108076078 A CN 108076078A CN 201610983593 A CN201610983593 A CN 201610983593A CN 108076078 A CN108076078 A CN 108076078A
Authority
CN
China
Prior art keywords
target
node
image file
cache node
cache
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
CN201610983593.7A
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 Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201610983593.7A priority Critical patent/CN108076078A/en
Publication of CN108076078A publication Critical patent/CN108076078A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Abstract

The embodiment of the invention discloses a kind of cloud host creation method, device and cloud service systems.This method is applied to the target computing nodes in cloud service system, including:The establishment received for target cloud host instructs;Judge the local target image file whether preserved and created needed for target cloud host;If not preserving, target cache node is determined from cache node;The first request for obtaining target image file is sent to target cache node;Receive target information of the target cache node according to the first request feedback;Judge whether target information is target image file;If it is, according to target mirror as document creation target cloud host;If it has not, the second request for obtaining target image file is sent to mirror nodes;Receive target image file of the mirror nodes according to the second request feedback;According to target mirror as document creation target cloud host.The embodiment of the present invention can reduce the time that pulls of image file, shorten the creation time of cloud host.

Description

A kind of cloud host creation method, device and cloud service system
Technical field
The present invention relates to technical field of virtualization, more particularly to a kind of cloud host creation method, device and cloud service system.
Background technology
In cloud computing technology, cloud host be simulated by virtualization technology on a physical machine it is multiple similar The part of unique host, they share the hardware resource of a physical machine, wherein, physical machine is alternatively referred to as host.With The popularization and commercialization of virtualization technology, more and more users need to create cloud host on host to improve host Utilization rate.
For example, in OpenStack (cloud computing management platform) framework, when creating a cloud host on a host, Firstly the need of the system disk image file for obtaining the cloud host, after above system disk mirroring file is obtained, host just can be with Cloud host is created according to the image file.
Specifically, when obtaining above system disk mirroring file, if preserving the corresponding mirror image text of cloud host in host Part is then the system disk image file of the cloud host directly by the image file preserved in the host copy;If the host The corresponding image file of cloud host is not preserved in machine, then needs to draw by the Glance servers in OpenStack frameworks Take above system disk mirroring file.Wherein, Glance servers are used to provide the mirroring service of OpenStack, for registering, stepping on Land and retrieval virtual machine image.
Under normal conditions, cloud host can be successfully created using aforesaid way, but ought concurrently create high-volume cloud host, And on host during the corresponding system disk image file of cloudless host, host accesses a large amount of Glance servers and pulls Corresponding image file, the pressure for causing Glance servers is larger, image file to pull the time longer so that high-volume cloud It is uncontrollable that the creation time of host extends even creation time.
The content of the invention
The embodiment of the present invention is designed to provide a kind of cloud host creation method, device and cloud service system, to realize The high concurrent of image file is downloaded, and reduces the time that pulls of image file, shortens the creation time of cloud host.Specific technical solution It is as follows:
In order to achieve the above objectives, the embodiment of the invention discloses a kind of cloud host creation method, applied to cloud service system In target computing nodes, wherein, the cloud service system includes:Calculate node, provide data buffer service cache node, The mirror nodes of cloud mirrored host computer service are provided, the described method includes:
The establishment received for target cloud host instructs;
Judge locally whether preserve target image file, wherein, the target image file is the establishment target cloud Image file needed for host;
If not preserving, target cache node is determined from the cache node;
The first request for obtaining the target image file is sent to the target cache node;
Receive target information of the target cache node according to the described first request feedback;
Judge whether the target information is the target image file;
If it is, according to the target mirror as described in document creation target cloud host;
If it has not, the second request for obtaining the target image file is sent to the mirror nodes;Receive the mirror image The target image file that node is fed back according to the described second request;According to the target mirror as described in document creation target cloud Host.
Optionally, the cache node includes:Master cache node and the master cache node are corresponding from cache node, institute It states identical with the image file of the master cache nodal cache from the image file for caching nodal cache;
Described the step of target cache node is determined from the cache node, including:
According to default calculate node and the incidence relation of cache node, target cache section is determined from the cache node Point.
Optionally, the incidence relation of the default calculate node and cache node, generates in the following way:
According to the quantity N of cache node, the sequence number of each cache node is determined, wherein, serial number [0, the N-1] section Integer, the sequence number of any two cache node differs;
Calculate the target cryptographic Hash H of the identification information of each calculate node;
The corresponding target Modulus of access M of each calculate node is calculated according to following formula:
M=mod (H, N);
For each calculate node, the sequence number cache node identical with the target Modulus of access of the calculate node is determined, establish The calculate node and incidence relation between definite cache node.
In order to achieve the above objectives, the embodiment of the invention also discloses a kind of cloud host creating device, applied to cloud service system Target computing nodes in system, wherein, the cloud service system includes:Calculate node, the caching section that data buffer service is provided Point, the mirror nodes for providing cloud mirrored host computer service, described device include:
First receiving module, the establishment for receiving for target cloud host instruct;
First judgment module, for judging locally whether preserve target image file, wherein, the target image file To create the image file needed for the target cloud host;
Determining module, for first judgment module judge it is local do not preserve the target image file when, from Target cache node is determined in the cache node;
Sending module, for sending the first request for obtaining the target image file to the target cache node;
Second receiving module, for receiving target information of the target cache node according to the described first request feedback;
Second judgment module, for judging whether the target information is the target image file;
First creation module, for judging that the target information is the target mirror picture text in second judgment module During part, according to the target mirror as described in document creation target cloud host;
Second creation module, for judging that the target information is not the target mirror picture in second judgment module During file, the second request for obtaining the target image file is sent to the mirror nodes;Receive the mirror nodes according to The target image file of the second request feedback;According to the target mirror as described in document creation target cloud host.
Optionally, the cache node includes:Master cache node and the master cache node are corresponding from cache node, institute It states identical with the image file of the master cache nodal cache from the image file for caching nodal cache;
The determining module, is used for:
According to default calculate node and the incidence relation of cache node, target cache section is determined from the cache node Point.
Optionally, the incidence relation of the default calculate node and cache node is:
It generates in the following way:
According to the quantity N of cache node, the sequence number of each cache node is determined, wherein, serial number [0, the N-1] section Integer, the sequence number of any two cache node differs;
Calculate the target cryptographic Hash H of the identification information of each calculate node;
The corresponding target Modulus of access M of each calculate node is calculated according to following formula:
M=mod (H, N);
For each calculate node, the sequence number cache node identical with the target Modulus of access of the calculate node is determined, establish The calculate node and incidence relation between definite cache node.
In order to achieve the above objectives, the embodiment of the invention also discloses a kind of cloud service system, the system comprises:Calculate section Point, the cache node that data buffer service is provided, the mirror nodes that cloud mirrored host computer service is provided, wherein,
The calculate node, is used for:The establishment received for target cloud host instructs;Judge locally whether preserve target Image file, wherein, the target image file is the image file needed for the establishment target cloud host;If not preserving, from Target cache node is determined in the cache node;It is sent to the target cache node and obtains the of the target image file One request;
The cache node, is used for:Receive the acquisition target image file that the calculate node is sent first please It asks;According to the described first request, to the calculate node feedback target information;
The calculate node, is additionally operable to:The target cache node is received according to the target of the described first request feedback to be believed Breath;Judge whether the target information is the target image file;If it is, according to the target mirror as described in document creation Target cloud host;If it has not, the second request for obtaining the target image file is sent to the mirror nodes;
The mirror nodes, are used for:Receive the acquisition target image file that the calculate node is sent second please It asks;According to the described second request, the target image file is fed back to the calculate node;
The calculate node, is additionally operable to:Receive the target mirror of the mirror nodes according to the described second request feedback As file;According to the target mirror as described in document creation target cloud host.
Optionally, the cache node includes:Master cache node and the master cache node are corresponding from cache node, institute It states identical with the image file of the master cache nodal cache from the image file for caching nodal cache;
The calculate node, is specifically used for:According to default calculate node and the incidence relation of cache node, delay from described It deposits and target cache node is determined in node.
Optionally, the calculate node, is specifically used for:According to the quantity N of cache node, the sequence of each cache node is determined Number, wherein, the integer in serial number [0, the N-1] section, the sequence number of any two cache node differs;Calculate the calculating The target cryptographic Hash H of the identification information of node;The corresponding target Modulus of access M of the calculate node is calculated according to following formula:M= Mod (H, N);It determines the sequence number cache node identical with the target Modulus of access of the calculate node, it is true with institute to establish the calculate node Determine the incidence relation between cache node.
Optionally, the mirror nodes, are additionally operable to:The target image file is fed back to the cache node;
The cache node, is additionally operable to:The target image file of the mirror nodes feedback is received, and described in caching Target image file.
Optionally, the cache node, is specifically used for:Judge whether the data volume of local cache reaches predetermined threshold value, such as Fruit is no, caches the target image file, if so, determining the local image file to be deleted, the mirror to be deleted described in deletion As file, the target image file is cached.
Optionally, the cache node includes:Master cache node and the master cache node are corresponding from cache node;
The mirror nodes, are specifically used for:To target image file described in the master cache node feeding back;
The master cache node, is used for:The target image file of the mirror nodes feedback is received, and described in caching Target image file, then to described from target image file described in caching node feeding back;
It is described from cache node, be used for:The target image file of the master cache node feeding back is received, and caches the mesh Mark image file.
Optionally, the system also includes:For providing the memory node of data storage service;
The mirror nodes, are additionally operable to:The image file that user uploads is received, and using object storage technology, by described in The image file that user uploads is stored to the memory node;
The memory node, is used for:Store the image file that the user uploads.
As seen from the above, in scheme provided in an embodiment of the present invention, calculate node is being received for target cloud host After creating instruction, first determine whether locally whether be cached with corresponding target image file, if it is not, being asked to cache node The target image file, just should to mirror nodes request in the case where cache node does not cache the target image file yet Target image file.
As it can be seen that using scheme provided in an embodiment of the present invention, the access pressure of mirror nodes can be reduced, realizes mirror image text The high concurrent of part is downloaded, and reduces the time that pulls of image file, shortens the creation time of cloud host.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of cloud host creation method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of a specific embodiment provided in an embodiment of the present invention;
Fig. 3 is a kind of structure diagram of cloud host creating device provided in an embodiment of the present invention;
Fig. 4 is the first structure diagram of the main service system of cloud provided in an embodiment of the present invention;
Fig. 5 is second of structure diagram of the main service system of cloud provided in an embodiment of the present invention;
Fig. 6 is the third structure diagram of the main service system of cloud provided in an embodiment of the present invention;
Fig. 7 is the 4th kind of structure diagram of the main service system of cloud provided in an embodiment of the present invention;
Fig. 8 is the 5th kind of structure diagram of the main service system of cloud provided in an embodiment of the present invention;
Fig. 9 is the 6th kind of structure diagram of the main service system of cloud provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment belongs to the scope of protection of the invention.
First to involved in present specification to technical terms simply introduced.
Redis caching be one it is high performance can based on memory also can persistence log type, key-value storage system System, it supports the value types of storage to include string (character string), list (chained list), set (set) and zset (ordered sets Close), for guaranteed efficiency, data are usually all to cache in memory, while can also the data in memory be stored in local It can load and be used again in disk, when restarting.On this basis, Redis caching technologies can also be realized Master-slave (principal and subordinate) is synchronous, i.e. a master (host node) can possess multiple slave (from node), and one Slave can possess multiple slave again, and the data in master are synchronized in the corresponding slave of master, then by each Data are synchronized in the corresponding slave of the slave by slave.
Glance is the mirroring service component of OpenStack, provides the discovery, registration, acquirement service of virtual machine image, The API (application programming interfaces) that Glance is provided can inquire about the metadata of virtual machine image, obtain mirror image.By Glance, Virtual machine image can be stored in a variety of storages, such as file storage or object storage.
To solve prior art problem, an embodiment of the present invention provides a kind of cloud host creation method, device and cloud services System.A kind of cloud host creation method provided first below the embodiment of the present invention is described in detail.
It should be noted that the cloud host creation method that the embodiment of the present invention is provided can be applied in cloud service system Either objective calculate node, wherein, which can include:Calculate node, the caching that data buffer service is provided Node, the mirror nodes that cloud mirrored host computer service is provided.
Wherein, which can be cloud service system or other types based on Openstack frames Cloud service system, the cache node for providing data buffer service can be the cache node based on Redis caching technologies, also may be used To be other kinds of cache node, the embodiment of the present invention does not limit this.
Fig. 1 is the first flow diagram of cloud host creation method provided in an embodiment of the present invention, and this method can wrap It includes:
S101, the establishment received for target cloud host instruct.
Wherein, at least need to carry the identification information of target cloud host in establishment instruction, it certainly, in the instruction can be with Other information is carried, such as:Create identification information of image file etc. needed for target cloud host, the embodiment of the present invention to this not into Row limits.
S102 judges locally whether preserve target image file, wherein, target image file is establishment target cloud host Required image file;If not preserving, S103 is performed.
For example, target image file can be the system disk image file of target cloud host or other kinds of Image file, it is not limited in the embodiment of the present invention.
It should be understood that more cloud hosts can be created in a host, then, if the target computing nodes are The target cloud host was created, then target computing nodes have locally preserved the target image file.Or the target meter The target cloud host was not created before operator node, but target image file is mirrored node and has been pre-reserved to the target meter Operator node, then target computing nodes are local equally also preserves the target image file.
Therefore, when receiving the establishment instruction for target cloud host, can first judge locally whether preserve the mesh The corresponding target image file of cloud host is marked, if it is, can directly be created according to the target image file being locally stored Target cloud host does not have to thus obtain target image file from mirror nodes, accelerates the speed for obtaining target image file Degree thereby reduces the access pressure of mirror nodes, shortens the creation time of cloud host.
Wherein, the detailed process of cloud host is created according to image file as the prior art, this will not be repeated here.
S103 determines target cache node from cache node.
The different corresponding image files of cloud host is cached in cache node due to providing data buffer service, because This, when target computing nodes locally do not preserve target image file, can obtain from the cache node in cloud service system The target image file.
It should be understood that can set a cache node in cloud service system, all calculate nodes can be to this Cache node obtains required image file.But it can so cause the reading pressure of this cache node excessive.Cause This, can set multiple cache nodes in cloud service system, to mitigate the reading pressure of each cache node.
It should be understood that when including multiple cache nodes in cloud service system, one of cache node can be set It is set to master cache node, and it is corresponding from cache node that other cache nodes are arranged to master cache node, and from caching The image file of nodal cache is identical with the image file of master cache nodal cache, that is to say, that delays in all cache nodes The image file deposited is identical.
In practical applications, can be realized by the data synchronization mechanism of Redis caching technologies from caching nodal cache Image file it is identical with the image file of master cache nodal cache.Specifically, the digital-synchro of Redis caching technologies is made as The prior art, this will not be repeated here.
In this case, since the image file cached in all cache nodes is identical, then, target calculates Node can obtain target image file from any one cache node.This mode can further improve cloud service system The performance of middle calculate node parallel downloading image file, and the ability of image file parallel downloading can be with from cache node The increase of quantity and it is linearly increasing.
Delay for example, target computing nodes can randomly choose a cache node in all cache nodes as target Deposit node.But this mode may result in and be saved simultaneously to same caching in some time point, more calculate node Point request image file, the reading pressure for causing the cache node are larger.
Therefore, for the reading pressure of balanced each cache node, in a preferred embodiment, from cache node In determine target cache node the step of, can include:
According to default calculate node and the incidence relation of cache node, target cache node is determined from cache node.
It should be understood that each calculate node and a cache node are established incidence relation, then a cache node is only There is incidence relation with the calculate node of fixed number, each cache node only needs to provide mirror to the calculate node of fixed number As the reading service of file, would not also generate a cache node needs at the same moment to more calculate node offer The phenomenon that service, therefore the reading pressure of each cache node can be mitigated.
Wherein, the incidence relation of above-mentioned default calculate node and cache node, can generate in the following way:
According to the quantity N of cache node, the sequence number of each cache node is determined, wherein, serial number [0, the N-1] section Integer, the sequence number of any two cache node differs;
Calculate the target cryptographic Hash H of the identification information of each calculate node;
The corresponding target Modulus of access M of each calculate node is calculated according to following formula:
M=mod (H, N);
For each calculate node, the sequence number cache node identical with the target Modulus of access of the calculate node is determined, establish The calculate node and incidence relation between definite cache node.
Wherein, the identification information of each calculate node can be IP address (the Internet Protocol of calculate node Address, Internet protocol address), MAC Address (MAC Address, physical address), etc., can also be that others can The information of the unique mark calculate node is all rational, and the embodiment of the present invention is to this without limiting.
Calculating the target cryptographic Hash of the identification information of each calculate node can utilize default hash algorithm to realize, In, the input value of hash algorithm can be pure digi-tal or include the character string of number, letter and symbol, and Hash is calculated The output of method is then a positive integer.It is the prior art due to calculating cryptographic Hash using hash algorithm, herein without repeating.
It is well known by those skilled in the art that mod (a, b) is MOD functions, which is used to carry out modulo operation, wherein, A is dividend, and b is divisor.When a, b are positive integer, the result of modulo operation is the remainder of a divided by b.
It should be understood that for the expression formula of above-mentioned calculating target Modulus of access M, it is just whole for any one after N is determined Number H performs modulo operation according to above-mentioned expression formula, and obtained target Modulus of access is necessarily a certain integer in [0, N-1] section Value.
As known from the above, the integer in serial number [0, N-1] section of each cache node, and any two cache node Sequence number differs, and target Modulus of access is similarly a certain integer in [0, N-1] section;So for each calculate node, After corresponding target Modulus of access determines, the cache node of the serial number target Modulus of access is certainly existed, then at this time should Cache node establishes incidence relation with the calculate node.
Illustratively, in cloud service system the quantity of cache node for 10, the sequence number of master cache node is determined as 0, Other are determined as 1~9 successively from the sequence number of cache node, and performing hash algorithm to the IP address of each calculate node is corresponded to Target cryptographic Hash H, target cryptographic Hash H is positive integer value, and the quantity N based on target cryptographic Hash H and cache node can count Calculate the corresponding target Modulus of access of each calculate node.
For example, it is respectively 54,100 that the cryptographic Hash H that hash algorithm obtains is performed to the IP address of calculate node A, B, then will The quantity 10 of 54,100 pairs of cache nodes of cryptographic Hash according to above-mentioned expression formula perform the obtained Modulus of access of modulo operation be respectively 4, 0, then the slave cache node of calculate node A and serial number 4 are established into incidence relation, calculate node B and the master cache section of serial number 0 Point establishes incidence relation.
It is, of course, also possible to establish the incidence relation between calculate node and cache node according to other methods, the present invention is real Example is applied to this without limiting.
In addition, it is to be noted that in the present embodiment, the sequence number of cache node be for determine cache node from it is different The correspondence of target Modulus of access, the present embodiment can not also limit cache node with the method for determination of unlimited sequencing number Specific sequence number, but have to specify the correspondence of each cache node and target Modulus of access.
Such as:Existing 8 cache nodes, target Modulus of access are necessarily the integer in [0,7] section, determine each cache node Sequence number be respectively 7,12,52,9,18,35,29 and 77, while establish correspondence:Cache node 7,12,52,9,18,35, 29 and 77 points of corresponding target Modulus of access 0,1,2,3,4,5,6 and 7.So for each calculate node, when the calculating is calculated During the corresponding target Modulus of access of node, the pass between calculate node cache node corresponding with the target Modulus of access can be established Connection relation, it is assumed that the target Modulus of access is 6, then establishes associating between the calculate node and the cache node of serial number 29 System.
For another example, existing 5 cache nodes, target Modulus of access are necessarily the integer in [0,4] section, mark each cache node Respectively cache node a, b, c, d and e, while establish correspondence:Labeled as the corresponding mesh of cache node point of a, b, c, d and e Mark Modulus of access 0,1,2,3 and 4.So for each calculate node, when the corresponding target Modulus of access of the calculate node is calculated When, the incidence relation between calculate node cache node corresponding with the target Modulus of access can be established, it is assumed that target modulus It is worth for 3, then establishes the incidence relation between the cache node of the calculate node and serial number d.
It should be noted that the mode that each calculate node only establishes incidence relation with a cache node is relatively simple, It can achieve the purpose that the reading pressure of balanced each cache node.However, in another realization method, it can also be by one Calculate node establishes incidence relation with multiple cache nodes, in this way, when a cache node breaks down, which can To obtain image file from other cache nodes for establishing incidence relation.
S104 sends the first request for obtaining target image file to target cache node.
Wherein, at least need to carry the identification information of target image file in first request, certainly, may be used also in the request To carry other information, it is not limited in the embodiment of the present invention.
S105 receives target information of the target cache node according to the first request feedback.
It should be understood that the identification information of target image file is carried in the first request, therefore target cache node can With the identification information in the first request, judge whether itself is cached with target image file.
When being cached with target image file in target cache node, target cache node feeding back is to target computing nodes Target information can be target mirror as file in itself;When uncached target image file in target cache node, target cache Node feeding back can be to the target information of target computing nodes:The message of the uncached target image file of target cache node.
S106 judges whether target information is target image file;If it is, S107 is performed, if it has not, performing S108.
It, first can be with it should be understood that after target computing nodes receive the target information of target cache node feeding back Judge whether target information is image file, if target information is not image file, can directly judge target information not It is target image file.
Further, if target information is image file, can continue to judge that the identification information in target information is The no identification information with target image file matches, if it does not match, can be determined that target information is not target mirror picture text Part, if it does, then can be determined that target information is target image file.
Further, since image file is certain types of file, file format can be:ISO, BIN, IMG, GHO etc., It therefore, can be by judging whether target information is certain types of file, to judge whether target information is image file.
S107, according to target mirror as document creation target cloud host.
S108 sends the second request for obtaining target image file to mirror nodes;Receiving mirror nodes please according to second It negates the target image file of feedback;According to target mirror as document creation target cloud host.
Wherein, at least need to carry the identification information of target image file in second request, certainly, may be used also in the request To carry other information, it is not limited in the embodiment of the present invention.
It should be understood that working as target cache node feeding back target image file, then target computing nodes can be according to mesh Index glass is as document creation target cloud host, if the non-feedback target image file of target cache node, target computing nodes are also It needs to mirror nodes request target image file.
It should be noted that in practical application, mirror nodes in itself can be with memory image file, can not also memory image File and the storage location information for being intended only as data-base recording image file.
When mirror nodes not memory image file, mirror nodes can be to target computing nodes feedback target image file Storage location, target image file is pulled from storage location by target computing nodes, alternatively, by mirror nodes by target mirror All it is rational, the embodiment of the present invention does not limit this as file is pulled at storage location to target computing nodes, etc. It is fixed.
As seen from the above, in scheme provided in this embodiment, calculate node is receiving the establishment for target cloud host After instruction, first determine whether locally whether be cached with corresponding target image file, if it is not, asking the mesh to cache node Image file is marked, in the case where cache node does not cache the target image file yet, just asks the target to mirror nodes Image file.As it can be seen that using scheme provided in this embodiment, the access pressure of mirror nodes can be reduced, realizes image file High concurrent download, reduce time that pulls of image file, shorten the creation time of cloud host.
A kind of cloud host creation method provided below with a specific embodiment the embodiment of the present invention illustrates.
The structure diagram of cloud service system in a specific embodiment as shown in Figure 2, wherein, Redis nodes are Based on the cache node of Redis caching technologies, it is divided into a Redis host node and multiple Redis from node, Glance servers To provide the mirror nodes of cloud mirrored host computer service, Glance servers not memory image file, only record each image file Storage location information, memory node be used for memory image file.
Also, the incidence relation of each calculate node and Redis nodes is pre-established, such as:Calculate node and serial number 0 The association of Redis host nodes, 2 and 3 Redis with serial number 1 of calculate node associates from node.Wherein, incidence relation is root Hash algorithm is performed according to the IP address to each calculate node and obtains obtained cryptographic Hash to the quantity modulus of Redis nodes The Modulus of access generation arrived.
Illustratively, if calculate node 2 has received the instruction for creating cloud host, then, calculate node 2 first determines whether It is local whether to preserve the target image file created needed for the cloud host, if so, then directly according to the target locally preserved Image file creates cloud host;Otherwise, it is literary to the Redis with 2 associated serial number 1 of calculate node from node request target mirror image Part, if the Redis has a target image file from nodal cache, calculate node can be according to the Redis from node feeding back Target mirror as document creation cloud host, if the Redis is also needed to from the uncached target image file of node to Glance Server request target image file, Glance servers according to the storage location of target image file by target image file from Corresponding memory node pulls calculate node 2.
As seen from the above description, calculate node first determines whether this after receiving for the establishment instruction of target cloud host Whether ground is cached with corresponding target image file, if it is not, asking the target image file to cache node, is caching In the case that node does not cache the target image file yet, just the target image file is asked to mirror nodes.As it can be seen that using This specific embodiment can reduce the access pressure of mirror nodes, realize that the high concurrent of image file is downloaded, reduce image file The creation time for pulling the time, shortening cloud host.
Corresponding with above-mentioned cloud host creation method, the embodiment of the present invention additionally provides a kind of cloud host creating device.
The device can be applied to the target computing nodes in cloud service system, wherein, which can include: Calculate node, the cache node that data buffer service is provided, the mirror nodes that cloud mirrored host computer service is provided.
Corresponding with embodiment of the method shown in FIG. 1, Fig. 3 is the of cloud host creating device provided in an embodiment of the present invention A kind of structure diagram, the device can include:
First receiving module 301, the establishment for receiving for target cloud host instruct;
First judgment module 302, for judging locally whether preserve the target image file, wherein, the target Image file is the image file needed for the establishment target cloud host;
Determining module 303, for judging locally not preserving the target image file in first judgment module 302 When, target cache node is determined from the cache node;
Sending module 304, for sending the first request for obtaining the target image file to the target cache node;
Second receiving module 305 is believed for receiving the target cache node according to the target of the described first request feedback Breath;
Second judgment module 306, for judging whether the target information is the target image file;
First creation module 307, for judging that the target information is the target in second judgment module 306 During image file, according to the target mirror as described in document creation target cloud host;
Second creation module 308, for judging that the target information is not the mesh in second judgment module 306 When marking image file, the second request for obtaining the target image file is sent to the mirror nodes;Receive the mirror image section The target image file that point is fed back according to the described second request;According to the target mirror as described in document creation target cloud master Machine.
In practical applications, the cache node can include:Master cache node and the master cache node it is corresponding from Cache node, the image file from caching nodal cache are identical with the image file of the master cache nodal cache;
The determining module 303, can be used for:
According to default calculate node and the incidence relation of cache node, target cache section is determined from the cache node Point.
In practical applications, the incidence relation of the default calculate node and cache node can be:
It generates in the following way:
According to the quantity N of cache node, the sequence number of each cache node is determined, wherein, serial number [0, the N-1] section Integer, the sequence number of any two cache node differs;
Calculate the target cryptographic Hash H of the identification information of each calculate node;
The corresponding target Modulus of access M of each calculate node is calculated according to following formula:
M=mod (H, N);
For each calculate node, the sequence number cache node identical with the target Modulus of access of the calculate node is determined, establish The calculate node and incidence relation between definite cache node.
As seen from the above, in scheme provided in this embodiment, calculate node is receiving the establishment for target cloud host After instruction, first determine whether locally whether be cached with corresponding target image file, if it is not, asking the mesh to cache node Image file is marked, in the case where cache node does not cache the target image file yet, just asks the target to mirror nodes Image file.As it can be seen that using scheme provided in this embodiment, the access pressure of mirror nodes can be reduced, realizes image file High concurrent download, reduce time that pulls of image file, shorten the creation time of cloud host.
Corresponding with above-mentioned cloud host creation method, device, the embodiment of the present invention additionally provides a kind of cloud service system.
Fig. 4 is a kind of the first structure diagram of cloud service system provided in an embodiment of the present invention, which can wrap It includes:Calculate node 401, the cache node 402 that data buffer service is provided, the mirror nodes 403 that cloud mirrored host computer service is provided, Wherein,
The calculate node 401, can be used for:The establishment received for target cloud host instructs;Local whether protect judged There is the target image file, wherein, the target image file is the image file needed for the establishment target cloud host; If not preserving, target cache node is determined from the cache node 402;It is sent to the target cache node and obtains the mesh Mark the first request of image file;
The cache node 402, can be used for:Receive the acquisition target mirror picture text that the calculate node 401 is sent First request of part;According to the described first request, to the 401 feedback target information of calculate node;
The calculate node 401, can be also used for:The target cache node is received according to the described first request feedback Target information;Judge whether the target information is the target image file;If it is, it is created according to the target image file Build the target cloud host;If it has not, the second request for obtaining the target image file is sent to the mirror nodes 403;
The mirror nodes 403, can be used for:Receive the acquisition target mirror picture text that the calculate node 401 is sent Second request of part;According to the described second request, the target image file is fed back to the calculate node 401;
The calculate node 401, can be also used for:The mirror nodes 403 are received according to the described second request feedback The target image file;According to the target mirror as described in document creation target cloud host.
Second of structure diagram of cloud service system provided in an embodiment of the present invention as shown in Figure 5, real shown in Fig. 4 On the basis of applying example,
The cache node 402 can include:The master cache node 4021 and master cache node 4021 is corresponding postpones Deposit node 4022, the image file from the image file that cache node 4022 caches and the master cache node 4021 caching It is identical;
The calculate node 401, specifically can be used for:According to default calculate node and the incidence relation of cache node, Target cache node is determined from the cache node 402.
In a kind of realization method of the present invention, the calculate node 401 specifically can be used for:According to cache node 402 Quantity N, determine the sequence number of each cache node 402, wherein, the integer in serial number [0, the N-1] section, any two is delayed The sequence number for depositing node 402 differs;Calculate the target cryptographic Hash H of the identification information of the calculate node 401;According to following expression Formula calculates 401 corresponding target Modulus of access M of the calculate node:M=mod (H, N);Determine the mesh of sequence number and the calculate node 401 Mark the identical cache node 402 of Modulus of access, establish the calculate node 401 and incidence relation between definite cache node 402.
As seen from the above, in scheme provided in this embodiment, calculate node is receiving the establishment for target cloud host After instruction, first determine whether locally whether be cached with corresponding target image file, if it is not, asking the mesh to cache node Image file is marked, in the case where cache node does not cache the target image file yet, just asks the target to mirror nodes Image file.As it can be seen that using scheme provided in this embodiment, the access pressure of mirror nodes can be reduced, realizes image file High concurrent download, reduce time that pulls of image file, shorten the creation time of cloud host.
The third structure diagram of cloud service system provided in an embodiment of the present invention as shown in Figure 6, real shown in Fig. 4 On the basis of applying example,
The mirror nodes 403, can be also used for:The target image file is fed back to the cache node 402;
The cache node 402, can be also used for:The target image file that the mirror nodes 403 are fed back is received, And cache the target image file.
It should be understood that cache node 402 can be used for caching image file, mirror nodes 403 can be used for storing mirror As the storage location information of file or memory image file.Mirror nodes 403 can be in calculate node 401 to cache node 402 Before sending the request for obtaining image file, the image file is fed back to cache node 402, in order to which calculate node 401 can be with Image file is obtained from cache node 401;It can also be sent in calculate node 401 to mirror nodes 403 and obtain image file After request, the image file is fed back to cache node 402, in order to which calculate node 401 needs in next time to obtain mirror image text It can be obtained during part at cache node 402.
It is understood that the cache resources that cache node 402 is capable of providing are limited, in order to not influence cache node 402 normal operation, the data volume cached in cache node 402 cannot be excessive.Therefore, cache node can be pre-set 402 can buffer data size maximum.
In this case, the cache node 402, specifically can be used for:Judge whether the data volume of local cache reaches To predetermined threshold value, if not, caching the target image file, if so, determining the local image file to be deleted, institute is deleted The image file to be deleted is stated, caches the target image file.
Specifically, since the probability that the earliest image file of the cache-time in cache node 402 is obtained again is opposite For it is smaller, therefore the earliest image file of cache-time can be determined as the image file to be deleted;
Can also be according to the access frequency of the image file cached, the image file of access frequency minimum is determined as will The image file of deletion;
Can also be according to the significance level of the image file cached, the minimum image file of significance level is determined as will The image file of deletion.
Certainly, the application is simply illustrated exemplified by above-mentioned, and in practical application, can also be determined according to other principles will The image file of deletion, the application are defined not to this.
It, can also if the data volume cached in cache node 402 has reached predetermined threshold value in another realization method Without the processing operation for caching image file.
4th kind of structure diagram of cloud service system provided in an embodiment of the present invention as shown in Figure 7, real shown in Fig. 6 On the basis of applying example, the cache node 402 can include:Master cache node 4021 and the master cache node 4021 are corresponding From cache node 4022;
The mirror nodes 402, specifically can be used for:The target mirror picture text is fed back to the master cache node 4021 Part;
The master cache node 4021, can be used for:Receive the target mirror picture text that the mirror nodes 402 are fed back Part, and the target image file is cached, then to described the target image file is fed back from cache node 4022;
It is described from cache node 4022, can be used for:The target image file that the master cache node 4021 is fed back is received, And cache the target image file.
It should be understood that master cache node 4021 by the image file that mirror nodes are fed back feed back to it is corresponding from caching save Point 4022, can realize that master cache node 4021 is synchronous with from the data in cache node 4022, i.e. in master cache node 4021 The image file of caching is identical with the image file cached from cache node 4022.
As long as in this way, be cached with target image file in cache node 402, then calculate node is from any one cache node 402 can obtain the target image file, and it is concurrent that this mode can further improve calculate node 401 in cloud service system Download the performance of image file.
Specifically, the method for 4021 caching of target image file of master cache node is referred to above-mentioned embodiment illustrated in fig. 6 Associated description, do not repeat here.
Illustratively, in specific embodiment shown in Fig. 2, mirror nodes are Glance servers, and cache node is Redis nodes, including a Redis host node and multiple Redis from node, Redis host nodes can be by the number of own cache According to each Redis is synchronized to from node, the master-slave synchronisation of Redis nodes is realized.Wherein, Glance servers are used to store mirror As the storage location information of file, mirror image management (image-management) module can be set in Glance servers, For being pulled image file into Redis host nodes from corresponding memory node.
In this specific embodiment, image file is cached using Redis caching technologies, and utilizes Redis principals and subordinates Synchronization mechanism ensure that the uniformity of data on different Redis nodes, by the way of multiple Redis cache nodes so that mirror As the ability that file cocurrent is downloaded can be linearly increasing from the increase of number of nodes with Redis.
5th kind of structure diagram of cloud service system provided in an embodiment of the present invention as shown in Figure 8, real shown in Fig. 4 On the basis of applying example, which can also include:For providing the memory node 404 of data storage service;
The mirror nodes 403, can be also used for:The image file that user uploads is received, and utilizes object storage technology, The image file that user uploads is stored to the memory node 404;
The memory node 404, can be used for:Store the image file that the user uploads.
It should be understood that, it is necessary in advance that this is new when user needs creating new cloud host in calculate node The corresponding image file of cloud host upload in the cloud service system, wherein, which can To be interpreted as:User-defined image file.
It should be noted that object storage technology is a kind of Network Storage Structure, core be by data path (data read or Write) it is separated with control access (metadata), and Object-based storage (Object-based Storage Dexice, OSD storage system) is built, each object storage device has certain intelligence, can manage data distribution thereon automatically.It closes The prior art is may refer in specific introduce of object storage technology, this will not be repeated here.
From the description of above example, mirror nodes 403 can not preserve image file and only preserve image file Storage location information, therefore, mirror nodes can utilize object storage technology, and the image file storage that user is uploaded is to depositing It stores up in node 404, records and preserve the storage location information of the image file.
In order to avoid memory node 404 breaks down and causes the image file loss of user's upload or unavailable, mirror image The image file that user uploads can also be saved in a calculate node 401 by node.It specifically, can be based on all calculating The data volume of the data preserved in node 401 preserves mirror image text according to one calculate node 401 of capacity equilibrium policy selection Part.
After being stored to the image file that user uploads, mirror nodes 403 can also send the image file It is cached to cache node 402, in order to which calculate node 401 can obtain the image file from cache node 402.
In practical application, cache node 402 can first judge this when being cached to the image file that the user uploads Whether the data volume of ground caching reaches predetermined threshold value, if not, the image file is cached, if so, determining what is locally deleted Image file after the image file to be deleted, then caches the image file.In another realization method, if caching The data volume cached in node 402 has reached predetermined threshold value, can not also carry out caching the processing operation of the image file.
Specifically, the method for the image file that 402 cache user of cache node uploads is referred to implement shown in above-mentioned Fig. 6 The associated description of example, does not repeat here.
In a kind of preferred embodiment, the 6th kind of cloud service system provided in an embodiment of the present invention as shown in Figure 9 Structure diagram, on the basis of embodiment illustrated in fig. 8, cache node 402 can include:Master cache node 4021 and master cache Node 4021 is corresponding from cache node 4022.
The image file that user uploads can be fed back to master cache node 4021 by mirror nodes 403, by master cache node 4021 cache the image file, and the image file is fed back to from cache node 4022, also right from cache node 4022 The image file is cached.
Specifically, the method for master cache node 4021 and the image file uploaded from 4022 cache user of cache node can be with With reference to the associated description of above-mentioned embodiment illustrated in fig. 7, do not repeat here.
In this way, the image file that each cache node 402 uploads user is cached, then calculate node 401 from Any one cache node 402 can obtain the image file, and this mode can be further improved in cloud service system and calculated The performance of node parallel downloading image file.
Illustratively, specific embodiment as shown in Figure 2, using object storage technology, Glance servers will be used first The image file that family uploads is stored in a memory node, then according to one calculate node of capacity equilibrium policy selection, by The image file is pulled selected calculate node and stored by image-management modules.Glance servers are also Image-management modules can be triggered, which is pulled in Redis host nodes, if Redis host nodes The data volume of middle caching has reached predetermined threshold value, then caching process is not carried out to the image file, when calculate node creates the mirror During cloud host corresponding as file, RedisHost node takes LRU (minimum in the recent period to use) strategy again, by the mirror image cached text After the image file of access frequency minimum is deleted in nearest one section of preset duration in part, then the image file to the user's upload It is cached.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for device and For system embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to method The part explanation of embodiment.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modifications, equivalent replacements and improvements are made within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (13)

1. a kind of cloud host creation method, which is characterized in that applied to the target computing nodes in cloud service system, wherein, institute Stating cloud service system includes:Calculate node, the cache node that data buffer service is provided, the mirror image that cloud mirrored host computer service is provided Node, the described method includes:
The establishment received for target cloud host instructs;
Judge locally whether preserve target image file, wherein, the target image file is the establishment target cloud host Required image file;
If not preserving, target cache node is determined from the cache node;
The first request for obtaining the target image file is sent to the target cache node;
Receive target information of the target cache node according to the described first request feedback;
Judge whether the target information is the target image file;
If it is, according to the target mirror as described in document creation target cloud host;
If it has not, the second request for obtaining the target image file is sent to the mirror nodes;Receive the mirror nodes According to the target image file of the described second request feedback;According to the target mirror as described in document creation target cloud master Machine.
2. according to the method described in claim 1, it is characterized in that, the cache node includes:Master cache node and the master Cache node is corresponding from cache node, the mirror of the image file and the master cache nodal cache from caching nodal cache As file is identical;
Described the step of target cache node is determined from the cache node, including:
According to default calculate node and the incidence relation of cache node, target cache node is determined from the cache node.
3. according to the method described in claim 2, it is characterized in that, the default calculate node and cache node associate System, generates in the following way:
According to the quantity N of cache node, determine the sequence number of each cache node, wherein, serial number [0, the N-1] section it is whole Number, the sequence number of any two cache node differ;
Calculate the target cryptographic Hash H of the identification information of each calculate node;
The corresponding target Modulus of access M of each calculate node is calculated according to following formula:
M=mod (H, N);
For each calculate node, determine the sequence number cache node identical with the target Modulus of access of the calculate node, establish the meter Operator node and incidence relation between definite cache node.
4. a kind of cloud host creating device, which is characterized in that applied to the target computing nodes in cloud service system, wherein, institute Stating cloud service system includes:Calculate node, the cache node that data buffer service is provided, the mirror image that cloud mirrored host computer service is provided Node, described device include:
First receiving module, the establishment for receiving for target cloud host instruct;
First judgment module, for judging locally whether preserve target image file, wherein, the target image file is wound Build the image file needed for the target cloud host;
Determining module, for first judgment module judge it is local do not preserve the target image file when, from described Target cache node is determined in cache node;
Sending module, for sending the first request for obtaining the target image file to the target cache node;
Second receiving module, for receiving target information of the target cache node according to the described first request feedback;
Second judgment module, for judging whether the target information is the target image file;
First creation module, for judging that the target information is the target image file in second judgment module When, according to the target mirror as described in document creation target cloud host;
Second creation module, for judging that the target information is not the target image file in second judgment module When, the second request for obtaining the target image file is sent to the mirror nodes;The mirror nodes are received according to The target image file of second request feedback;According to the target mirror as described in document creation target cloud host.
5. device according to claim 4, which is characterized in that the cache node includes:Master cache node and the master Cache node is corresponding from cache node, the mirror of the image file and the master cache nodal cache from caching nodal cache As file is identical;
The determining module, is used for:
According to default calculate node and the incidence relation of cache node, target cache node is determined from the cache node.
6. device according to claim 5, which is characterized in that the default calculate node is associated with cache node It is to be:
It generates in the following way:
According to the quantity N of cache node, determine the sequence number of each cache node, wherein, serial number [0, the N-1] section it is whole Number, the sequence number of any two cache node differ;
Calculate the target cryptographic Hash H of the identification information of each calculate node;
The corresponding target Modulus of access M of each calculate node is calculated according to following formula:
M=mod (H, N);
For each calculate node, determine the sequence number cache node identical with the target Modulus of access of the calculate node, establish the meter Operator node and incidence relation between definite cache node.
7. a kind of cloud service system, which is characterized in that the system comprises:Calculate node, the caching that data buffer service is provided Node, the mirror nodes that cloud mirrored host computer service is provided, wherein,
The calculate node, is used for:The establishment received for target cloud host instructs;Judge locally whether preserve target mirror picture File, wherein, the target image file is the image file needed for the establishment target cloud host;If not preserving, from described Target cache node is determined in cache node;Send the acquisition target image file to the target cache node first please It asks;
The cache node, is used for:Receive the first request of the acquisition target image file that the calculate node is sent;Root According to the described first request, to the calculate node feedback target information;
The calculate node, is additionally operable to:Receive target information of the target cache node according to the described first request feedback;Sentence Whether the target information of breaking is the target image file;If it is, according to the target mirror as described in document creation target Cloud host;If it has not, the second request for obtaining the target image file is sent to the mirror nodes;
The mirror nodes, are used for:Receive the second request of the acquisition target image file that the calculate node is sent;Root According to the described second request, the target image file is fed back to the calculate node;
The calculate node, is additionally operable to:Receive target mirror picture text of the mirror nodes according to the described second request feedback Part;According to the target mirror as described in document creation target cloud host.
8. system according to claim 7, which is characterized in that the cache node includes:Master cache node and the master Cache node is corresponding from cache node, the mirror of the image file and the master cache nodal cache from caching nodal cache As file is identical;
The calculate node, is specifically used for:According to default calculate node and the incidence relation of cache node, from the caching section Target cache node is determined in point.
9. system according to claim 8, which is characterized in that
The calculate node, is specifically used for:According to the quantity N of cache node, the sequence number of each cache node is determined, wherein, institute The integer in serial number [0, N-1] section is stated, the sequence number of any two cache node differs;Calculate the mark of the calculate node The target cryptographic Hash H of information;The corresponding target Modulus of access M of the calculate node is calculated according to following formula:M=M=mod (H, N);It determines the sequence number cache node identical with the target Modulus of access of the calculate node, establish the calculate node and determines caching Incidence relation between node.
10. system according to claim 7, which is characterized in that
The mirror nodes, are additionally operable to:The target image file is fed back to the cache node;
The cache node, is additionally operable to:The target image file of the mirror nodes feedback is received, and caches the target Image file.
11. system according to claim 10, which is characterized in that
The cache node, is specifically used for:Judge whether the data volume of local cache reaches predetermined threshold value, if not, caching institute Target image file is stated, if so, determining the local image file to be deleted, the image file to be deleted described in deletion, caching The target image file.
12. system according to claim 10, which is characterized in that the cache node includes:Master cache node and described Master cache node is corresponding from cache node;
The mirror nodes, are specifically used for:To target image file described in the master cache node feeding back;
The master cache node, is used for:The target image file of the mirror nodes feedback is received, and caches the target Image file, then to described from target image file described in caching node feeding back;
It is described from cache node, be used for:The target image file of the master cache node feeding back is received, and caches the target mirror As file.
13. system according to claim 7, which is characterized in that the system also includes:For providing data storage service Memory node;
The mirror nodes, are additionally operable to:The image file that user uploads is received, and using object storage technology, by the user The image file of upload is stored to the memory node;
The memory node, is used for:Store the image file that the user uploads.
CN201610983593.7A 2016-11-09 2016-11-09 A kind of cloud host creation method, device and cloud service system Pending CN108076078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610983593.7A CN108076078A (en) 2016-11-09 2016-11-09 A kind of cloud host creation method, device and cloud service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610983593.7A CN108076078A (en) 2016-11-09 2016-11-09 A kind of cloud host creation method, device and cloud service system

Publications (1)

Publication Number Publication Date
CN108076078A true CN108076078A (en) 2018-05-25

Family

ID=62154090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610983593.7A Pending CN108076078A (en) 2016-11-09 2016-11-09 A kind of cloud host creation method, device and cloud service system

Country Status (1)

Country Link
CN (1) CN108076078A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379235A (en) * 2018-11-27 2019-02-22 无锡华云数据技术服务有限公司 Method based on high concurrent request scene creation cloud host
CN109407992A (en) * 2018-11-01 2019-03-01 郑州云海信息技术有限公司 A kind of method and apparatus for creating cloud hard disk
CN109492422A (en) * 2018-09-04 2019-03-19 航天信息股份有限公司 A kind of data processing method and system based on user behavior information
CN109495555A (en) * 2018-11-01 2019-03-19 郑州云海信息技术有限公司 A kind of method and apparatus based on cloud platform creation cloud host
CN111435936A (en) * 2018-12-25 2020-07-21 北京嘀嘀无限科技发展有限公司 Cloud host creation method and device, server and computer readable storage medium
CN112181278A (en) * 2019-07-04 2021-01-05 中移(苏州)软件技术有限公司 Method, device, equipment and storage medium for creating system disk in cloud computing system
CN114168262A (en) * 2021-12-03 2022-03-11 中国人寿保险股份有限公司上海数据中心 Cloud platform mirror image cache management method based on LRU replacement algorithm
CN116192870A (en) * 2023-04-21 2023-05-30 中国科学技术大学 P2P (peer-to-peer) download mirroring method based on mirror-level metadata management and load perception

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307206A (en) * 2010-09-25 2012-01-04 广东电子工业研究院有限公司 Caching system and caching method for rapidly accessing virtual machine images based on cloud storage
CN102594858A (en) * 2010-11-19 2012-07-18 马维尔国际贸易有限公司 Mirroring solution in cloud storage environment
CN102629941A (en) * 2012-03-20 2012-08-08 武汉邮电科学研究院 Caching method of a virtual machine mirror image in cloud computing system
CN103513938A (en) * 2013-09-16 2014-01-15 华为技术有限公司 System expansion method and device of redundant array of independent disks (RAID)
CN103905537A (en) * 2014-03-20 2014-07-02 冶金自动化研究设计院 System for managing industry real-time data storage in distributed environment
CN104361030A (en) * 2014-10-24 2015-02-18 西安未来国际信息股份有限公司 Distributed cache architecture with task distribution function and cache method
US20150212847A1 (en) * 2014-01-28 2015-07-30 Electronics And Telecommunications Research Institute Apparatus and method for managing cache of virtual machine image file

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102307206A (en) * 2010-09-25 2012-01-04 广东电子工业研究院有限公司 Caching system and caching method for rapidly accessing virtual machine images based on cloud storage
CN102594858A (en) * 2010-11-19 2012-07-18 马维尔国际贸易有限公司 Mirroring solution in cloud storage environment
CN102629941A (en) * 2012-03-20 2012-08-08 武汉邮电科学研究院 Caching method of a virtual machine mirror image in cloud computing system
CN103513938A (en) * 2013-09-16 2014-01-15 华为技术有限公司 System expansion method and device of redundant array of independent disks (RAID)
US20150212847A1 (en) * 2014-01-28 2015-07-30 Electronics And Telecommunications Research Institute Apparatus and method for managing cache of virtual machine image file
CN103905537A (en) * 2014-03-20 2014-07-02 冶金自动化研究设计院 System for managing industry real-time data storage in distributed environment
CN104361030A (en) * 2014-10-24 2015-02-18 西安未来国际信息股份有限公司 Distributed cache architecture with task distribution function and cache method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周正达.: "信息存储系统中重复数据删除技术的研究.", 《中国博士学位论文全文数据库信息科技辑2013年》 *
李思阳 等.: "基于多级索引的云平台镜像管理系统Milance的设计与实现.", 《计算机工程与科学》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109492422A (en) * 2018-09-04 2019-03-19 航天信息股份有限公司 A kind of data processing method and system based on user behavior information
CN109407992A (en) * 2018-11-01 2019-03-01 郑州云海信息技术有限公司 A kind of method and apparatus for creating cloud hard disk
CN109495555A (en) * 2018-11-01 2019-03-19 郑州云海信息技术有限公司 A kind of method and apparatus based on cloud platform creation cloud host
CN109379235B (en) * 2018-11-27 2019-08-30 无锡华云数据技术服务有限公司 Method based on high concurrent request scene creation cloud host
CN109379235A (en) * 2018-11-27 2019-02-22 无锡华云数据技术服务有限公司 Method based on high concurrent request scene creation cloud host
CN111435936B (en) * 2018-12-25 2023-06-02 北京嘀嘀无限科技发展有限公司 Cloud host creation method, cloud host creation device, server and computer readable storage medium
CN111435936A (en) * 2018-12-25 2020-07-21 北京嘀嘀无限科技发展有限公司 Cloud host creation method and device, server and computer readable storage medium
CN112181278A (en) * 2019-07-04 2021-01-05 中移(苏州)软件技术有限公司 Method, device, equipment and storage medium for creating system disk in cloud computing system
CN112181278B (en) * 2019-07-04 2023-04-07 中移(苏州)软件技术有限公司 Method, device, equipment and storage medium for creating system disk in cloud computing system
CN114168262B (en) * 2021-12-03 2022-09-23 中国人寿保险股份有限公司上海数据中心 Cloud platform mirror image cache management method based on LRU replacement algorithm
CN114168262A (en) * 2021-12-03 2022-03-11 中国人寿保险股份有限公司上海数据中心 Cloud platform mirror image cache management method based on LRU replacement algorithm
CN116192870A (en) * 2023-04-21 2023-05-30 中国科学技术大学 P2P (peer-to-peer) download mirroring method based on mirror-level metadata management and load perception
CN116192870B (en) * 2023-04-21 2023-07-11 中国科学技术大学 P2P (peer-to-peer) download mirroring method based on mirror-level metadata management and load perception

Similar Documents

Publication Publication Date Title
CN108076078A (en) A kind of cloud host creation method, device and cloud service system
US10782880B2 (en) Apparatus and method for providing storage for providing cloud services
US11558450B2 (en) Systems and methods for aggregation of cloud storage
US11960486B2 (en) Systems and methods for secure file management via an aggregation of cloud storage services
US11818211B2 (en) Aggregation and management among a plurality of storage providers
US11314458B2 (en) Global de-duplication of virtual disks in a storage platform
US10834191B2 (en) Collaboration data proxy system in cloud computing platforms
US10380073B2 (en) Use of solid state storage devices and the like in data deduplication
US10404798B2 (en) Systems and methods for third-party policy-based file distribution in an aggregation of cloud storage services
CN106250270B (en) A kind of data back up method under cloud computing platform
US10795577B2 (en) De-duplication of client-side data cache for virtual disks
CN107426258A (en) A kind of upload of image file and method for down loading and device
US9641598B1 (en) Contextually unique identifier generation service
CN105025053A (en) Distributed file upload method based on cloud storage technology and system
KR101179472B1 (en) File system and method for delivering contents in file system
CN108540510A (en) A kind of cloud host creation method, device and cloud service system
US20170154099A1 (en) Efficient lookup in multiple bloom filters
KR20130118088A (en) Distributed file system having multi mds architecture and method for processing data using the same
CN109597903A (en) Image file processing apparatus and method, document storage system and storage medium
US9578120B1 (en) Messaging with key-value persistence
US20150212847A1 (en) Apparatus and method for managing cache of virtual machine image file
TWI420333B (en) A distributed de-duplication system and the method therefore
CN112422611A (en) Virtual bucket storage processing method and system based on distributed object storage
US10831794B2 (en) Dynamic alternate keys for use in file systems utilizing a keyed index
US8868970B2 (en) Object based storage system and method of operating thereof

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: 20180525

RJ01 Rejection of invention patent application after publication