Method and device for distributed data storage
A technology of distributed storage and storage location, applied in the field of cloud storage, can solve problems such as high cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0177] image 3 A flowchart showing a method for distributed data storage according to an embodiment of the present disclosure. Such as figure 1 As shown, the method includes the following steps.
[0178] Step 302, receiving multiple usage ratios one-to-one corresponding to multiple data centers from the user end, the multiple usage ratios are set by the user.
[0179] For example, if there are data centers A, B, C, D, E, and F, the multiple usage ratios received can be: A: 20%, B: 20%, C: 20%, D: 20%, E : 20%, F: 0, or A: 20%, B: 20%, C: 20%, D: 20%, E: 20%, the latter is considered to be the usage ratio corresponding to the default data center F is 0 %. Both mean that data centers A, B, C, D, and E each store 20% of the target file, and data center F is not used to store the target file.
[0180] The user can input the multiple usage ratios at the user end, the user can adjust the default usage ratios, or choose to directly adopt the default usage ratios, etc. This disc...
Embodiment 2
[0225] Figure 4 A flowchart showing a method for distributed data storage according to an embodiment of the present disclosure. This method can be applied to the client side. Such as figure 1 As shown, the method includes the following steps:
[0226] Step 402, receiving multiple usage ratios set by the user and corresponding to multiple data centers one-to-one and sending them to the central dispatching engine;
[0227] Step 404, sending an upload request for the target file to the central scheduling engine;
[0228] Step 406, receiving the segmentation instruction and storage destination of the target file from the central scheduling engine;
[0229] Step 408: Split the target file based on the split instruction to obtain multiple data blocks;
[0230] Step 410: Based on the storage destination, store each of the data blocks in a target data center corresponding to the data block, and the target data center corresponding to each of the data blocks is used to store the ...
Embodiment 3
[0242] Figure 5 A structural block diagram of an apparatus 500 for distributed data storage according to an embodiment of the present disclosure is shown. The device can be applied to a central dispatch engine. Such as Figure 5 As mentioned above, the device 500 includes: a usage ratio acquisition module 502, configured to receive a plurality of usage ratios corresponding to a plurality of data centers from the user end, and the plurality of usage ratios are set by the user; an upload request receiving module 504 , for receiving an upload request for a target file from the client; a division and storage purpose determining module 506, for determining a division indication and a storage destination of the target file based on the multiple usage ratios, the division indication It is used to indicate how to divide the target file to obtain multiple data blocks, and the storage destination is used to indicate the target data center corresponding to each data block, and the tar...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


