The content of the invention
It is an object of the invention to provide cloud computing data-sharing systems and method.
According to an aspect of the invention, there is provided cloud computing data-sharing systems, including:
Data module, input and output to network share data are managed;
Cloud computing resource pool, including for depositing multiple multicast nodes of write-in or the shared data read;Synchronous mould
Block, handle and network share data are read in multicast node and write the order of network share data, be written and read when reading and writing obstruction
Transaction management, message queue is realized, ensure that the data of each multicast node are consistent;
Mixed-media network modules mixed-media, transmission of the network share data between cloud computing resource pool and synchronization module is realized, parse network
Shared data, form instruction set and data flow;With
Control module, data module, synchronization module and mixed-media network modules mixed-media are controlled.
In some embodiments, data module includes data read and write interface and data-query interfaces, for reading and writing and looking into
Ask network share data.
In some embodiments, multiple multicast nodes include synchronization multicast node and a multiple non-synchronization multicast sections
Point, wherein, after synchronization module receives the multicast pattern synchronic command for the network share data that control module is sent, by calling number
The block positional information of network share data is obtained according to the data-query interfaces of module, by the disk for calling synchronization multicast node
Block inputs network share data, and forms network multicast stream;After multiple non-synchronization multicast nodal cache network multicast streams, pass through
Call the disk block of non-synchronization multicast node to carry out the network multicast stream of synchronization caching, sent after synchronously completing synchronously complete information to
Control module, it is ensured that synchronization multicast node is consistent with the data that non-synchronization multicast node is read and write.
According to another aspect of the present invention, there is provided cloud computing data sharing method, including:
Network share data are managed by data module, and read and write network share data;
Cloud computing resource pool is provided, cloud computing resource pool includes being used for the network share data that storage writes or read
Multiple multicast nodes;
The order read in multicast node with write-in network share data is handled by synchronization module, carried out when reading and writing obstruction
Transaction management is read and write, message queue is realized, ensures that the data of each multicast node are consistent;
Network shared data is transmitted between cloud computing resource pool and synchronization module by mixed-media network modules mixed-media, parses network share
Data;Data transfer between data module, synchronization module and mixed-media network modules mixed-media is managed and controlled by control module.
In some embodiments, in cloud computing data sharing method network share data ablation process, it is including following
Step:
After the instruction that the shared data write-in that control module receives data module transmission is completed, synchronic command is sent to more
The synchronization module of the node of synchronization multicast in individual multicast node;
After the synchronization module of synchronization multicast node obtains the block positional information of synchronization multicast node, by calling
The disk block of synchronization multicast node inputs network share data, and forms network multicast stream;
After multiple non-synchronization multicast nodal cache network multicast streams, by call the disk block of non-synchronization multicast node come
The network multicast stream of synchronization caching, sent after synchronously completing and synchronously complete information to control module, it is ensured that synchronization multicast node
The data that non-synchronization multicast node is read and write are consistent.
In some embodiments, in cloud computing data sharing method network share data reading process, it is including following
Step:
Network share data read command is sent to control module by mixed-media network modules mixed-media;
The block positional information of control module returned data module network position and synchronization multicast node;
By calling data module disk block output interface to complete the reading of network share data disk block.
In some embodiments, control module completes letter by receiving the network share data syn-chronization that synchronization module is sent
Instruction is completed in the network share data write-in that breath and mixed-media network modules mixed-media are sent, and updates the block positional information and attribute of network share data
Metadata, it is ensured that the data that user is read and write are consistent.
In some embodiments, after the metadata that network share data are obtained by control module, data module is passed through
Data read and write interface read network share data actual content;The metadata of network share data is obtained by control module
After available disk block positional information, the actual content of network share data is write by the data read and write interface of data module.
Synchronization module, which can be handled, in the present invention reads network share data and write-in network share data in multicast node
Order, be written and read transaction management, when user needs to download shared network data, the multicast node in synchronization module uses group
The form of broadcasting, which synchronizes, reads network share data, while the read operation to user carries out obstructive root canal, in each multicast node
Read operation locking is just released after having updated network share data, it is ensured that the network share data that each multicast node is read are kept
Unanimously, i.e., now user can carry out the download of network share data, and synchronization module is synchronous by the way of multicast data message
Network share data, network share data repeatedly transmitting in a network can be efficiently reduced, network throughput is greatly improved,
The complexity of reduction system, while in system development, safeguard, reduce cost in the broad aspect of hardware resource three.
Embodiment
Below in conjunction with the accompanying drawings and specific embodiment the present invention is described in further detail explanation.
According to an aspect of the present invention, as shown in Figure 1, there is provided cloud computing data-sharing systems, including:
Data module 2, input and output to network share data are managed;
Cloud computing resource pool, including for depositing multiple multicast nodes of write-in or the shared data read;Synchronous mould
Block 3, handle and network share data are read in multicast node and write the order of network share data, be written and read when reading and writing obstruction
Transaction management, message queue is realized, ensure that the data of each multicast node are consistent;
Mixed-media network modules mixed-media 4, transmission of the network share data between cloud computing resource pool and synchronization module 3 is realized, parse net
Network shared data, form instruction set and data flow;With
Control module 1, data module 2, synchronization module 3 and mixed-media network modules mixed-media 4 are controlled.
Data module 2 includes data read and write interface 21 and data-query interfaces 22, for reading and writing and inquiring about network share number
According to.The shared data block positional information that data module 2 manages records multicast section of the shared data where in cloud computing resource pool
The position of point and multicast node disk block.The shared data block positional information that data module 2 manages includes a plurality of record.
As shown in Figures 2 and 3, multiple multicast nodes include synchronization multicast node 31 and a multiple non-synchronization multicast sections
Point 32, wherein, after synchronization module 3 receives the multicast pattern synchronic command for the network share data that control module 1 is sent, pass through tune
The block positional information of network share data is obtained with the data-query interfaces 22 of data module 2, by calling synchronization multicast section
The disk block of point 31 inputs network share data, and forms network multicast stream;Multiple non-buffer networks of synchronization multicast node 32
After multicast data flow, by calling the disk block of non-synchronization multicast node 32 come the network multicast stream of synchronization caching, sent out after synchronously completing
Send and synchronously complete information to control module 1, it is ensured that the data that synchronization multicast node 31 and non-synchronization multicast node 32 are read and write
Unanimously.
According to another aspect of the present invention, there is provided cloud computing data sharing method, including:
Network share data are managed by data module 2, and read and write network share data;
Cloud computing resource pool is provided, cloud computing resource pool includes being used for the network share data that storage writes or read
Multiple multicast nodes;
The order read in multicast node with write-in network share data is handled by synchronization module 3, entered when reading and writing obstruction
Row read-write transaction management, realizes message queue, ensures that the data of each multicast node are consistent;
Network shared data is transmitted between cloud computing resource pool and synchronization module 3 by mixed-media network modules mixed-media 4, parsing network is total to
Enjoy data;Data transfer between data module 2, synchronization module 3 and mixed-media network modules mixed-media 4 is managed and controlled by control module 1
System.
Control module 1 sends the network share data syn-chronization instruction of two kinds of different patterns.Synchronization module 3 receives control mould
After the multicast pattern synchronic command for the network share data that block 1 is sent, by calling the data-query interfaces 22 of data module 2 to obtain
The block positional information of network share data is taken, updates the optional transmission unicast mould of disk block quantity by calculating shared data
The synchronization module 3 of formula synchronic command or multicast pattern the synchronic command different multicast nodes into cloud computing resource pool.On one side,
Control module 1 sends multicast synchronic command synchronization module 3 of synchronization multicast node 31 into cloud computing resource pool.Synchronization group
Broadcasting the synchronization module 3 of node 31 calls the data-query interfaces 22 of data module 2 to obtain shared data block positional information, passes through calling
The shared data output interface of the data module 2 of synchronization multicast node 31 passes through network multicast disk block.Non- synchronization multicast node
32 synchronization modules 3 call the data-query interfaces 22 of data module 2 to obtain shared data block positional information, by receiving multicast magnetic
Disk block and the shared data input interface synchronization multicast disk block for calling the non-data module 2 of synchronization multicast node 32, are synchronously completed
Send afterwards and synchronously complete information to control module 1.Control module 1 updates first numbers such as block positional information and the attribute of shared data
According to.On the other hand, control module 1 sends the synchronization of unicast synchronic command non-synchronization multicast node 32 into cloud computing resource pool
Module 3.The non-synchronization module 3 of synchronization multicast node 32 calls the data-query interfaces 22 of data module 2 to obtain shared data block position
Confidence cease, by call the data module 2 of synchronization multicast node 31 shared data output interface output disk block to not synchronization
The data module 2 of multicast node 32 shared data input interface input disk block, after synchronously completing send synchronously complete information to
Control module 1.Control module 1 updates the metadata such as block positional information and the attribute of shared data.Synchronization module 3 is controlled by receiving
The synchronic command of molding block 1 completes the synchronization of shared data disk block each multicast node in cloud computing resource pool, it is ensured that each group
It is consistent to broadcast the data that node is read and write.
The ablation process of network share data, comprises the following steps in cloud computing data sharing method:
Control module 1 receive data module 2 transmission shared data write-in complete instruction after, send synchronic command to
The synchronization module 3 of the node of synchronization multicast 31 in multiple multicast nodes;
After the synchronization module 3 of synchronization multicast node 31 obtains the block positional information of synchronization multicast node 31, pass through
Call the disk block of synchronization multicast node 31 to input network share data, and form network multicast stream;
After multiple non-buffer network multicast data flows of synchronization multicast node 32, by the disk block for calling non-synchronization multicast node
Carry out the network multicast stream of synchronization caching, sent after synchronously completing and synchronously complete information to control module 1, it is ensured that synchronization multicast section
Point 31 is consistent with the data that non-synchronization multicast node is read and write.
The reading process of network share data, comprises the following steps in cloud computing data sharing method:
Network share data read command is sent to control module 1 by mixed-media network modules mixed-media 4;
The block positional information of the network site of 1 returned data module of control module 2 and synchronization multicast node 31;
By calling the disk block output interface of data module 2 to complete the reading of network share data disk block.
By receiving, the network share data syn-chronization that synchronization module 3 is sent completes information to control module 1 and mixed-media network modules mixed-media 4 is sent out
Instruction is completed in the network share data write-in sent, and updates the block positional information of network share data and the metadata of attribute, it is ensured that
The data that user is read and write are consistent.
After the metadata that network share data are obtained by control module 1, pass through the data read and write interface 21 of data module 2
Read the actual content of network share data;The metadata and available disk block of network share data are obtained by control module 1
After positional information, the actual content of network share data is write by the data read and write interface 21 of data module 2.
Fig. 4 schematically shows 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, including:
S101:Control module 1 initializes all available disk block of multicast node data module 2 letters in cloud computing resource pool
Breath;
S102:User inputs network share data write-in (upload) instruction;
S103:Control module 1 receives write-in (upload) instruction of user, reads and disk number of blocks is asked in write instruction,
It is and to the network site of user's returned data module 2 and consistent with request disk number of blocks according to poll or priority weights algorithm
Disk block sequence.Control module 1 creates the metadata such as block positional information, attribute and the authority of network share data;
S104:User calls the network share data disk block input interface of data module 2 to complete network share data magnetic
The write-in of disk block, after the completion of send write-in and complete information to control module 1;
S105:After control module 1 receives the network share data write-in completion information of user's transmission, network share is updated
The metadata such as the block positional information of data and attribute.Control module 1 sends multicast pattern synchronic command into cloud computing resource pool
The synchronization module 3 of synchronization multicast node 31;
S106:In above-mentioned cloud computing resource pool the synchronization module 3 of synchronization multicast node 31 by inquiring about control module 1
Network share data-query interfaces 22 obtain the block positional information of network share data, and by calling, synchronization multicast node 31 counts
The disk block that network share data are exported according to the network share data output interface of module 2 forms network multicast stream.It is multiple not same
After walking the caching disk block multicast data flow of multicast node 32, the network share data-query interfaces 22 of control module 1 are called to obtain network
The block positional information of shared data, by the network share Data Input Interface for calling the non-data module 2 of synchronization multicast node 32
The multicast disk block of synchronization caching, sent after synchronously completing and synchronously complete information to control module 1, it is ensured that each synchronization multicast section
Point 31 is consistent with the network share data of multiple non-synchronization multicast nodes 32.
S107:Control module 1 receives the synchronization of the non-synchronization module 3 of synchronization multicast node 32 in above-mentioned cloud computing resource pool
After completing information, the metadata such as block positional information and the attribute of network share data are updated.
S201:User inputs network share digital independent (download) instruction;
S202:The reading (downloads) that control module 1 receives user instructs, and according to poll or priority weights algorithm to user
The network site of returned data module 2 and the block positional information of network share data;
S203:User calls the network share data disk block output interface of data module 2 to complete network share data magnetic
The reading of disk block.
In the present invention control module 1 and data module 2 to the metadata of network share data and the instruction stream of disk block and
Data stream separation control, control module 1 to shared data disk block renewal amount number calculated and sent different mode
Synchronic command is to synchronization module 3, the synchronizing network shared data by the way of multicast data message of synchronization module 3.Meanwhile this hair
Bright middle synchronization module 3, which can be handled, to be read network share data and writes the order of network share data in multicast node, carried out
Transaction management is read and write, when user needs to download shared network data, the multicast node in synchronization module 3 is carried out using multicast form
It is synchronous to read network share data, while the read operation to user carries out obstructive root canal, has updated network in each multicast node
Just released after shared data read operation locking, it is ensured that the network share data that each multicast node is read are consistent, i.e., this
When user can carry out the downloads of network share data, the synchronizing network by the way of multicast data message of synchronization module 3 is shared
Data, network share data repeatedly transmitting in a network can be efficiently reduced, network throughput is greatly improved, reduce system
Complexity, while in system development, safeguard, cost reduced in the broad aspect of hardware resource three.
Above-described is only some embodiments of the present invention.For the person of ordinary skill of the art, not
On the premise of departing from the invention design, various modifications and improvements can be made, these belong to the protection model of the present invention
Enclose.