Summary of the invention
The object of this invention is to provide cloud computing data-sharing systems and method.
According to an aspect of the present invention, provide cloud computing data-sharing systems, comprising:
Data module, input and output network being shared to data manage;
Cloud computing resource pool, comprises multiple multicast node of the shared data for depositing write or reading; Synchronization module, reads network and shares data and write the order that network shares data, carry out read-write transaction management, realize message queue, ensure the data consistent of each multicast node when read-write is blocked in process multicast node;
Mixed-media network modules mixed-media, realizes network and shares the transmission of data between cloud computing resource pool and synchronization module, resolves network and shares data, form instruction set and data flow; With
Control module, controls data module, synchronization module and mixed-media network modules mixed-media.
In some embodiments, data module comprises data read and write interface and data-query interfaces, shares data for read-write and requester network.
In some embodiments, multiple multicast node comprises synchronization multicast node and a multiple non-synchronization multicast node, wherein, synchronization module receives after network that control module sends shares the multicast pattern synchronic command of data, the block positional information that network shares data is obtained by the data-query interfaces of calling data module, input network by the disk block calling synchronization multicast node and share data, and form network multicast stream; After multiple non-synchronization multicast nodal cache network multicast stream, the network multicast stream of synchronization caching is carried out by the disk block calling non-synchronization multicast node, after synchronously completing, transmission synchronously completes information to control module, guarantees the data consistent that synchronization multicast node and non-synchronization multicast node are are read and write.
According to another aspect of the present invention, provide cloud computing data sharing method, comprising:
Share data by data module to network to manage, and read and write network and share data;
There is provided cloud computing resource pool, the cloud computing resource pool network comprised for depositing write or reading shares multiple multicast node of data;
By reading the order sharing data with write network in synchronization module process multicast node, carrying out read-write transaction management when read-write is blocked, realizing message queue, ensure the data consistent of each multicast node;
Between cloud computing resource pool and synchronization module, transmit network by mixed-media network modules mixed-media and share data, resolve network and share data; By control module to data module, between synchronization module and mixed-media network modules mixed-media, transfer of data manages and controls.
In some embodiments, in cloud computing data sharing method, network shares the ablation process of data, comprises the following steps:
After the instruction that the shared data that control module receives data module transmission have write, send the synchronization module of synchronic command to the node of synchronization multicast in multiple multicast node;
After the synchronization module of synchronization multicast node obtains the block positional information of synchronization multicast node, input network by the disk block calling synchronization multicast node and share data, and form network multicast stream;
After multiple non-synchronization multicast nodal cache network multicast stream, the network multicast stream of synchronization caching is carried out by the disk block calling non-synchronization multicast node, after synchronously completing, transmission synchronously completes information to control module, guarantees the data consistent that synchronization multicast node and non-synchronization multicast node are are read and write.
In some embodiments, in cloud computing data sharing method, network shares the reading process of data, comprises the following steps:
Network is shared data read command and is sent to control module by mixed-media network modules mixed-media;
The block positional information of control module return data module network position and synchronization multicast node;
The reading that network shares data disk block is completed by calling data module disk block output interface.
In some embodiments, control module is shared data syn-chronization by the network receiving synchronization module and send and is completed network that information and mixed-media network modules mixed-media send and share data and write instruction, upgrade network and share the block positional information of data and the metadata of attribute, guarantee the data consistent that user reads and writes.
In some embodiments, after sharing the metadata of data by control module acquisition network, read by the data read and write interface of data module the actual content that network shares data; After obtaining the network metadata of sharing data and available disk block positional information by control module, shared the actual content of data by the data read and write interface write network of data module.
In the present invention, synchronization module can process in multicast node and read network and share data and share the order of data with write network, carry out read-write transaction management, when user needs to download shared network data, multicast node employing multicast form in synchronization module synchronously reads network and shares data, obstructive root canal is carried out to the read operation of user simultaneously, upgrade after network shares data in each multicast node and just removed read operation locking, guarantee that network that each multicast node reads is shared data and is consistent, namely now user can carry out the download that network shares data, synchronization module adopts the mode synchronizing network of multicast data message to share data, can effectively reduce network share data in a network repeat transmit, very big raising network throughput, the complexity of minimizing system, simultaneously in system development, safeguard, hardware resource three broad aspect reduces cost.
Embodiment
Below in conjunction with drawings and the specific embodiments the present invention is described in further detail explanation.
According to an aspect of the present invention, as shown in Figure 1, provide cloud computing data-sharing systems, comprising:
Data module 2, input and output network being shared to data manage;
Cloud computing resource pool, comprises multiple multicast node of the shared data for depositing write or reading; Synchronization module 3, reads network and shares data and write the order that network shares data, carry out read-write transaction management, realize message queue, ensure the data consistent of each multicast node when read-write is blocked in process multicast node;
Mixed-media network modules mixed-media 4, realizes network and shares the transmission of data between cloud computing resource pool and synchronization module 3, resolves network and shares data, form instruction set and data flow; With
Control module 1, controls data module 2, synchronization module 3 and mixed-media network modules mixed-media 4.
Data module 2 comprises data read and write interface 21 and data-query interfaces 22, shares data for read-write and requester network.The multicast node at data place in cloud computing resource pool and the position of multicast node disk block shared in the shared data block location information record that data module 2 manages.The shared data block location packets of information that data module 2 manages is containing many records.
As shown in Figures 2 and 3, multiple multicast node comprises synchronization multicast node 31 and a multiple non-synchronization multicast node 32, wherein, synchronization module 3 receives after network that control module 1 sends shares the multicast pattern synchronic command of data, the block positional information that network shares data is obtained by the data-query interfaces 22 of calling data module 2, input network by the disk block calling synchronization multicast node 31 and share data, and form network multicast stream; After multiple non-synchronization multicast node 32 buffer network multicast data flow, the network multicast stream of synchronization caching is carried out by the disk block calling non-synchronization multicast node 32, after synchronously completing, transmission synchronously completes information to control module 1, guarantees the data consistent that synchronization multicast node 31 and non-synchronization multicast node 32 are are read and write.
According to another aspect of the present invention, provide cloud computing data sharing method, comprising:
Share data by data module 2 pairs of networks to manage, and read and write network and share data;
There is provided cloud computing resource pool, the cloud computing resource pool network comprised for depositing write or reading shares multiple multicast node of data;
Processed in multicast node the order reading and share data with write network by synchronization module 3, carry out read-write transaction management when read-write is blocked, realize message queue, ensure the data consistent of each multicast node;
Between cloud computing resource pool and synchronization module 3, transmit network by mixed-media network modules mixed-media 4 and share data, resolve network and share data; By control module 1 pair of data module 2, between synchronization module 3 and mixed-media network modules mixed-media 4, transfer of data manages and controls.
The network that control module 1 sends two kinds of different patterns shares data syn-chronization instruction.Synchronization module 3 receives after network that control module 1 sends shares the multicast pattern synchronic command of data, obtaining by the data-query interfaces 22 of calling data module 2 the block positional information that network shares data, the synchronization module 3 of different multicast node in unicast mode synchronic command or multicast pattern synchronic command to cloud computing resource pool can be selected to send by calculating shared Data Update disk block quantity.An aspect, control module 1 sends the synchronization module 3 of synchronization multicast node 31 in multicast synchronic command to cloud computing resource pool.The data-query interfaces 22 of synchronization multicast node 31 synchronization module 3 calling data module 2 obtains and shares data block location information, by calling the shared data output interface of synchronization multicast node 31 data module 2 by network multicast disk block.The data-query interfaces 22 of non-synchronization multicast node 32 synchronization module 3 calling data module 2 obtains shares data block location information, by receiving group disk block and the shared Data Input Interface synchronization multicast disk block calling non-synchronization multicast node 32 data module 2, after synchronously completing, transmission synchronously completes information to control module 1.The metadata such as the block positional information of the shared data of control module 1 renewal and attribute.Another aspect, control module 1 sends the synchronization module 3 of non-synchronization multicast node 32 in clean culture synchronic command to cloud computing resource pool.The data-query interfaces 22 of non-synchronization multicast node 32 synchronization module 3 calling data module 2 obtains shares data block location information, input disk block by the shared Data Input Interface of the shared data output interface output disk block to non-synchronization multicast node 32 data module 2 that call synchronization multicast node 31 data module 2, after synchronously completing, transmission synchronously completes information to control module 1.The metadata such as the block positional information of the shared data of control module 1 renewal and attribute.Synchronization module 3 completes shared data disk block each multicast node synchronous in cloud computing resource pool by receiving the synchronic command of control module 1, guarantees the data consistent that each multicast node is read and write.
In cloud computing data sharing method, network shares the ablation process of data, comprises the following steps:
After the instruction that the shared data that control module 1 receives data module 2 transmission have write, send the synchronization module 3 of synchronic command to the node of synchronization multicast 31 in multiple multicast node;
After the synchronization module 3 of synchronization multicast node 31 obtains the block positional information of synchronization multicast node 31, input network by the disk block calling synchronization multicast node 31 and share data, and form network multicast stream;
After multiple non-synchronization multicast node 32 buffer network multicast data flow, the network multicast stream of synchronization caching is carried out by the disk block calling non-synchronization multicast node, after synchronously completing, transmission synchronously completes information to control module 1, guarantees the data consistent that synchronization multicast node 31 and non-synchronization multicast node are are read and write.
In cloud computing data sharing method, network shares the reading process of data, comprises the following steps:
Network is shared data read command and is sent to control module 1 by mixed-media network modules mixed-media 4;
The block positional information of control module 1 return data module 2 network site and synchronization multicast node 31;
The reading that network shares data disk block is completed by calling data module 2 disk block output interface.
Control module 1 is shared data syn-chronization by the network receiving synchronization module 3 and send and is completed network that information and mixed-media network modules mixed-media 4 send and share data and write instruction, upgrade network and share the block positional information of data and the metadata of attribute, guarantee the data consistent that user reads and writes.
Obtain after network shares the metadata of data by control module 1, read by the data read and write interface 21 of data module 2 actual content that network shares data; After obtaining by control module 1 metadata and available disk block positional information that network shares data, write by the data read and write interface 21 of data module 2 actual content that network shares data.
Fig. 4 show schematically show the workflow of the cloud computing data sharing method of one embodiment of the present invention.
As shown in Figure 4, cloud computing data sharing method, comprising:
S101: all multicast node data module 2 available disk block messages in control module 1 initialization cloud computing resource pool;
S102: user inputs network and shares data write (uploading) instruction;
S103: control module 1 receives write (uploading) instruction of user, read in write instruction and ask disk block quantity, and according to poll or priority weights algorithm to user's return data module 2 network site and the disk block sequence consistent with request disk block quantity.Control module 1 creates block positional information, the metadata such as attribute and authority that network shares data;
S104: the network of user's calling data module 2 is shared data disk block input interface and completed the write that network shares data disk block, and after completing, transmission write completes information to control module 1;
S105: control module 1 receives network that user sends and shares after data writes information, renewal network shares the metadata such as the block positional information of data and attribute.Control module 1 sends the synchronization module 3 of synchronization multicast node 31 in multicast pattern synchronic command to cloud computing resource pool;
S106: in above-mentioned cloud computing resource pool, the synchronization module 3 of synchronization multicast node 31 is shared data-query interfaces 22 and obtained by inquiring about the network of control module 1 the block positional information that network shares data, shares by the network calling synchronization multicast node 31 data module 2 the disk block that data output interface output network shares data and forms network multicast stream.After multiple non-synchronization multicast node 32 buffer memory disk block multicast data flow, the network calling control module 1 is shared data-query interfaces 22 and is obtained the block positional information that network shares data, the multicast disk block of Data Input Interface synchronization caching is shared by the network calling non-synchronization multicast node 32 data module 2, after synchronously completing, transmission synchronously completes information to control module 1, guarantees that the network of each synchronization multicast node 31 and multiple non-synchronization multicast node 32 shares data consistent.
S107: control module 1 receive non-synchronization multicast node 32 synchronization module 3 in above-mentioned cloud computing resource pool synchronously complete information after, upgrade network and share the metadata such as the block positional information of data and attribute.
S201: user inputs network and shares digital independent (download) instruction;
S202: control module 1 receives reading (download) instruction of user, and share the block positional information of data according to poll or priority weights algorithm to user's return data module 2 network site and network;
S203: the network of user's calling data module 2 is shared data disk block output interface and completed the reading that network shares data disk block.
In the present invention, control module 1 and data module 2 pairs of networks share the metadata of data and the instruction stream of disk block and data stream separation controls, the number of control module 1 to shared data disk block renewal amount calculates and sends the synchronic command of different mode to synchronization module 3, and synchronization module 3 adopts the mode synchronizing network of multicast data message to share data.Simultaneously, in the present invention, synchronization module 3 can process in multicast node and read network and share data and share the order of data with write network, carry out read-write transaction management, when user needs to download shared network data, multicast node employing multicast form in synchronization module 3 synchronously reads network and shares data, obstructive root canal is carried out to the read operation of user simultaneously, upgrade after network shares data in each multicast node and just removed read operation locking, guarantee that network that each multicast node reads is shared data and is consistent, namely now user can carry out the download that network shares data, synchronization module 3 adopts the mode synchronizing network of multicast data message to share data, can effectively reduce network share data in a network repeat transmit, very big raising network throughput, the complexity of minimizing system, simultaneously in system development, safeguard, hardware resource three broad aspect reduces cost.
Above-described is only some embodiments of the present invention.For the person of ordinary skill of the art, without departing from the concept of the premise of the invention, can also make some distortion and improvement, these all belong to protection scope of the present invention.